List settlement refunds
Settlements API

GET
https://api.mollie.nl/v1/settlements/settlementId/refunds
Authentication: OAuth access tokens

Retrieve all refunds for the given settlement.

Parameters

Replace settlementId in the endpoint URL by the settlement's ID, for example stl_QM8w7JDEhU.

offset
integer

Optional – The number of objects to skip.

count
integer

Optional – The number of objects to return (with a maximum of 250).

Includes

Some endpoints allow you to indicate if you want more information to be included in the API response via the include querystring parameter.

  • No includes supported for this endpoint.

Response

200
application/json; charset=utf-8
totalCount
integer

The total number of objects available.

offset
integer

The number of skipped objects as requested.

count
integer

The number of objects found in data, which is either the requested number (with a maximum of 250) or the default number.

data
array

A list of refunds as described in Get refund.

links
object

Optional – Links to help navigate through the lists of objects, based on the given offset.

previous
string | null

Optional – The previous set of objects, if available.

next
string | null

Optional – The next set of objects, if available.

first
string | null

Optional – The first set of objects, if available.

last
string | null

Optional – The last set of objects, if available.

Example

Request code

// Not implemented. Create a pull request:
//   https://github.com/mollie/mollie-api-php

Response

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8

{
    "totalCount": 28,
    "offset": 0,
    "count": 10,
    "data": [
        {
            "id": "re_CkS3qkJ8Ny",
            "payment": {
                "resource": "payment",
                "id": "tr_2qkhcMzypH",
                "mode": "live",
                "createdDatetime": "2017-01-11T15:38:55.0Z",
                "status": "refunded",
                "paidDatetime": "2017-01-11T15:40:59.0Z",
                "amount": "25.00",
                "amountRefunded": "5.00",
                "amountRemaining": "45.00",
                "description": "Test payment 25 EU",
                "method": "ideal",
                "metadata": null,
                "profileId": "pfl_D96wnsu869",
                "links": {
                    "refunds": "http://api.mollie.dev/v1/payments/tr_2qkhcMzypH/refunds",
                    "settlement": "http://api.mollie.dev/v1/settlements/stl_QM8w7JDEhU"
                },
                "settlementId": "stl_QM8w7JDEhU"
            },
            "amount": "5.00",
            "status": "processing",
            "refundedDatetime": "2017-01-11T15:39:53.0Z",
            "description": "Test refund 5 EU",
            "links": {
                "self": "http://api.mollie.dev/v1/payments/tr_2qkhcMzypH/refunds/re_CkS3qkJ8Ny"
            }
        },
        { ... },
        { ... }
    ],
    "links": {
        "first": "https://api.mollie.nl/v1/settlements/stl_QM8w7JDEhU/refunds?count=10&offset=0",
        "previous": null,
        "next": "https://api.mollie.nl/v1/settlements/stl_QM8w7JDEhU/refunds?count=10&offset=10",
        "last": "https://api.mollie.nl/v1/settlements/stl_QM8w7JDEhU/refunds?count=10&offset=20"
    }
}