Get next settlement
Settlements API

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

Retrieve the details of the current settlement that has not yet been paid out.

Parameters

No parameters required.

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

The next settlement is returned in the same fashion as the Get settlement endpoint.

Example

Request code

require_once 'Mollie/API/Autoloader.php';

$mollie = new Mollie_API_Client;
$mollie->setAccessToken('access_Wwvu7egPcJLLJ9Kb7J632x8wJ2zMeJ');

try
{
    $settlement = $mollie->settlements->get('next');

    echo $settlement->id. ': ' .  $settlement->amount;
}
catch (Mollie_API_Exception $e)
{
    echo 'API call failed: ' + $e->getMessage();
}

Response

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

{
    "resource": "settlement",
    "id": "next",
    "reference": null,
    "settledDatetime": "2015-01-09T07:00:00.0Z",
    "amount": "994.55",
    "periods": {
        "2015": {
            "01": {
                "revenue": [
                    {
                        "description": "iDEAL",
                        "method": "ideal",
                        "count": 3,
                        "amount": {
                            "net": "100.0000",
                            "vat": null,
                            "gross": "100.0000"
                        }
                    }
                ],
                "costs": [
                    {
                        "description": "iDEAL",
                        "method": "ideal",
                        "count": 3,
                        "amount": {
                            "net": "4.5000",
                            "vat": "0.9450",
                            "gross": "5.4450"
                        }
                    }
                ]
            }
        }
    }
}