Learn how to view, edit, and delete beneficiaries in Notch Pay
GET https://api.notchpay.co/beneficiaries Authorization: YOUR_PUBLIC_KEY X-Grant: YOUR_PRIVATE_KEY
{ "code": 200, "status": "OK", "message": "Beneficiaries retrieved", "totals": 15, "last_page": 1, "current_page": 1, "selected": 15, "items": [ { "id": "ben_123456789", "name": "John Doe", "email": "john@example.com", "phone": "+237600000000", "country": "CM", "payment_method": "pm.ndzAfIh555VCPML1", "created_at": "2023-01-01T12:00:00Z" }, // More beneficiaries... ] }
GET https://api.notchpay.co/beneficiaries/{id} Authorization: YOUR_PUBLIC_KEY X-Grant: YOUR_PRIVATE_KEY
{ "status": "Accepted", "message": "Beneficiary retrieved", "code": 202, "beneficiary": { "id": "ben_123456789", "name": "John Doe", "email": "john@example.com", "phone": "+237600000000", "country": "CM", "payment_method": "pm.ndzAfIh555VCPML1", "created_at": "2023-01-01T12:00:00Z" } }
PUT https://api.notchpay.co/beneficiaries/{id} Authorization: YOUR_PUBLIC_KEY X-Grant: YOUR_PRIVATE_KEY Content-Type: application/json
{ "name": "John Smith", "email": "johnsmith@example.com", "phone": "+237600000001" }
{ "status": "Accepted", "message": "Beneficiary updated successfully", "code": 202, "beneficiary": { "id": "ben_123456789", "name": "John Smith", "email": "johnsmith@example.com", "phone": "+237600000001", "country": "CM", "payment_method": "pm.ndzAfIh555VCPML1", "created_at": "2023-01-01T12:00:00Z", "updated_at": "2023-01-02T12:00:00Z" } }
DELETE https://api.notchpay.co/beneficiaries/{id} Authorization: YOUR_PUBLIC_KEY X-Grant: YOUR_PRIVATE_KEY
{ "code": 202, "status": "Accepted", "message": "Beneficiary deleted successfully", "beneficiary": [] }
Was this page helpful?