Masked personal data in public responses
Wompi public endpoints that return merchant information mask the merchant's personal data. The masked values are part of the response and cannot be recovered from these endpoints.
The fields described on this page come masked in public responses. All example values are fictitious.
How data is masked
| Data | Rule | Example |
|---|---|---|
legal_id and validated_legal_id | Only the last 4 characters are shown. If it has 4 or fewer, it is replaced with **** | 1020304050 → ******4050 |
| Natural person name | The first word is shown in full. Each following word is reduced to its initial followed by *** | María Fernanda Gómez → María F*** G*** |
legal_name | Masked as a natural person name only when legal_id_type is CC, CE, PPT, PA, DPI or PP. For other types, such as NIT, it does not change | María Fernanda Gómez → María F*** G*** |
contact_name | If it contains @, it is masked as an email. Otherwise, it is masked as a person name | Pedro Pérez → Pedro P*** |
email | The first character before @ is shown, followed by *** and the full domain | pedro@mitienda.com → p***@mitienda.com |
phone_number | Only the last 4 digits are shown. If it has 4 or fewer, it is replaced with **** | 3001234567 → ******4567 |
1. Merchants
Applies to:
GET /merchants/info
GET /merchants/{merchant_public_key}
The second endpoint is being deprecated. See Acceptance tokens.
In this response, legal_id, validated_legal_id, legal_name (depending on legal_id_type), contact_name, email and phone_number are masked.
{
"data": {
"id": 11000,
"name": "Tienda del ahorro",
"legal_name": "María F*** G***",
"legal_id_type": "PP",
"legal_id": "******4050",
"validated_legal_id": "******4050",
"email": "m***@ejemplo.com",
"contact_name": "María F*** G***",
"phone_number": "******4567",
"active": true,
"public_key": "pub_prod_KadoutufreGpazE1rePQngfywlNdFJW"
}
}
The remaining fields of the response are omitted and do not change.
2. Merchant contact
Applies to:
GET /merchants/info/contact
GET /merchants/{merchant_public_key}/contact
In this response, legal_id, legal_name (depending on legal_id_type) and contact_name are masked. The contact email and phone_number are returned unmasked, because they are the contact details this endpoint exists to provide.
{
"data": {
"email": "pedro@ejemplo.com",
"contact_name": "Pedro P***",
"phone_number": "3001234567",
"legal_name": "María F*** G***",
"legal_id_type": "PP",
"legal_id": "******4050"
}
}
3. Public transaction lookup
Applies to looking up a transaction without a private key:
GET /transactions/{transaction_id}
The merchant object in the response masks legal_id, validated_legal_id, contact_name, phone_number and legal_name (depending on legal_id_type). The transaction's own data does not change.
{
"data": {
"id": "1292-1602113476-10985",
"reference": "ORDER-2024-001",
"status": "APPROVED",
"amount_in_cents": 50000,
"currency": "USD",
"merchant": {
"name": "Tienda del ahorro",
"legal_name": "María F*** G***",
"legal_id_type": "PP",
"legal_id": "******4050",
"validated_legal_id": "******4050",
"contact_name": "Pedro P***",
"phone_number": "******4567"
}
}
}
The remaining fields of the transaction and the merchant are omitted.