Skip to main content

Chargeback

Before you begin

Your API requests are authenticated using an access token. Any request that does not include a valid access token will return an error. Learn more in Authentication.

Base URL
  • UAT: https://transactions.transactional.uat.unico.app/api/public/v1
  • Production: https://transactions.transactional.unico.app/api/public/v1

Request chargeback review

POST /credit/transactions/{transaction_id}/chargeback — requests a chargeback review for a specified transaction.

Headers
HeaderValue
AuthorizationBearer {token} — a valid access token.
Body
{
"datetime": "2023-01-05T03:00:00.000Z",
"requestor": { "key": "cpf", "value": "USER_CPF" },
"name": "USER_NAME",
"reason": "REQUEST_REASON",
"observation": "GENERAL_OBSERVATIONS",
"documents": [
{ "label": "FILE_NAME", "data": "JVBERi0xLjQKMSAwI==" }
]
}
FieldTypeRequiredDescription
datetimestringyesChargeback request date and time, ISO 8601 format.
requestorobjectyesRequestor's information.
requestor.keystringyesIdentification key type for the requestor (e.g. cpf).
requestor.valuestringyesIdentification key value for the requestor.
namestringyesName of the requestor.
reasonstringyesReason for the chargeback request.
observationstringnoGeneral observations about the request.
documentsarraynoDocuments related to the chargeback. Up to 3 items, each Base64-encoded — PDF only.
documents[].labelstringyes (per item)File name or description.
documents[].datastringyes (per item)Base64-encoded PDF file.
200 OK
{
"id": "8263a268-5388-492a-bca2-28e1ff4a69f0"
}
FieldDescription
idGenerated chargeback ID.

For error responses, see Errors — Transaction Creation.

Get chargeback review status

GET /credit/transactions/{transaction_id}/chargeback/{chargeback_id} — checks the status of a specific chargeback.

Headers
HeaderValue
AuthorizationBearer {token} — a valid access token.
200 OK
{
"id": "8263a268-5388-492a-bca2-28e1ff4a69f0",
"status": "waiting"
}
FieldDescription
idChargeback ID.
statusCurrent status of the chargeback.

See Enumerated — Chargeback result for all possible statuses. To optimize performance, implement the Webhook instead of polling this endpoint.