Skip to main content

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 CodeCodeDescriptionReason
40040004transaction id is invalidTransaction ID is invalid (format)
40340301not allowedThe user is not allowed to perform such action
40440407chargeback not foundThe chargeback analysis was not found
50050001internal errorInternal 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.