mirror of
https://github.com/stoatchat/rust-mollie-sdk.git
synced 2026-07-01 05:09:43 -04:00
2.6 KiB
2.6 KiB
\PermissionsApiApi
All URIs are relative to https://api.mollie.com/v2
| Method | HTTP request | Description |
|---|---|---|
| get_permission | GET /permissions/{permissionId} | Get permission |
| list_permissions | GET /permissions | List permissions |
get_permission
models::EntityPermission get_permission(permission_id, testmode, idempotency_key) Get permission
Retrieve a single permission by its ID, and see if the permission is granted to the current access token.
Parameters
| Name | Type | Description | Required | Notes |
|---|---|---|---|---|
| permission_id | String | Provide the ID of the related permission. | [required] | |
| testmode | Option<bool> | Most API credentials are specifically created for either live mode or test mode. In those cases the testmode query parameter can be omitted. For organization-level credentials such as OAuth access tokens, 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. |
||
| idempotency_key | Option<String> | A unique key to ensure idempotent requests. This key should be a UUID v4 string. |
Return type
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/hal+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list_permissions
models::ListPermissions200Response list_permissions(idempotency_key) List permissions
Retrieve a list of all permissions available to the current access token. The results are not paginated.
Parameters
| Name | Type | Description | Required | Notes |
|---|---|---|---|---|
| idempotency_key | Option<String> | A unique key to ensure idempotent requests. This key should be a UUID v4 string. |
Return type
models::ListPermissions200Response
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/hal+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]