Get chargeback¶
Warning
The v1 API has been deprecated. The v1 API will be supported for the foreseeable future, at least until July 2023. However, new features will only be added to the v2 API.
The documentation for retrieving chargebacks in the new v2 API can be found here. For more information on the v2 API, refer to our v2 migration guide.
GET
https://api.mollie.com/v1/payments/*paymentId*/chargebacks/*id*
Retrieve a single chargeback by its ID. Note the original payment’s ID is needed as well.
If you do not know the original payment’s ID, you can use the chargebacks list endpoint.
Parameters¶
Replace paymentId
in the endpoint URL by the payment’s ID, and replace id
by the chargeback’s ID. For example:
/v1/payments/tr_7UhSN1zuXS/chargebacks/chb_n9z0tp
.
Includes¶
This endpoint allows you to include additional information by appending the following values via the include
querystring parameter.
payment
Include the payment object in the response.
Response¶
200
application/json
id
stringchb_n9z0tp
.payment
string|objectamount
decimalchargebackDatetime
datetimereversedDatetime
datetimeExample¶
Request¶
1 2 | curl -X GET https://api.mollie.com/v1/payments/tr_WDqYK6vllg/chargebacks/chb_n9z0tp \ -H "Authorization: Bearer test_dHar4XY7LxsDOtmnkVtjNVWXLSlXsM" |
Response¶
1 2 3 4 5 6 7 8 9 10 11 | HTTP/1.1 200 OK Content-Type: application/json { "resource": "chargeback", "id": "chb_n9z0tp", "payment": "tr_WDqYK6vllg", "amount": "-35.07", "chargebackDatetime": "2018-03-14T17:00:52.0Z", "reversedDatetime": null } |