The Enrichment API is a separate service that, using the same authentication as main Pluggy services, enables customers that have already collected Open Finance data or have existing data from their customer base to enrich the transactional data by providing categorization and merchant information.
Premium feature
To enable enrichment api, you must request this to the sales team to enable it for your team.
How to use#
- Obtain an API key from our AuthAPI endpoint.
- Use the categorization flow described in Transaction Categorization with the obtained API key, and send the transactions to categorize:
Checking account example:
{
"transactions": [
{
"id": "76a87d4d-89f2-4544-a431-b5d8a45146c7",
"amount": -100,
"date": "2024-09-06T00:00:00-03:00",
"description": "MC DONALDS"
}
],
"clientUserId": "06199323-763c-4b15-9f65-3871d8b4d430",
"accountType": "CHECKING",
"isBusiness": false
}Checking account with payment data:
{
"transactions": [
{
"id": "76a87d4d-89f2-4544-a431-b5d8a45146c7",
"amount": -100,
"date": "2024-09-06T00:00:00-03:00",
"description": "MC DONALDS",
"paymentData": {
"payer": {
"name": "John Doe",
"documentNumber": { "value": "123.456.789-00", "type": "CPF" }
},
"receiver": {
"name": "MC DONALDS",
"documentNumber": { "value": "42.591.651/0001-43", "type": "CNPJ" }
}
}
}
],
"clientUserId": "06199323-763c-4b15-9f65-3871d8b4d430",
"accountType": "CHECKING",
"isBusiness": false
}Credit card example:
{
"transactions": [
{
"id": "76a87d4d-89f2-4544-a431-b5d8a45146c7",
"amount": -100,
"date": "2024-09-06T00:00:00-03:00",
"description": "MC DONALDS",
"creditCardMetadata": {
"payeeMCC": 1234
}
}
],
"clientUserId": "06199323-763c-4b15-9f65-3871d8b4d430",
"accountType": "CREDIT_CARD",
"isBusiness": false
}The creditCardMetadata field is optional and greatly improves categorization accuracy.
You can send up to 5000 transactions per request.
The accountType field is optional and accepts CHECKING or CREDIT_CARD. The isBusiness field is also optional and indicates whether this is a PJ or PF account.
- The response will look something like this:
{
"results": [
{
"id": "76a87d4d-89f2-4544-a431-b5d8a45146c7",
"amount": -100,
"date": "2024-09-06T00:00:00-03:00",
"description": "MC DONALDS",
"type": "DEBIT",
"merchant": {
"name": "mc donalds",
"businessName": "ARCOS DOURADOS COMERCIO DE ALIMENTOS LTDA",
"cnpj": "42.591.651/0001-43"
},
"category": "Eating out"
}
]
}The merchant field can be null if the merchant is unknown. See possible category values on our Transaction Categorization page.
Rate limits#
The Enrichment API limits each application to 600 requests per minute, counted together across POST /categorize, POST /behavior-analysis and POST /recurring-payments. The count is per application (clientId), not per IP.
A request over the limit is answered with 429:
{
"error": "RATE_LIMIT_EXCEEDED",
"message": "Rate limit exceeded"
}| Header | Meaning |
|---|---|
Retry-After | Seconds until the current minute window ends and requests are accepted again. |
X-RateLimit-Limit | Your limit, in requests per minute. |
X-RateLimit-Remaining | Requests left in the window. 0 on a 429. |
Wait Retry-After seconds and retry. To stay under the limit, batch transactions instead of sending one per request: POST /categorize accepts up to 5000 transactions per call. If your integration needs a higher limit, contact the sales team.
