List payments
Payments API

GET
https://api.mollie.nl/v1/payments
Authentication: API keys OAuth access tokens

Retrieve all payments created with the current payment profile, ordered from newest to oldest.

Parameters

offset
integer

Optional – The number of objects to skip.

count
integer

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

Mollie Connect/OAuth parameters

If you're creating an app with Mollie Connect/OAuth, the following parameters are also available. With the profileId parameter, you can specify which profile you want to look at when listing payments. If you omit the profileId parameter, you will get all payments on the organization. Organizations can have multiple profiles for each of their websites. See Profiles API for more.

profileId
string

Optional – The payment profile's unique identifier, for example pfl_3RkSN1zuPE.

testmode
boolean

Optional – Set this to true to only consider payments made in testmode.

Includes

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

  • settlement For each payment, include the settlement the payment belongs to (when available).
  • details.qrCode Include a QR code object (only available for iDEAL, Bitcoin and bank transfer payments).

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 payment objects as described in Get payment.

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

require_once 'Mollie/API/Autoloader.php';

$mollie = new Mollie_API_Client;
$mollie->setApiKey('test_dHar4XY7LxsDOtmnkVtjNVWXLSlXsM');

$payments = $mollie->payments->all();

Response

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

{
    "totalCount": 280,
    "offset": 0,
    "count": 10,
    "data": [
        {
            "resource": "payment",
            "id": "tr_7UhSN1zuXS",
            "mode": "test",
            "createdDatetime": "2017-12-16T06:58:04.0Z",
            "status": "open",
            "expiryPeriod": "PT15M",
            "amount": 10.00,
            "description": "My first payment",
            "metadata": {
                "order_id": "12345"
            },
            "locale": "nl",
            "profileId": "pfl_QkEhN94Ba",
            "links": {
                "redirectUrl": "https://webshop.example.org/order/12345/"
            }
        },
        { ... },
        { ... }
    ],
    "links": {
        "first": "https://api.mollie.nl/v1/payments?count=10&offset=0",
        "previous": null,
        "next": "https://api.mollie.nl/v1/payments?count=10&offset=10",
        "last": "https://api.mollie.nl/v1/payments?count=10&offset=270"
    }
}