API reference
Payments
Create, price, approve, reject and track payments.
Endpoints
Create a payment#
POST/v1/payments
Required scope payments:write
Creates one payment and, if this API key auto-approves, dispatches it in the same request. Otherwise the payment is left in the ekash approval queue with status ready_to_process.
The Idempotency-Key header is REQUIRED: retrying a create with the same key returns the ORIGINAL payment (HTTP 200 and Idempotent-Replayed: true) instead of paying twice. Re-using a key with a different body is a 409 idempotency_key_reused.
Headers
Idempotency-KeystringrequiredUnique per payment attempt; required
Request body
application/json · required
Schema CreatePaymentRequest
railstringrequired"bank" for a bank transfer, "email" for a wallet payout keyed by the recipient's email
amountstringrequiredAmount to send, up to 2 decimals
currencystringrequiredISO currency the amount is expressed in
source_currencystringoptionalWallet to debit. Defaults to currency when omitted.
target_currencystringoptionalCurrency the recipient is paid in. Defaults to currency when omitted.
fee_bearerstringoptionalWho carries the ekash fee. Defaults to "sender".
referencestringoptionalYour own reference, stored and shown on the remittance
platformstringoptionalWallet rail for rail = "email". Required there, and the ONLY way to give it when paying a saved payee by recipient_id — a saved recipient records the account, not which wallet network to pay it on. With an inline recipient it may also be given as recipient.platform; this field wins if both are present. Ignored for rail = "bank".
Inline recipient. Mutually exclusive with recipient_id.
25 child attributes
namestringoptionalBeneficiary name. Required for the bank rail; optional for an e-wallet payout.
emailstringoptionalRecipient identifier for the email rail: an email, a @wisetag or a phone number depending on the platform
platformstringoptionalWallet rail — required when rail = "email"
country_codestringoptionalISO 3166-1 alpha-2 country of the recipient's bank
ibanstringoptionalswift_codestringoptionalaccount_numberstringoptionalrouting_numberstringoptionalsort_codestringoptionalbank_codestringoptionalifsc_codestringoptionalbsb_codestringoptionalbranch_codestringoptionalclabestringoptionalcpfstringoptionalinstitution_numberstringoptionaltransit_numberstringoptionalphone_numberstringoptionaldate_of_birthstringoptionalYYYY-MM-DD, required for some destinations (e.g. Korea)
card_numberstringoptionaladdress_citystringoptionaladdress_statestringoptionaladdress_line1stringoptionaladdress_postal_codestringoptionalreceiver_typestringoptional
recipient_idstringoptionalId of a saved recipient (see GET /v1/recipients). Mutually exclusive with recipient.
quote_refstringoptionalThe
quote_refreturned by POST /v1/payments/quote. Send it on the create within the quote's validity window (quote_valid_until, 15 minutes by default) with exactly the same amount, currencies, fee bearer, rail and destination country and the payment is priced at the rates you were quoted. Anything else (an expired, unknown or mismatching ref) is not an error: the payment is simply priced at the current rates.
Responses
200Replay of a previous create with this Idempotency-Key
application/json
Schema PaymentResponse
dataPayment32 child attributes
idstringekash payment id
railstring"bank" for a bank transfer, "email" for a wallet payout keyed by the recipient's email
statusstringCustomer-facing status
directionstring"out" for money leaving the company, "in" for money arriving
amountstringAmount requested, 2 decimals
currencystringISO currency of amount
source_currencystringWallet the money is taken from
target_currencystringCurrency the recipient is paid in
feesstringekash service fee (includes the conversion component)
fees_currencystringfee_bearerstringWho carries the fee
total_debitedstringTotal debited from the wallet, when it has been computed
recipient_getsstringAmount the recipient receives, when known
recipientPaymentRecipient5 child attributes
namestringemailstringplatformstringWallet rail for an email payout
country_codestringmasked_accountstringMasked account number / IBAN — ekash never returns a full account identifier
referencestringYour reference, echoed back
transaction_idstringekash transaction id shown to the customer in the apps
batch_idstringBatch id when this payment came from an uploaded batch; null for a single payment
validationPaymentValidation2 child attributes
statusstringmessagestringThe backend's own explanation, shown verbatim in the apps
errorsmap of stringPer-field problems that must be fixed before this payment can be approved
remittance_availablebooleanTrue exactly when GET /v1/payments/{id}/remittance will return the PDF: the payout was dispatched successfully and its rail issues a remittance advice
created_atstringRFC 3339 UTC
approved_atstringidempotency_keystringThe Idempotency-Key this payment was created with
sender_feestringThe part of the ekash fee the sender pays on top of the amount, in fee_currency. Present on payments priced by the fees v2 engine; on older payments it is the part of
feescharged to the wallet.recipient_feestringThe part of the ekash fee taken off what the recipient receives, in fee_currency. v2 payments only.
conversion_feestringThe whole ekash conversion fee, in fee_currency (zero without a conversion). The sender pays its share on top, the rest is taken off what the recipient receives. v2 payments only.
fee_currencystringCurrency of sender_fee, recipient_fee and conversion_fee: the wallet that was debited
recipient_gets_is_exactbooleanFalse when expected_received is an estimate (the recipient's bank or the provider can still take a fee). v2 payments only.
expected_receivedstringWhat the recipient is expected to get, in target_currency, as locked when the payment was priced. v2 payments only; recipient_gets is the provider-confirmed figure once the payout settled.
ratestringLocked conversion rate (units of target_currency per 1 unit of source_currency); absent without a conversion
price_locked_atstringWhen the price and the exchange rate were locked (RFC 3339 UTC). v2 payments only.
price_refstringOpaque reference of the price that was applied. v2 payments only.
{
"data": {
"id": "48210",
"rail": "bank",
"status": "processing",
"direction": "out",
"amount": "1250.00",
"currency": "USD",
"source_currency": "USD",
"target_currency": "GBP",
"fees": "5.00",
"fees_currency": "USD",
"fee_bearer": "sender",
"total_debited": "1255.00",
"recipient_gets": "1250.00",
"recipient": {
"name": "Jane Contractor",
"email": "jane@example.com",
"platform": "wise wallet",
"country_code": "GB",
"masked_account": "28****22"
},
"reference": "INV-2026-0417",
"transaction_id": null,
"batch_id": null,
"validation": {
"status": "validating",
"message": "This is not a payable account"
},
"errors": null,
"remittance_available": true,
"created_at": "2026-09-22T09:14:03Z",
"approved_at": "2026-09-22T09:15:40Z",
"idempotency_key": "3f9a1c4e-inv-2026-0417",
"sender_fee": "15.00",
"recipient_fee": "15.00",
"conversion_fee": "10.00",
"fee_currency": "USD",
"recipient_gets_is_exact": false,
"expected_received": "985.00",
"rate": "3.6725",
"price_locked_at": "2026-11-02T12:00:00.000Z",
"price_ref": "pr_9c1f0a47b2d83e55"
}
}201Created
application/json
Schema PaymentResponse
dataPayment32 child attributes
idstringekash payment id
railstring"bank" for a bank transfer, "email" for a wallet payout keyed by the recipient's email
statusstringCustomer-facing status
directionstring"out" for money leaving the company, "in" for money arriving
amountstringAmount requested, 2 decimals
currencystringISO currency of amount
source_currencystringWallet the money is taken from
target_currencystringCurrency the recipient is paid in
feesstringekash service fee (includes the conversion component)
fees_currencystringfee_bearerstringWho carries the fee
total_debitedstringTotal debited from the wallet, when it has been computed
recipient_getsstringAmount the recipient receives, when known
recipientPaymentRecipient5 child attributes
namestringemailstringplatformstringWallet rail for an email payout
country_codestringmasked_accountstringMasked account number / IBAN — ekash never returns a full account identifier
referencestringYour reference, echoed back
transaction_idstringekash transaction id shown to the customer in the apps
batch_idstringBatch id when this payment came from an uploaded batch; null for a single payment
validationPaymentValidation2 child attributes
statusstringmessagestringThe backend's own explanation, shown verbatim in the apps
errorsmap of stringPer-field problems that must be fixed before this payment can be approved
remittance_availablebooleanTrue exactly when GET /v1/payments/{id}/remittance will return the PDF: the payout was dispatched successfully and its rail issues a remittance advice
created_atstringRFC 3339 UTC
approved_atstringidempotency_keystringThe Idempotency-Key this payment was created with
sender_feestringThe part of the ekash fee the sender pays on top of the amount, in fee_currency. Present on payments priced by the fees v2 engine; on older payments it is the part of
feescharged to the wallet.recipient_feestringThe part of the ekash fee taken off what the recipient receives, in fee_currency. v2 payments only.
conversion_feestringThe whole ekash conversion fee, in fee_currency (zero without a conversion). The sender pays its share on top, the rest is taken off what the recipient receives. v2 payments only.
fee_currencystringCurrency of sender_fee, recipient_fee and conversion_fee: the wallet that was debited
recipient_gets_is_exactbooleanFalse when expected_received is an estimate (the recipient's bank or the provider can still take a fee). v2 payments only.
expected_receivedstringWhat the recipient is expected to get, in target_currency, as locked when the payment was priced. v2 payments only; recipient_gets is the provider-confirmed figure once the payout settled.
ratestringLocked conversion rate (units of target_currency per 1 unit of source_currency); absent without a conversion
price_locked_atstringWhen the price and the exchange rate were locked (RFC 3339 UTC). v2 payments only.
price_refstringOpaque reference of the price that was applied. v2 payments only.
400Idempotency-Key missing
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": "invalid_request",
"code": "idempotency_key_required",
"message": "Idempotency-Key missing.",
"request_id": "6f0c1e1a-2b7d-4c55-9f0e-3a1d2c4b5e6f"
}
}403Missing scope, unverified company, or frozen subscription
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": "permission",
"code": "insufficient_scope",
"message": "Missing scope, unverified company, or frozen subscription.",
"request_id": "6f0c1e1a-2b7d-4c55-9f0e-3a1d2c4b5e6f"
}
}409Idempotency-Key re-used with a different body
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": "idempotency_key_reused",
"message": "Idempotency-Key re-used with a different body.",
"request_id": "6f0c1e1a-2b7d-4c55-9f0e-3a1d2c4b5e6f"
}
}422Validation failed or insufficient balance, or the payment cannot be priced: `country_blocked`, `route_unavailable`, `fee_bearer_not_offered`, `amount_too_low`, `pricing_unavailable`
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": "country_blocked",
"message": "Validation failed or insufficient balance, or the payment cannot be priced: `country_blocked`, `route_unavailable`, `fee_bearer_not_offered`, `amount_too_low`, `pricing_unavailable`.",
"fields": {
"recipient.iban": "Invalid IBAN for GB"
},
"request_id": "6f0c1e1a-2b7d-4c55-9f0e-3a1d2c4b5e6f"
}
}429Rate limit or daily payment cap reached
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": "rate_limited",
"code": "rate_limited",
"message": "Rate limit or daily payment cap reached.",
"request_id": "6f0c1e1a-2b7d-4c55-9f0e-3a1d2c4b5e6f"
}
}curl -X POST https://stage.ekash.ai/dev/v1/payments \
-H "Authorization: Bearer $EKASH_API_KEY" \
-H "Idempotency-Key: 3f9a1c4e-inv-2026-0417" \
-H "Content-Type: application/json" \
-d '{
"rail": "bank",
"amount": "1250.00",
"currency": "USD",
"source_currency": "USD",
"target_currency": "GBP",
"fee_bearer": "sender",
"reference": "INV-2026-0417",
"recipient": {
"name": "Jane Contractor",
"country_code": "GB",
"sort_code": "231470",
"account_number": "28821822",
"receiver_type": "PRIVATE",
"address_line1": "1 Example Street",
"address_city": "London",
"address_postal_code": "EC1A 1BB"
}
}'{
"data": {
"id": "48210",
"rail": "bank",
"status": "processing",
"direction": "out",
"amount": "1250.00",
"currency": "USD",
"source_currency": "USD",
"target_currency": "GBP",
"fees": "5.00",
"fees_currency": "USD",
"fee_bearer": "sender",
"total_debited": "1255.00",
"recipient_gets": "1250.00",
"recipient": {
"name": "Jane Contractor",
"email": "jane@example.com",
"platform": "wise wallet",
"country_code": "GB",
"masked_account": "28****22"
},
"reference": "INV-2026-0417",
"transaction_id": null,
"batch_id": null,
"validation": {
"status": "validating",
"message": "This is not a payable account"
},
"errors": null,
"remittance_available": true,
"created_at": "2026-09-22T09:14:03Z",
"approved_at": "2026-09-22T09:15:40Z",
"idempotency_key": "3f9a1c4e-inv-2026-0417",
"sender_fee": "15.00",
"recipient_fee": "15.00",
"conversion_fee": "10.00",
"fee_currency": "USD",
"recipient_gets_is_exact": false,
"expected_received": "985.00",
"rate": "3.6725",
"price_locked_at": "2026-11-02T12:00:00.000Z",
"price_ref": "pr_9c1f0a47b2d83e55"
}
}Price a payment#
POST/v1/payments/quote
Required scope payments:read
Dry run: what the wallet would be debited, what the recipient would receive and what it costs, broken down into sender_fee (you pay it on top), recipient_fee (taken off what the recipient receives) and conversion_fee, all in fee_currency. Creates nothing and moves no money. The answer carries a quote_ref: send it as quote_ref on the create within quote_valid_until, with the same inputs, to be priced at exactly these rates.
Request body
application/json · required
Schema CreatePaymentRequest
railstringrequired"bank" for a bank transfer, "email" for a wallet payout keyed by the recipient's email
amountstringrequiredAmount to send, up to 2 decimals
currencystringrequiredISO currency the amount is expressed in
source_currencystringoptionalWallet to debit. Defaults to currency when omitted.
target_currencystringoptionalCurrency the recipient is paid in. Defaults to currency when omitted.
fee_bearerstringoptionalWho carries the ekash fee. Defaults to "sender".
referencestringoptionalYour own reference, stored and shown on the remittance
platformstringoptionalWallet rail for rail = "email". Required there, and the ONLY way to give it when paying a saved payee by recipient_id — a saved recipient records the account, not which wallet network to pay it on. With an inline recipient it may also be given as recipient.platform; this field wins if both are present. Ignored for rail = "bank".
Inline recipient. Mutually exclusive with recipient_id.
25 child attributes
namestringoptionalBeneficiary name. Required for the bank rail; optional for an e-wallet payout.
emailstringoptionalRecipient identifier for the email rail: an email, a @wisetag or a phone number depending on the platform
platformstringoptionalWallet rail — required when rail = "email"
country_codestringoptionalISO 3166-1 alpha-2 country of the recipient's bank
ibanstringoptionalswift_codestringoptionalaccount_numberstringoptionalrouting_numberstringoptionalsort_codestringoptionalbank_codestringoptionalifsc_codestringoptionalbsb_codestringoptionalbranch_codestringoptionalclabestringoptionalcpfstringoptionalinstitution_numberstringoptionaltransit_numberstringoptionalphone_numberstringoptionaldate_of_birthstringoptionalYYYY-MM-DD, required for some destinations (e.g. Korea)
card_numberstringoptionaladdress_citystringoptionaladdress_statestringoptionaladdress_line1stringoptionaladdress_postal_codestringoptionalreceiver_typestringoptional
recipient_idstringoptionalId of a saved recipient (see GET /v1/recipients). Mutually exclusive with recipient.
quote_refstringoptionalThe
quote_refreturned by POST /v1/payments/quote. Send it on the create within the quote's validity window (quote_valid_until, 15 minutes by default) with exactly the same amount, currencies, fee bearer, rail and destination country and the payment is priced at the rates you were quoted. Anything else (an expired, unknown or mismatching ref) is not an error: the payment is simply priced at the current rates.
Responses
200The price
application/json
Schema QuoteResponse
dataQuote22 child attributes
you_paystringTotal debited from the source wallet: the same figure a payment created from this body reports as total_debited
amountstringThe amount being sent, as requested
currencystringsource_currencystringtarget_currencystringfeesstringekash service fee (conversion component included)
provider_feesstringProvider rail fee when the provider quoted one
provider_fees_currencystringprovider_fees_estimatedbooleanTrue when the provider fee is ekash's estimate rather than a live provider quote
recipient_getsstringWhat the recipient receives
recipient_gets_is_exactbooleanFalse when recipient_gets can still move at dispatch time
ratestringConversion rate applied (units of target_currency per 1 unit of source_currency) when source and target currency differ; absent when they are the same
fee_bearerstringsender_feestringThe part of the ekash fee you pay on top of the amount, in fee_currency. Present on payments priced by the fees v2 engine; absent otherwise.
recipient_feestringThe part of the ekash fee taken off what the recipient receives, in fee_currency
conversion_feestringThe ekash conversion fee (whole), in fee_currency; zero when no conversion is needed. You pay your share of it on top (inside
feesandyou_pay), the rest is taken off what the recipient receives.fee_currencystringCurrency of sender_fee, recipient_fee and conversion_fee: the wallet that is debited
expected_receivedstringWhat the recipient is expected to get, in target_currency. The same figure as recipient_gets on a quote; use recipient_gets_is_exact to know whether it can still move.
price_locked_atstringWhen the price and the exchange rate were locked (RFC 3339 UTC)
price_refstringOpaque reference of the price that was applied
quote_refstringPass this as
quote_refon POST /v1/payments withinquote_valid_until, with the same inputs, to be priced at exactly these rates. Absent when the quote cannot be honoured later.quote_valid_untilstringLast instant
quote_refis honoured (RFC 3339 UTC)
422The payment cannot be priced: `country_blocked`, `route_unavailable`, `fee_bearer_not_offered`, `amount_too_low`, `pricing_unavailable`, or `validation_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": "The payment cannot be priced: `country_blocked`, `route_unavailable`, `fee_bearer_not_offered`, `amount_too_low`, `pricing_unavailable`, or `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/payments/quote \
-H "Authorization: Bearer $EKASH_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"rail": "bank",
"amount": "1250.00",
"currency": "USD",
"source_currency": "USD",
"target_currency": "GBP",
"fee_bearer": "sender",
"reference": "INV-2026-0417",
"recipient": {
"name": "Jane Contractor",
"country_code": "GB",
"sort_code": "231470",
"account_number": "28821822",
"receiver_type": "PRIVATE",
"address_line1": "1 Example Street",
"address_city": "London",
"address_postal_code": "EC1A 1BB"
}
}'{
"data": {
"you_pay": "1255.00",
"amount": "1250.00",
"currency": "USD",
"source_currency": "USD",
"target_currency": "GBP",
"fees": "5.00",
"provider_fees": "2.50",
"provider_fees_currency": "USD",
"provider_fees_estimated": true,
"recipient_gets": "986.20",
"recipient_gets_is_exact": false,
"fee_bearer": "sender"
}
}List payments#
GET/v1/payments
Required scope payments:read
Newest first, cursor-paginated. Batch members are listed individually and carry their batch_id. All filters are optional.
Query parameters
statusstringoptionalready_to_process | processing | sent | received | refunded | canceled | unclaimed | on_hold
directionstringoptionalin | out
railstringoptionalbank | email
currencystringoptionalISO currency of the payment amount
fromstringoptionalyyyy-MM-dd, inclusive
tostringoptionalyyyy-MM-dd, inclusive
batch_idstringoptionalreferencestringoptionalcursorstringoptionalnext_cursor from the previous page
limitintegeroptional1-100, default 25
Responses
200A page of payments
application/json
Schema PaymentListResponse
dataarray of Payment32 child attributes
idstringekash payment id
railstring"bank" for a bank transfer, "email" for a wallet payout keyed by the recipient's email
statusstringCustomer-facing status
directionstring"out" for money leaving the company, "in" for money arriving
amountstringAmount requested, 2 decimals
currencystringISO currency of amount
source_currencystringWallet the money is taken from
target_currencystringCurrency the recipient is paid in
feesstringekash service fee (includes the conversion component)
fees_currencystringfee_bearerstringWho carries the fee
total_debitedstringTotal debited from the wallet, when it has been computed
recipient_getsstringAmount the recipient receives, when known
recipientPaymentRecipient5 child attributes
namestringemailstringplatformstringWallet rail for an email payout
country_codestringmasked_accountstringMasked account number / IBAN — ekash never returns a full account identifier
referencestringYour reference, echoed back
transaction_idstringekash transaction id shown to the customer in the apps
batch_idstringBatch id when this payment came from an uploaded batch; null for a single payment
validationPaymentValidation2 child attributes
statusstringmessagestringThe backend's own explanation, shown verbatim in the apps
errorsmap of stringPer-field problems that must be fixed before this payment can be approved
remittance_availablebooleanTrue exactly when GET /v1/payments/{id}/remittance will return the PDF: the payout was dispatched successfully and its rail issues a remittance advice
created_atstringRFC 3339 UTC
approved_atstringidempotency_keystringThe Idempotency-Key this payment was created with
sender_feestringThe part of the ekash fee the sender pays on top of the amount, in fee_currency. Present on payments priced by the fees v2 engine; on older payments it is the part of
feescharged to the wallet.recipient_feestringThe part of the ekash fee taken off what the recipient receives, in fee_currency. v2 payments only.
conversion_feestringThe whole ekash conversion fee, in fee_currency (zero without a conversion). The sender pays its share on top, the rest is taken off what the recipient receives. v2 payments only.
fee_currencystringCurrency of sender_fee, recipient_fee and conversion_fee: the wallet that was debited
recipient_gets_is_exactbooleanFalse when expected_received is an estimate (the recipient's bank or the provider can still take a fee). v2 payments only.
expected_receivedstringWhat the recipient is expected to get, in target_currency, as locked when the payment was priced. v2 payments only; recipient_gets is the provider-confirmed figure once the payout settled.
ratestringLocked conversion rate (units of target_currency per 1 unit of source_currency); absent without a conversion
price_locked_atstringWhen the price and the exchange rate were locked (RFC 3339 UTC). v2 payments only.
price_refstringOpaque reference of the price that was applied. v2 payments only.
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/payments?limit=25' \
-H "Authorization: Bearer $EKASH_API_KEY"{
"data": [
{
"id": "48210",
"rail": "bank",
"status": "processing",
"direction": "out",
"amount": "1250.00",
"currency": "USD",
"source_currency": "USD",
"target_currency": "GBP",
"fees": "5.00",
"fees_currency": "USD",
"fee_bearer": "sender",
"total_debited": "1255.00",
"recipient_gets": "1250.00",
"recipient": {
"name": "Jane Contractor",
"email": "jane@example.com",
"platform": "wise wallet",
"country_code": "GB",
"masked_account": "28****22"
},
"reference": "INV-2026-0417",
"transaction_id": null,
"batch_id": null,
"validation": {
"status": "validating",
"message": "This is not a payable account"
},
"errors": null,
"remittance_available": true,
"created_at": "2026-09-22T09:14:03Z",
"approved_at": "2026-09-22T09:15:40Z",
"idempotency_key": "3f9a1c4e-inv-2026-0417",
"sender_fee": "15.00",
"recipient_fee": "15.00",
"conversion_fee": "10.00",
"fee_currency": "USD",
"recipient_gets_is_exact": false,
"expected_received": "985.00",
"rate": "3.6725",
"price_locked_at": "2026-11-02T12:00:00.000Z",
"price_ref": "pr_9c1f0a47b2d83e55"
}
],
"next_cursor": "48117",
"has_more": true
}Get a payment#
GET/v1/payments/{id}
Required scope payments:read
Path parameters
idstringrequired
Responses
200Found
application/json
Schema PaymentResponse
dataPayment32 child attributes
idstringekash payment id
railstring"bank" for a bank transfer, "email" for a wallet payout keyed by the recipient's email
statusstringCustomer-facing status
directionstring"out" for money leaving the company, "in" for money arriving
amountstringAmount requested, 2 decimals
currencystringISO currency of amount
source_currencystringWallet the money is taken from
target_currencystringCurrency the recipient is paid in
feesstringekash service fee (includes the conversion component)
fees_currencystringfee_bearerstringWho carries the fee
total_debitedstringTotal debited from the wallet, when it has been computed
recipient_getsstringAmount the recipient receives, when known
recipientPaymentRecipient5 child attributes
namestringemailstringplatformstringWallet rail for an email payout
country_codestringmasked_accountstringMasked account number / IBAN — ekash never returns a full account identifier
referencestringYour reference, echoed back
transaction_idstringekash transaction id shown to the customer in the apps
batch_idstringBatch id when this payment came from an uploaded batch; null for a single payment
validationPaymentValidation2 child attributes
statusstringmessagestringThe backend's own explanation, shown verbatim in the apps
errorsmap of stringPer-field problems that must be fixed before this payment can be approved
remittance_availablebooleanTrue exactly when GET /v1/payments/{id}/remittance will return the PDF: the payout was dispatched successfully and its rail issues a remittance advice
created_atstringRFC 3339 UTC
approved_atstringidempotency_keystringThe Idempotency-Key this payment was created with
sender_feestringThe part of the ekash fee the sender pays on top of the amount, in fee_currency. Present on payments priced by the fees v2 engine; on older payments it is the part of
feescharged to the wallet.recipient_feestringThe part of the ekash fee taken off what the recipient receives, in fee_currency. v2 payments only.
conversion_feestringThe whole ekash conversion fee, in fee_currency (zero without a conversion). The sender pays its share on top, the rest is taken off what the recipient receives. v2 payments only.
fee_currencystringCurrency of sender_fee, recipient_fee and conversion_fee: the wallet that was debited
recipient_gets_is_exactbooleanFalse when expected_received is an estimate (the recipient's bank or the provider can still take a fee). v2 payments only.
expected_receivedstringWhat the recipient is expected to get, in target_currency, as locked when the payment was priced. v2 payments only; recipient_gets is the provider-confirmed figure once the payout settled.
ratestringLocked conversion rate (units of target_currency per 1 unit of source_currency); absent without a conversion
price_locked_atstringWhen the price and the exchange rate were locked (RFC 3339 UTC). v2 payments only.
price_refstringOpaque reference of the price that was applied. v2 payments only.
404No such payment 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": "payment_not_found",
"message": "No such payment for this API key's company.",
"request_id": "6f0c1e1a-2b7d-4c55-9f0e-3a1d2c4b5e6f"
}
}curl https://stage.ekash.ai/dev/v1/payments/48210 \
-H "Authorization: Bearer $EKASH_API_KEY"{
"data": {
"id": "48210",
"rail": "bank",
"status": "processing",
"direction": "out",
"amount": "1250.00",
"currency": "USD",
"source_currency": "USD",
"target_currency": "GBP",
"fees": "5.00",
"fees_currency": "USD",
"fee_bearer": "sender",
"total_debited": "1255.00",
"recipient_gets": "1250.00",
"recipient": {
"name": "Jane Contractor",
"email": "jane@example.com",
"platform": "wise wallet",
"country_code": "GB",
"masked_account": "28****22"
},
"reference": "INV-2026-0417",
"transaction_id": null,
"batch_id": null,
"validation": {
"status": "validating",
"message": "This is not a payable account"
},
"errors": null,
"remittance_available": true,
"created_at": "2026-09-22T09:14:03Z",
"approved_at": "2026-09-22T09:15:40Z",
"idempotency_key": "3f9a1c4e-inv-2026-0417",
"sender_fee": "15.00",
"recipient_fee": "15.00",
"conversion_fee": "10.00",
"fee_currency": "USD",
"recipient_gets_is_exact": false,
"expected_received": "985.00",
"rate": "3.6725",
"price_locked_at": "2026-11-02T12:00:00.000Z",
"price_ref": "pr_9c1f0a47b2d83e55"
}
}Approve a payment#
POST/v1/payments/{id}/approve
Required scope payments:approve
Approves and dispatches a payment that is waiting in the approval queue. A payment that is already approved or rejected is a 409 invalid_state. If its price was locked more than 48 hours ago, or the exchange rate moved by more than 0.5 %, it is re-priced first; when the total debited would change nothing is approved and the answer is 409 price_changed with the new figures in error.fields (new_total_debited, new_fees, new_sender_fee, new_recipient_fee, new_conversion_fee, new_expected_received, fee_currency, rate, reason). Approve again with confirm_price_change=true and expected_debit = the new_total_debited you were shown: if the price moved again, you get price_changed again instead of an approval.
Path parameters
idstringrequired
Query parameters
confirm_price_changebooleanoptionalSet to true to accept the new price after a 409
price_changed.expected_debitstringoptionalThe total debited you were shown (the quote's
you_pay, ornew_total_debitedof the 409price_changedbody), e.g.1255.00. When it is sent and the payment would now debit another amount, nothing is approved and you get 409price_changedagain with the new figures.
Responses
200Approved
application/json
Schema PaymentResponse
dataPayment32 child attributes
idstringekash payment id
railstring"bank" for a bank transfer, "email" for a wallet payout keyed by the recipient's email
statusstringCustomer-facing status
directionstring"out" for money leaving the company, "in" for money arriving
amountstringAmount requested, 2 decimals
currencystringISO currency of amount
source_currencystringWallet the money is taken from
target_currencystringCurrency the recipient is paid in
feesstringekash service fee (includes the conversion component)
fees_currencystringfee_bearerstringWho carries the fee
total_debitedstringTotal debited from the wallet, when it has been computed
recipient_getsstringAmount the recipient receives, when known
recipientPaymentRecipient5 child attributes
namestringemailstringplatformstringWallet rail for an email payout
country_codestringmasked_accountstringMasked account number / IBAN — ekash never returns a full account identifier
referencestringYour reference, echoed back
transaction_idstringekash transaction id shown to the customer in the apps
batch_idstringBatch id when this payment came from an uploaded batch; null for a single payment
validationPaymentValidation2 child attributes
statusstringmessagestringThe backend's own explanation, shown verbatim in the apps
errorsmap of stringPer-field problems that must be fixed before this payment can be approved
remittance_availablebooleanTrue exactly when GET /v1/payments/{id}/remittance will return the PDF: the payout was dispatched successfully and its rail issues a remittance advice
created_atstringRFC 3339 UTC
approved_atstringidempotency_keystringThe Idempotency-Key this payment was created with
sender_feestringThe part of the ekash fee the sender pays on top of the amount, in fee_currency. Present on payments priced by the fees v2 engine; on older payments it is the part of
feescharged to the wallet.recipient_feestringThe part of the ekash fee taken off what the recipient receives, in fee_currency. v2 payments only.
conversion_feestringThe whole ekash conversion fee, in fee_currency (zero without a conversion). The sender pays its share on top, the rest is taken off what the recipient receives. v2 payments only.
fee_currencystringCurrency of sender_fee, recipient_fee and conversion_fee: the wallet that was debited
recipient_gets_is_exactbooleanFalse when expected_received is an estimate (the recipient's bank or the provider can still take a fee). v2 payments only.
expected_receivedstringWhat the recipient is expected to get, in target_currency, as locked when the payment was priced. v2 payments only; recipient_gets is the provider-confirmed figure once the payout settled.
ratestringLocked conversion rate (units of target_currency per 1 unit of source_currency); absent without a conversion
price_locked_atstringWhen the price and the exchange rate were locked (RFC 3339 UTC). v2 payments only.
price_refstringOpaque reference of the price that was applied. v2 payments only.
409`invalid_state` (already approved or rejected) or `price_changed` (the price moved; nothing was approved)
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": "price_changed",
"message": "`invalid_state` (already approved or rejected) or `price_changed` (the price moved; nothing was approved).",
"request_id": "6f0c1e1a-2b7d-4c55-9f0e-3a1d2c4b5e6f"
}
}422`expected_debit` is not a positive decimal, or insufficient balance
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": "`expected_debit` is not a positive decimal, or insufficient balance.",
"fields": {
"recipient.iban": "Invalid IBAN for GB"
},
"request_id": "6f0c1e1a-2b7d-4c55-9f0e-3a1d2c4b5e6f"
}
}curl -X POST https://stage.ekash.ai/dev/v1/payments/48210/approve \
-H "Authorization: Bearer $EKASH_API_KEY"{
"data": {
"id": "48210",
"rail": "bank",
"status": "processing",
"direction": "out",
"amount": "1250.00",
"currency": "USD",
"source_currency": "USD",
"target_currency": "GBP",
"fees": "5.00",
"fees_currency": "USD",
"fee_bearer": "sender",
"total_debited": "1255.00",
"recipient_gets": "1250.00",
"recipient": {
"name": "Jane Contractor",
"email": "jane@example.com",
"platform": "wise wallet",
"country_code": "GB",
"masked_account": "28****22"
},
"reference": "INV-2026-0417",
"transaction_id": null,
"batch_id": null,
"validation": {
"status": "validating",
"message": "This is not a payable account"
},
"errors": null,
"remittance_available": true,
"created_at": "2026-09-22T09:14:03Z",
"approved_at": "2026-09-22T09:15:40Z",
"idempotency_key": "3f9a1c4e-inv-2026-0417",
"sender_fee": "15.00",
"recipient_fee": "15.00",
"conversion_fee": "10.00",
"fee_currency": "USD",
"recipient_gets_is_exact": false,
"expected_received": "985.00",
"rate": "3.6725",
"price_locked_at": "2026-11-02T12:00:00.000Z",
"price_ref": "pr_9c1f0a47b2d83e55"
}
}Reject a payment#
POST/v1/payments/{id}/reject
Required scope payments:reject
Cancels a prepared payment. A payment that is already approved is a 409.
Path parameters
idstringrequired
Responses
200Rejected
application/json
Schema PaymentResponse
dataPayment32 child attributes
idstringekash payment id
railstring"bank" for a bank transfer, "email" for a wallet payout keyed by the recipient's email
statusstringCustomer-facing status
directionstring"out" for money leaving the company, "in" for money arriving
amountstringAmount requested, 2 decimals
currencystringISO currency of amount
source_currencystringWallet the money is taken from
target_currencystringCurrency the recipient is paid in
feesstringekash service fee (includes the conversion component)
fees_currencystringfee_bearerstringWho carries the fee
total_debitedstringTotal debited from the wallet, when it has been computed
recipient_getsstringAmount the recipient receives, when known
recipientPaymentRecipient5 child attributes
namestringemailstringplatformstringWallet rail for an email payout
country_codestringmasked_accountstringMasked account number / IBAN — ekash never returns a full account identifier
referencestringYour reference, echoed back
transaction_idstringekash transaction id shown to the customer in the apps
batch_idstringBatch id when this payment came from an uploaded batch; null for a single payment
validationPaymentValidation2 child attributes
statusstringmessagestringThe backend's own explanation, shown verbatim in the apps
errorsmap of stringPer-field problems that must be fixed before this payment can be approved
remittance_availablebooleanTrue exactly when GET /v1/payments/{id}/remittance will return the PDF: the payout was dispatched successfully and its rail issues a remittance advice
created_atstringRFC 3339 UTC
approved_atstringidempotency_keystringThe Idempotency-Key this payment was created with
sender_feestringThe part of the ekash fee the sender pays on top of the amount, in fee_currency. Present on payments priced by the fees v2 engine; on older payments it is the part of
feescharged to the wallet.recipient_feestringThe part of the ekash fee taken off what the recipient receives, in fee_currency. v2 payments only.
conversion_feestringThe whole ekash conversion fee, in fee_currency (zero without a conversion). The sender pays its share on top, the rest is taken off what the recipient receives. v2 payments only.
fee_currencystringCurrency of sender_fee, recipient_fee and conversion_fee: the wallet that was debited
recipient_gets_is_exactbooleanFalse when expected_received is an estimate (the recipient's bank or the provider can still take a fee). v2 payments only.
expected_receivedstringWhat the recipient is expected to get, in target_currency, as locked when the payment was priced. v2 payments only; recipient_gets is the provider-confirmed figure once the payout settled.
ratestringLocked conversion rate (units of target_currency per 1 unit of source_currency); absent without a conversion
price_locked_atstringWhen the price and the exchange rate were locked (RFC 3339 UTC). v2 payments only.
price_refstringOpaque reference of the price that was applied. v2 payments only.
curl -X POST https://stage.ekash.ai/dev/v1/payments/48210/reject \
-H "Authorization: Bearer $EKASH_API_KEY"{
"data": {
"id": "48210",
"rail": "bank",
"status": "processing",
"direction": "out",
"amount": "1250.00",
"currency": "USD",
"source_currency": "USD",
"target_currency": "GBP",
"fees": "5.00",
"fees_currency": "USD",
"fee_bearer": "sender",
"total_debited": "1255.00",
"recipient_gets": "1250.00",
"recipient": {
"name": "Jane Contractor",
"email": "jane@example.com",
"platform": "wise wallet",
"country_code": "GB",
"masked_account": "28****22"
},
"reference": "INV-2026-0417",
"transaction_id": null,
"batch_id": null,
"validation": {
"status": "validating",
"message": "This is not a payable account"
},
"errors": null,
"remittance_available": true,
"created_at": "2026-09-22T09:14:03Z",
"approved_at": "2026-09-22T09:15:40Z",
"idempotency_key": "3f9a1c4e-inv-2026-0417",
"sender_fee": "15.00",
"recipient_fee": "15.00",
"conversion_fee": "10.00",
"fee_currency": "USD",
"recipient_gets_is_exact": false,
"expected_received": "985.00",
"rate": "3.6725",
"price_locked_at": "2026-11-02T12:00:00.000Z",
"price_ref": "pr_9c1f0a47b2d83e55"
}
}Download the remittance advice#
GET/v1/payments/{id}/remittance
Required scope remittances:read
The PDF confirmation of transfer, once the payout has been successfully dispatched to the provider, on rails that issue one. Exactly when remittance_available is true on the payment; otherwise 409 remittance_not_available. Every failure is returned in the standard error envelope.
Path parameters
idstringrequired
Responses
200PDF bytes
application/pdf
409No remittance advice for this payment (not yet dispatched, or its rail does not issue one)
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": "remittance_not_available",
"message": "No remittance advice for this payment (not yet dispatched, or its rail does not issue one).",
"request_id": "6f0c1e1a-2b7d-4c55-9f0e-3a1d2c4b5e6f"
}
}503The payout provider could not supply the advice; retry
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": "server",
"code": "provider_unavailable",
"message": "The payout provider could not supply the advice; retry.",
"request_id": "6f0c1e1a-2b7d-4c55-9f0e-3a1d2c4b5e6f"
}
}curl https://stage.ekash.ai/dev/v1/payments/48210/remittance \
-H "Authorization: Bearer $EKASH_API_KEY" \
-o remittance.pdfHTTP/1.1 200 OK
Content-Type: application/pdf
<binary application/pdf body>