Developers

Saved payees you can pay by id.

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

  • namestringoptional

    Beneficiary name. Required for a bank payee; optional for an e-wallet payee.

  • emailstringoptional

    Identifier for an e-wallet payee (email, @wisetag or phone depending on the rail)

  • payment_methodstringrequired
    One of BANK E_WALLET
  • country_codestringoptional
  • currencystringoptional
  • ibanstringoptional
  • swift_codestringoptional
  • account_numberstringoptional
  • routing_numberstringoptional
  • sort_codestringoptional
  • address_citystringoptional
  • address_statestringoptional
  • address_line1stringoptional
  • address_postal_codestringoptional
  • receiver_typestringoptional
    One of PRIVATE BUSINESS

Responses

201Created

application/json

Schema RecipientResponse

  • 14 child attributes
    • idstring
    • namestring
    • emailstring
    • payment_methodstring
      One of BANK E_WALLET
    • country_codestring
    • currencystring
    • masked_account_numberstring

      Masked account number, e.g. 12***89

    • masked_ibanstring

      Masked IBAN, e.g. GB29****1234

    • swift_codestring
    • sort_codestring
    • routing_numberstring
    • receiver_typestring
      One of PRIVATE BUSINESS
    • sourcestring

      MANUAL, or BATCH_PAYMENT when ekash saved it automatically from a sent batch payment

    • created_atstring
409An identical recipient already exists

application/json

Schema Error

  • 5 child attributes
    • typestring

      Coarse error family

      One of authentication permission invalid_request validation not_found conflict rate_limited server
    • codestring

      Stable machine-readable code — branch on this, not on the message

      Example validation_failed
    • messagestring

      Human-readable explanation, safe to log

      Example Please correct the highlighted fields.
    • fieldsmap of string

      Per-field errors, present for validation failures

    • request_idstring

      Echo of the X-Request-Id header — quote it in a support request

Example · 409
{
  "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

  • 5 child attributes
    • typestring

      Coarse error family

      One of authentication permission invalid_request validation not_found conflict rate_limited server
    • codestring

      Stable machine-readable code — branch on this, not on the message

      Example validation_failed
    • messagestring

      Human-readable explanation, safe to log

      Example Please correct the highlighted fields.
    • fieldsmap of string

      Per-field errors, present for validation failures

    • request_idstring

      Echo of the X-Request-Id header — quote it in a support request

Example · 422
{
  "error": {
    "type": "validation",
    "code": "validation_failed",
    "message": "Validation failed.",
    "fields": {
      "recipient.iban": "Invalid IBAN for GB"
    },
    "request_id": "6f0c1e1a-2b7d-4c55-9f0e-3a1d2c4b5e6f"
  }
}
Request
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"
  }'
Response · 201
{
  "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

  • searchstringoptional

    Matches name or email

  • cursorstringoptional

    next_cursor from the previous page

  • limitintegeroptional

    1-100, default 25

Responses

200A page of saved payees

application/json

Schema RecipientListResponse

  • dataarray of Recipient
    14 child attributes
    • idstring
    • namestring
    • emailstring
    • payment_methodstring
      One of BANK E_WALLET
    • country_codestring
    • currencystring
    • masked_account_numberstring

      Masked account number, e.g. 12***89

    • masked_ibanstring

      Masked IBAN, e.g. GB29****1234

    • swift_codestring
    • sort_codestring
    • routing_numberstring
    • receiver_typestring
      One of PRIVATE BUSINESS
    • sourcestring

      MANUAL, or BATCH_PAYMENT when ekash saved it automatically from a sent batch payment

    • created_atstring
  • next_cursorstring

    Pass back as ?cursor= for the next page; null at the end of the list

  • has_moreboolean
Request
curl 'https://stage.ekash.ai/dev/v1/recipients?limit=25' \
  -H "Authorization: Bearer $EKASH_API_KEY"
Response · 200
{
  "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

  • 14 child attributes
    • idstring
    • namestring
    • emailstring
    • payment_methodstring
      One of BANK E_WALLET
    • country_codestring
    • currencystring
    • masked_account_numberstring

      Masked account number, e.g. 12***89

    • masked_ibanstring

      Masked IBAN, e.g. GB29****1234

    • swift_codestring
    • sort_codestring
    • routing_numberstring
    • receiver_typestring
      One of PRIVATE BUSINESS
    • sourcestring

      MANUAL, 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

  • 5 child attributes
    • typestring

      Coarse error family

      One of authentication permission invalid_request validation not_found conflict rate_limited server
    • codestring

      Stable machine-readable code — branch on this, not on the message

      Example validation_failed
    • messagestring

      Human-readable explanation, safe to log

      Example Please correct the highlighted fields.
    • fieldsmap of string

      Per-field errors, present for validation failures

    • request_idstring

      Echo of the X-Request-Id header — quote it in a support request

Example · 404
{
  "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"
  }
}
Request
curl https://stage.ekash.ai/dev/v1/recipients/5512 \
  -H "Authorization: Bearer $EKASH_API_KEY"
Response · 200
{
  "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

  • 5 child attributes
    • typestring

      Coarse error family

      One of authentication permission invalid_request validation not_found conflict rate_limited server
    • codestring

      Stable machine-readable code — branch on this, not on the message

      Example validation_failed
    • messagestring

      Human-readable explanation, safe to log

      Example Please correct the highlighted fields.
    • fieldsmap of string

      Per-field errors, present for validation failures

    • request_idstring

      Echo of the X-Request-Id header — quote it in a support request

Example · 404
{
  "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"
  }
}
Request
curl -X DELETE https://stage.ekash.ai/dev/v1/recipients/5512 \
  -H "Authorization: Bearer $EKASH_API_KEY"
Response · 204
HTTP/1.1 204 No Content