API reference
Recipients
Saved payees you can pay by id.
Endpoints
Add a recipient#
POST/v1/recipients
Required scope recipients:write
Validated against the destination's real requirements. The returned id can be used as recipient_id when creating a payment, so you never have to re-send bank details.
Request body
application/json · required
Schema CreateRecipientRequest
namestringoptionalBeneficiary name. Required for a bank payee; optional for an e-wallet payee.
emailstringoptionalIdentifier for an e-wallet payee (email, @wisetag or phone depending on the rail)
payment_methodstringrequiredcountry_codestringoptionalcurrencystringoptionalibanstringoptionalswift_codestringoptionalaccount_numberstringoptionalrouting_numberstringoptionalsort_codestringoptionaladdress_citystringoptionaladdress_statestringoptionaladdress_line1stringoptionaladdress_postal_codestringoptionalreceiver_typestringoptional
Responses
201Created
application/json
Schema RecipientResponse
dataRecipient14 child attributes
idstringnamestringemailstringpayment_methodstringcountry_codestringcurrencystringmasked_account_numberstringMasked account number, e.g. 12***89
masked_ibanstringMasked IBAN, e.g. GB29****1234
swift_codestringsort_codestringrouting_numberstringreceiver_typestringsourcestringMANUAL, or BATCH_PAYMENT when ekash saved it automatically from a sent batch payment
created_atstring
409An identical recipient already exists
application/json
Schema Error
errorErrorBody5 child attributes
typestringCoarse error family
codestringStable machine-readable code — branch on this, not on the message
messagestringHuman-readable explanation, safe to log
fieldsmap of stringPer-field errors, present for validation failures
request_idstringEcho of the X-Request-Id header — quote it in a support request
{
"error": {
"type": "conflict",
"code": "recipient_already_exists",
"message": "An identical recipient already exists.",
"request_id": "6f0c1e1a-2b7d-4c55-9f0e-3a1d2c4b5e6f"
}
}422Validation failed
application/json
Schema Error
errorErrorBody5 child attributes
typestringCoarse error family
codestringStable machine-readable code — branch on this, not on the message
messagestringHuman-readable explanation, safe to log
fieldsmap of stringPer-field errors, present for validation failures
request_idstringEcho of the X-Request-Id header — quote it in a support request
{
"error": {
"type": "validation",
"code": "validation_failed",
"message": "Validation failed.",
"fields": {
"recipient.iban": "Invalid IBAN for GB"
},
"request_id": "6f0c1e1a-2b7d-4c55-9f0e-3a1d2c4b5e6f"
}
}curl -X POST https://stage.ekash.ai/dev/v1/recipients \
-H "Authorization: Bearer $EKASH_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Jane Contractor",
"payment_method": "BANK",
"country_code": "GB",
"currency": "GBP",
"sort_code": "231470",
"account_number": "28821822",
"receiver_type": "PRIVATE",
"address_line1": "1 Example Street",
"address_city": "London",
"address_postal_code": "EC1A 1BB"
}'{
"data": {
"id": "5512",
"name": "Jane Contractor",
"email": "jane@example.com",
"payment_method": "BANK",
"country_code": "GB",
"currency": "USD",
"masked_account_number": "28****22",
"masked_iban": "string",
"swift_code": "NWBKGB2L",
"sort_code": "231470",
"routing_number": "026009593",
"receiver_type": "PRIVATE",
"source": "MANUAL",
"created_at": "2026-09-22T09:14:03Z"
}
}List recipients#
GET/v1/recipients
Required scope recipients:read
Newest first, cursor-paginated. search matches the name or the email.
Query parameters
searchstringoptionalMatches name or email
cursorstringoptionalnext_cursor from the previous page
limitintegeroptional1-100, default 25
Responses
200A page of saved payees
application/json
Schema RecipientListResponse
dataarray of Recipient14 child attributes
idstringnamestringemailstringpayment_methodstringcountry_codestringcurrencystringmasked_account_numberstringMasked account number, e.g. 12***89
masked_ibanstringMasked IBAN, e.g. GB29****1234
swift_codestringsort_codestringrouting_numberstringreceiver_typestringsourcestringMANUAL, or BATCH_PAYMENT when ekash saved it automatically from a sent batch payment
created_atstring
next_cursorstringPass back as ?cursor= for the next page; null at the end of the list
has_moreboolean
curl 'https://stage.ekash.ai/dev/v1/recipients?limit=25' \
-H "Authorization: Bearer $EKASH_API_KEY"{
"data": [
{
"id": "5512",
"name": "Jane Contractor",
"email": "jane@example.com",
"payment_method": "BANK",
"country_code": "GB",
"currency": "USD",
"masked_account_number": "28****22",
"masked_iban": "string",
"swift_code": "NWBKGB2L",
"sort_code": "231470",
"routing_number": "026009593",
"receiver_type": "PRIVATE",
"source": "MANUAL",
"created_at": "2026-09-22T09:14:03Z"
}
],
"next_cursor": "48117",
"has_more": true
}Get a recipient#
GET/v1/recipients/{id}
Required scope recipients:read
Path parameters
idstringrequired
Responses
200Found
application/json
Schema RecipientResponse
dataRecipient14 child attributes
idstringnamestringemailstringpayment_methodstringcountry_codestringcurrencystringmasked_account_numberstringMasked account number, e.g. 12***89
masked_ibanstringMasked IBAN, e.g. GB29****1234
swift_codestringsort_codestringrouting_numberstringreceiver_typestringsourcestringMANUAL, or BATCH_PAYMENT when ekash saved it automatically from a sent batch payment
created_atstring
404No such recipient for this API key's company
application/json
Schema Error
errorErrorBody5 child attributes
typestringCoarse error family
codestringStable machine-readable code — branch on this, not on the message
messagestringHuman-readable explanation, safe to log
fieldsmap of stringPer-field errors, present for validation failures
request_idstringEcho of the X-Request-Id header — quote it in a support request
{
"error": {
"type": "not_found",
"code": "recipient_not_found",
"message": "No such recipient for this API key's company.",
"request_id": "6f0c1e1a-2b7d-4c55-9f0e-3a1d2c4b5e6f"
}
}curl https://stage.ekash.ai/dev/v1/recipients/5512 \
-H "Authorization: Bearer $EKASH_API_KEY"{
"data": {
"id": "5512",
"name": "Jane Contractor",
"email": "jane@example.com",
"payment_method": "BANK",
"country_code": "GB",
"currency": "USD",
"masked_account_number": "28****22",
"masked_iban": "string",
"swift_code": "NWBKGB2L",
"sort_code": "231470",
"routing_number": "026009593",
"receiver_type": "PRIVATE",
"source": "MANUAL",
"created_at": "2026-09-22T09:14:03Z"
}
}Delete a recipient#
DELETE/v1/recipients/{id}
Required scope recipients:write
Removes the saved payee. Payments already made to it are untouched.
Path parameters
idstringrequired
Responses
204Deleted
No response body.
404No such recipient for this API key's company
application/json
Schema Error
errorErrorBody5 child attributes
typestringCoarse error family
codestringStable machine-readable code — branch on this, not on the message
messagestringHuman-readable explanation, safe to log
fieldsmap of stringPer-field errors, present for validation failures
request_idstringEcho of the X-Request-Id header — quote it in a support request
{
"error": {
"type": "not_found",
"code": "recipient_not_found",
"message": "No such recipient for this API key's company.",
"request_id": "6f0c1e1a-2b7d-4c55-9f0e-3a1d2c4b5e6f"
}
}curl -X DELETE https://stage.ekash.ai/dev/v1/recipients/5512 \
-H "Authorization: Bearer $EKASH_API_KEY"HTTP/1.1 204 No Content