List chargebacks¶
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 listing 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/chargebacks
GET
https://api.mollie.com/v1/payments/*paymentId*/chargebacks
Retrieve all received chargebacks. If the payment-specific endpoint is used, only chargebacks for that specific payment are returned.
The results are paginated. See pagination for more information.
Parameters¶
When using the payment-specific endpoint, replace paymentId
in the endpoint URL by the payment’s ID, for example
tr_7UhSN1zuXS
.
offset
integeroptionalcount
integeroptionalIncludes¶
This endpoint allows you to include additional information by appending the following values via the include
querystring parameter.
payment
For each chargeback, include the payment it belongs to.
Response¶
200
application/json
totalCount
integeroffset
integercount
integerdata
, which is either the requested number (with a maximum of 250) or the
default number.data
arraylinks
objectLinks to help navigate through the lists of chargebacks, based on the given offset.
previous
stringnext
stringfirst
stringlast
stringExample¶
Request¶
1 2 | curl -X GET https://api.mollie.com/v1/payments/tr_7UhSN1zuXS/chargebacks \ -H "Authorization: Bearer test_dHar4XY7LxsDOtmnkVtjNVWXLSlXsM" |
Response¶
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | HTTP/1.1 200 OK Content-Type: application/json { "totalCount": 3, "offset": 0, "count": 3, "data": [ { "resource": "chargeback", "id": "chb_n9z0tp", "payment": "tr_WDqYK6vllg", "amount": "-35.07", "chargebackDatetime": "2018-03-14T17:00:53.0Z", "reversedDatetime": null }, { }, { } ] } |