Create a recipient
curl https://sandbox.amnenpay.com/v1/recipients \
-X POST \
-H "Authorization: Bearer sk_test_51H8xExampleSandboxKeyOnly" \
-H "Content-Type: application/json" \
-d '{
"type": "phone",
"name": "Amina Yusuf",
"country": "KE",
"currency": "KES",
"phone": "+254712345678"
}'Recipient types
| Type | Description |
|---|---|
phone | Mobile money / wallet recipient identified by phone number. |
bank_account | Bank recipient with account number and bank code. |
wallet | Another Amnen wallet, identified by wallet ID. |
card | Push-to-card recipient (where supported). |
Endpoints
| Endpoint | Description |
|---|---|
POST /recipients | Create and validate a reusable recipient. |
GET /recipients | List saved recipients. |
GET /recipients/{id} | Retrieve a recipient. |
DELETE /recipients/{id} | Remove a saved recipient. |