Reference
//
Grant access (create poli...
🔒 Private label — contact sales. Requires a private-label entitlement on your API client.
Grant access (create policy)
Security
oauth2ClientCredentials(Required scopes: wallet-policies:write)
Permission slugs to grant
Example:
[ "view-balance", "view-transactions", "initiate-transfer" ]
- Mock serverhttps://developer.boyahq.com/_mock/v2/openapi/wallet-policies
- Productionhttps://api.boyahq.com/v2/wallet-policies
- Sandboxhttps://sandbox.api.boyahq.com/v2/wallet-policies
curl -i -X POST \
https://developer.boyahq.com/_mock/v2/openapi/wallet-policies \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-H 'business_id: string' \
-d '{
"subject_type": "EMPLOYEE",
"employee_id": "string",
"business_id": "string",
"external_ref": "string",
"wallet_id": "string",
"permissions": [
"view-balance",
"view-transactions",
"initiate-transfer"
],
"limits": {
"per_transaction": 100000,
"daily_total": 500000,
"monthly_total": 2000000,
"currency": "KES"
},
"thresholds": {
"approval_required_above": 50000,
"auto_flag_above": 200000
},
"restrictions": {
"mask_balance": false,
"mask_transaction_amounts": false,
"max_transaction_history_days": 90
},
"valid_from": "string",
"valid_until": "string",
"granted_by": "string",
"label": "Finance Team Member",
"notes": "string"
}'Access granted successfully
Response
{ "_id": "string", "subject_type": "EMPLOYEE", "employee_id": {}, "business_id": "string", "external_ref": "string", "wallet_id": "string", "permissions": [ "string" ], "limits": { "per_transaction": {}, "daily_total": {}, "monthly_total": {}, "currency": "string" }, "thresholds": { "approval_required_above": {}, "auto_flag_above": {} }, "restrictions": { "mask_balance": true, "mask_transaction_amounts": true, "max_transaction_history_days": 0 }, "status": "ACTIVE", "valid_from": "string", "valid_until": "string", "granted_by": {}, "revoked_by": "string", "revoked_at": "string", "revoke_reason": "string", "label": "string", "notes": "string", "createdAt": "string", "updatedAt": "string" }