List settlement chargebacks

Settlements API v2
GEThttps://api.mollie.com/v2/settlements/*settlementId*/chargebacks

Retrieve all chargebacks included in a settlement.

Parameters

Replace settlementId in the endpoint URL by the settlement’s ID, for example stl_jDk30akdN.

This endpoint is an alias of the List chargebacks endpoint. All parameters for that endpoint can be used here as well.

Response

200 application/hal+json

This endpoint is an alias of the List chargebacks endpoint. The response is therefore the exact same.

Example

Request

cURLPHPPythonRubyNode.js
1
2
curl -X GET https://api.mollie.com/v2/settlements/stl_jDk30akdN/chargebacks \
    -H "Authorization: Bearer access_Wwvu7egPcJLLJ9Kb7J632x8wJ2zMeJ"
1
2
3
4
5
6
<?php
$mollie = new \Mollie\Api\MollieApiClient();
$mollie->setAccessToken("access_Wwvu7egPcJLLJ9Kb7J632x8wJ2zMeJ");

$settlement = $mollie->settlements->get("stl_jDk30akdN");
$chargebacks = $settlement->chargebacks();
1
2
3
4
5
6
7
from mollie.api.client import Client

mollie_client = Client()
mollie_client.set_access_token("access_Wwvu7egPcJLLJ9Kb7J632x8wJ2zMeJ")

settlement = mollie_client.settlements.get("stl_jDk30akdN")
chargebacks = settlement.chargebacks.list()
1
2
3
4
5
6
7
require 'mollie-api-ruby'

Mollie::Client.configure do |config|
  config.api_key = 'access_Wwvu7egPcJLLJ9Kb7J632x8wJ2zMeJ'
end

settlement = Mollie::Settlement.open
1
2
3
4
We don't have a Node.js code example for this API call yet.

If you have some time to spare, feel free to share suggestions on our Discord:
https://discord.gg/VaTVkXB4aQ

Response

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
HTTP/1.1 200 OK
Content-Type: application/hal+json

{
    "count": 3,
    "_embedded": {
        "chargebacks": [
            {
                "resource": "chargeback",
                "id": "chb_n9z0tp",
                "amount": {
                    "value": "43.38",
                    "currency": "USD"
                },
                "settlementAmount": {
                    "value": "-37.14",
                    "currency": "EUR"
                },
                "createdAt": "2018-03-14T17:00:52.0Z",
                "reversedAt": null
                "paymentId": "tr_WDqYK6vllg",
                "settlementId": "stl_jDk30akdN",
                "_links": {
                     "self": {
                        "href": "https://api.mollie.com/v2/payments/tr_WDqYK6vllg/chargebacks/chb_n9z0tp",
                        "type": "application/hal+json"
                     },
                     "payment": {
                        "href": "https://api.mollie.com/v2/payments/tr_WDqYK6vllg",
                        "type": "application/hal+json"
                     },
                     "settlement": {
                         "href": "https://api.mollie.com/v2/settlements/stl_jDk30akdN",
                         "type": "application/hal+json"
                     }
                }
            }
            { },
            { }
        ]
    },
    "_links": {
         "documentation": {
            "href": "https://docs.mollie.com/reference/v2/settlements-api/list-settlement-chargebacks",
            "type": "text/html"
         },
         "self": {
            "href": "https://api.mollie.com/v2/settlements/stl_jDk30akdN/chargebacks",
            "type": "application/hal+json"
         },
         "previous": null,
         "next": null
    }
}