Check chargeback analysis status
Introduction
This guide explains how to check the progress of a chargeback analysis through the REST API. To better understand what a chargeback is and how IDPay acts in these cases, see the guide Request analysis.
How to use?
Make a GET request to the endpoint /credit/transactions/{transaction_id}/chargeback/{chargeback_id}
With a valid access token, make a request to the endpoint (GET/credit/transactions/{transaction_id}/chargeback/{chargeback_id}).
The expected response on a successful request is a JSON containing the ID of the chargeback analysis and its status, like the following example:
{
"id": "8263a268-5388-492a-bca2-28e1ff4a69f0",
"status": "waiting"
}
For more information on status codes, see the Enumerated guide.
If an error occurs, the response returned is a JSON containing the error and the error code:
{
"error": {
"code": "40004",
"description": "transaction id is invalid"
}
}
Here's a list of errors returned by the service:
HTTP Code | Code | Description | Reason |
---|---|---|---|
400 | 40004 | transaction id is invalid | Transaction ID is invalid (format) |
403 | 40301 | not allowed | The user is not allowed to perform such action |
404 | 40407 | chargeback not found | The chargeback analysis was not found |
500 | 50001 | internal error | Internal server error |
Any concerns?
Missing something or still need help? If you are already a customer or partner, you can contact us through the Help Center.