Get Account Capabilities
Reports what the caller may do on one distribution account, combining their tenant-wide role with the role they hold on that account.
Owners can also ask what a third party could do, by passing user_id. Add role alongside it to ask hypothetically what that user could do if granted that role. role cannot be sent on its own and returns 400 without user_id. This backs the dashboard's access-granting picker, which warns when a grant would be inert because the user's tenant-wide role already excludes the action.
Path parameters
The unique identifier of the distribution account
Query parameters
Report this user's capabilities instead of the caller's. Owner only.
Report the capabilities a user would have if granted this role. Owner only.
Response
Capabilities retrieved successfully
Example response
{
"wallet_id": "8d1f6a2e-3c4b-4a5d-9e6f-7a8b9c0d1e2f",
"capabilities": {
"can_create_disbursement": true,
"can_start_disbursement": false,
"can_pause_disbursement": false,
"can_cancel_disbursement": false,
"can_create_payment": true,
"can_retry_payment": true,
"can_cancel_payment": false
}
}Changes
Changed in 1 of the 12 revisions of this API.1
- ○
endpoint added
endpoint-added
- ○