Reference
Permissions
Every permission an API key can hold and what it allows.
A key holds a list of permissions, chosen when it is created. Give each key only what its system needs. The person creating a key can only give permissions they hold themselves.
Collecting money
| Permission | Allows |
|---|---|
paylinks.read | View payment links and what each has collected. |
paylinks.create | Create payment links and send them to clients. |
paylinks.manage | Cancel payment links. |
shop.read | See the price list and what was sold. |
shop.manage | Change items and prices, load voucher codes, open or close the shop. |
invoices.read | View invoices and download their PDFs. |
invoices.create | Create invoices and email them. |
invoices.void | Cancel invoices, issue credit notes and replace a pay address. |
Reading
| Permission | Allows |
|---|---|
wallets.read | View the wallet balance and statement, and download statements and receipts. |
integrations.read | View API keys (never their secrets), webhook endpoints and the delivery log. |
What a key can never hold
| Permission | Why |
|---|---|
integrations.manage | Creating keys and changing webhook endpoints. A key must not be able to make more keys or redirect your events. |
access.roles.manage | Editing roles. A key must not be able to give itself more. |
access.users.assign | Changing people’s roles. |
Permissions that move money out
These are held by people, who confirm each action with a code from their authenticator. They are not given to API keys.
| Permission | Allows |
|---|---|
wallets.withdraw | Save the withdrawal account and take money out of the wallet. |
wallets.transfer | Send money to another business’s wallet. |
payouts.create | Create and send payouts. |
payouts.manage | Re-check, resend and confirm payouts. |
payables.approve | Approve or reject supplier invoices and verify supplier bank details. |
payables.pay | Send approved supplier invoices for payment. |
payables.controls | Set the approval rules. |
receivables.pay-details | Change the bank and M-Pesa details printed on invoices. |
When a permission is missing
The request answers 403 with the code PERMISSION_REQUIRED, and the message names the permission the key lacks. Create a new key with the right list; the permissions of an existing key do not change.
{
"error": {
"code": "PERMISSION_REQUIRED",
"message": "You don't have permission to do this (paylinks.manage)."
},
"requestId": "5b0f0f6e-…"
}