List permissions
Permissions API

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

List all permissions available with the current OAuth access token.

Parameters

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 permissions as described in Get permission.

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';

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

    foreach ($mollie->permissions->all() as $permission)
    {
        echo $permission->id . ': ' . $permission->description;
    }
}
catch (Mollie_API_Exception $e)
{
    echo "API call failed: " . $e->getMessage();
}

Response

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

{
    "totalCount": 9,
    "offset": 0,
    "count": 9,
    "data": [
        {
            resource: "permission",
            id: "payments.read",
            description: "View your payments",
            warning: null,
            granted: true
        },
        { ... },
        { ... }
    ],
    "links": {
        "first": "https://api.mollie.nl/v1/permissions?count=10&offset=0",
        "previous": null,
        "next": "https://api.mollie.nl/v1/permissions?count=10&offset=10",
        "last": "https://api.mollie.nl/v1/permissions?count=10&offset=20"
    }
}