Buscar chargeback por ID
curl --request GET \
--url https://api.sandbox.z2pay.com/v1/chargebacks/{id} \
--header 'x-api-key: <api-key>'const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.sandbox.z2pay.com/v1/chargebacks/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.sandbox.z2pay.com/v1/chargebacks/{id}"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"id": "cbk_v5wylkgvv2rls5tihmuybrz9v",
"transactionId": "txn_aqbcw2lky42xfidw5pcdss8h1",
"paymentId": "pay_jxt9b5qv1x0h0h8ustleqjgr8",
"externalId": "ch_mw198ybczrn8y2fd6y7dnznft",
"amount": 14990,
"currency": "BRL",
"status": "under_review",
"reasonCode": "4853",
"reason": "Produto ou serviço não recebido",
"deadlineAt": "2025-07-06T23:59:59.000Z",
"openedAt": "2025-06-29T10:00:00.000Z",
"resolvedAt": null,
"createdAt": "2025-06-29T10:00:05.000Z",
"updatedAt": "2025-06-29T10:00:10.000Z"
}{
"error": {
"code": "UNAUTHORIZED",
"message": "Invalid API key"
}
}{
"error": {
"code": "NOT_FOUND",
"message": "Chargeback not found"
}
}Chargebacks
Buscar chargeback por ID
Retorna uma contestação específica pelo seu ID, com a etapa atual, o prazo de defesa e o desfecho.
GET
/
chargebacks
/
{id}
Buscar chargeback por ID
curl --request GET \
--url https://api.sandbox.z2pay.com/v1/chargebacks/{id} \
--header 'x-api-key: <api-key>'const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.sandbox.z2pay.com/v1/chargebacks/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.sandbox.z2pay.com/v1/chargebacks/{id}"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"id": "cbk_v5wylkgvv2rls5tihmuybrz9v",
"transactionId": "txn_aqbcw2lky42xfidw5pcdss8h1",
"paymentId": "pay_jxt9b5qv1x0h0h8ustleqjgr8",
"externalId": "ch_mw198ybczrn8y2fd6y7dnznft",
"amount": 14990,
"currency": "BRL",
"status": "under_review",
"reasonCode": "4853",
"reason": "Produto ou serviço não recebido",
"deadlineAt": "2025-07-06T23:59:59.000Z",
"openedAt": "2025-06-29T10:00:00.000Z",
"resolvedAt": null,
"createdAt": "2025-06-29T10:00:05.000Z",
"updatedAt": "2025-06-29T10:00:10.000Z"
}{
"error": {
"code": "UNAUTHORIZED",
"message": "Invalid API key"
}
}{
"error": {
"code": "NOT_FOUND",
"message": "Chargeback not found"
}
}GET /chargebacks/:id
Faz parte do recurso Chargebacks — as etapas do caso, o efeito no seu saldo e
a janela de defesa estão lá.
Os documentos não vêm aqui. A resposta traz o caso, não o material de contestação já enviado —
para isso há
GET /chargebacks/:id/documents. O campo que interessa
nesta resposta é o deadlineAt: é ele que diz até quando ainda dá para enviar prova.Response
Dados do chargeback