Permissions API
Get permission
Changed onRetrieve a single permission by its ID, and see if the permission is granted to the current access token.
get/v2/permissions/{permissionId}
Request
- Base URLhttps://api.mollie.com
- URLhttps://api.mollie.com/v2/permissions/{permissionId}
- Auth
- HTTP bearer
- or OAuth 2Authorization code: https://my.mollie.com/oauth2/authorizeToken URL: https://api.mollie.com/oauth2/tokens
Query parameters
testmodeboolean
You can enable test mode by setting the testmode query parameter to true.
Test entities cannot be retrieved when the endpoint is set to live mode, and vice versa.
Headers
idempotency-keystring
Example:123e4567-e89b-12d3-a456-426
A unique key to ensure idempotent requests. This key should be a UUID v4 string.
Response
The permission object.
Example response
{
"resource": "permission",
"id": "payments.read",
"description": "View your payments",
"granted": true,
"_links": {
"self": {
"href": "https://...",
"type": "application/hal+json"
},
"documentation": {
"href": "https://...",
"type": "application/hal+json"
}
}
}Changes
- info
the response property
/became required for the status - info
the response property
/became required for the status
- info
- info
added the non-success response with the status
- info