Developers

Create, price, approve, reject and track payments.

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-Keystringrequired

    Unique 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

    One of bank email
  • amountstringrequired

    Amount to send, up to 2 decimals

    Example 1250.00
  • currencystringrequired

    ISO currency the amount is expressed in

    Example USD
  • source_currencystringoptional

    Wallet to debit. Defaults to currency when omitted.

    Example USD
  • target_currencystringoptional

    Currency the recipient is paid in. Defaults to currency when omitted.

    Example GBP
  • fee_bearerstringoptional

    Who carries the ekash fee. Defaults to "sender".

    One of sender receiver shared
  • referencestringoptional

    Your own reference, stored and shown on the remittance

    Example INV-2026-0417
  • platformstringoptional

    Wallet 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".

    One of wise wallet payoneer wallet paypal wallet e-kash wallet
  • recipientRecipientInputoptional

    Inline recipient. Mutually exclusive with recipient_id.

    25 child attributes
    • namestringoptional

      Beneficiary name. Required for the bank rail; optional for an e-wallet payout.

    • emailstringoptional

      Recipient identifier for the email rail: an email, a @wisetag or a phone number depending on the platform

    • platformstringoptional

      Wallet rail — required when rail = "email"

      One of wise wallet payoneer wallet paypal wallet e-kash wallet
    • country_codestringoptional

      ISO 3166-1 alpha-2 country of the recipient's bank

      Example GB
    • ibanstringoptional
    • swift_codestringoptional
    • account_numberstringoptional
    • routing_numberstringoptional
    • sort_codestringoptional
    • bank_codestringoptional
    • ifsc_codestringoptional
    • bsb_codestringoptional
    • branch_codestringoptional
    • clabestringoptional
    • cpfstringoptional
    • institution_numberstringoptional
    • transit_numberstringoptional
    • phone_numberstringoptional
    • date_of_birthstringoptional

      YYYY-MM-DD, required for some destinations (e.g. Korea)

    • card_numberstringoptional
    • address_citystringoptional
    • address_statestringoptional
    • address_line1stringoptional
    • address_postal_codestringoptional
    • receiver_typestringoptional
      One of PRIVATE BUSINESS
  • recipient_idstringoptional

    Id of a saved recipient (see GET /v1/recipients). Mutually exclusive with recipient.

  • quote_refstringoptional

    The quote_ref returned 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.

    Example qt_4f9k2m7x1c8p0d3s6h5j2a9b

Responses

200Replay of a previous create with this Idempotency-Key

application/json

Schema PaymentResponse

  • 32 child attributes
    • idstring

      ekash payment id

      Example 48210
    • railstring

      "bank" for a bank transfer, "email" for a wallet payout keyed by the recipient's email

      One of bank email
    • statusstring

      Customer-facing status

      One of ready_to_process processing sent received refunded canceled unclaimed on_hold
    • directionstring

      "out" for money leaving the company, "in" for money arriving

      One of in out
    • amountstring

      Amount requested, 2 decimals

      Example 1250.00
    • currencystring

      ISO currency of amount

      Example USD
    • source_currencystring

      Wallet the money is taken from

      Example USD
    • target_currencystring

      Currency the recipient is paid in

      Example GBP
    • feesstring

      ekash service fee (includes the conversion component)

      Example 5.00
    • fees_currencystring
    • fee_bearerstring

      Who carries the fee

      One of sender receiver shared
    • total_debitedstring

      Total debited from the wallet, when it has been computed

      Example 1255.00
    • recipient_getsstring

      Amount the recipient receives, when known

      Example 1250.00
    • 5 child attributes
      • namestring
      • emailstring
      • platformstring

        Wallet rail for an email payout

        One of wise wallet payoneer wallet paypal wallet e-kash wallet
      • country_codestring
      • masked_accountstring

        Masked account number / IBAN — ekash never returns a full account identifier

    • referencestring

      Your reference, echoed back

      Example INV-2026-0417
    • transaction_idstring

      ekash transaction id shown to the customer in the apps

    • batch_idstring

      Batch id when this payment came from an uploaded batch; null for a single payment

    • 2 child attributes
      • statusstring
        One of validating valid invalid unverified
      • messagestring

        The backend's own explanation, shown verbatim in the apps

    • errorsmap of string

      Per-field problems that must be fixed before this payment can be approved

    • remittance_availableboolean

      True exactly when GET /v1/payments/{id}/remittance will return the PDF: the payout was dispatched successfully and its rail issues a remittance advice

    • created_atstring

      RFC 3339 UTC

      Example 2026-09-22T09:14:03Z
    • approved_atstring
    • idempotency_keystring

      The Idempotency-Key this payment was created with

    • sender_feestring

      The 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 fees charged to the wallet.

      Example 15.00
    • recipient_feestring

      The part of the ekash fee taken off what the recipient receives, in fee_currency. v2 payments only.

      Example 15.00
    • conversion_feestring

      The 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.

      Example 10.00
    • fee_currencystring

      Currency of sender_fee, recipient_fee and conversion_fee: the wallet that was debited

      Example USD
    • recipient_gets_is_exactboolean

      False when expected_received is an estimate (the recipient's bank or the provider can still take a fee). v2 payments only.

    • expected_receivedstring

      What 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.

      Example 985.00
    • ratestring

      Locked conversion rate (units of target_currency per 1 unit of source_currency); absent without a conversion

      Example 3.6725
    • price_locked_atstring

      When the price and the exchange rate were locked (RFC 3339 UTC). v2 payments only.

      Example 2026-11-02T12:00:00.000Z
    • price_refstring

      Opaque reference of the price that was applied. v2 payments only.

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

  • 32 child attributes
    • idstring

      ekash payment id

      Example 48210
    • railstring

      "bank" for a bank transfer, "email" for a wallet payout keyed by the recipient's email

      One of bank email
    • statusstring

      Customer-facing status

      One of ready_to_process processing sent received refunded canceled unclaimed on_hold
    • directionstring

      "out" for money leaving the company, "in" for money arriving

      One of in out
    • amountstring

      Amount requested, 2 decimals

      Example 1250.00
    • currencystring

      ISO currency of amount

      Example USD
    • source_currencystring

      Wallet the money is taken from

      Example USD
    • target_currencystring

      Currency the recipient is paid in

      Example GBP
    • feesstring

      ekash service fee (includes the conversion component)

      Example 5.00
    • fees_currencystring
    • fee_bearerstring

      Who carries the fee

      One of sender receiver shared
    • total_debitedstring

      Total debited from the wallet, when it has been computed

      Example 1255.00
    • recipient_getsstring

      Amount the recipient receives, when known

      Example 1250.00
    • 5 child attributes
      • namestring
      • emailstring
      • platformstring

        Wallet rail for an email payout

        One of wise wallet payoneer wallet paypal wallet e-kash wallet
      • country_codestring
      • masked_accountstring

        Masked account number / IBAN — ekash never returns a full account identifier

    • referencestring

      Your reference, echoed back

      Example INV-2026-0417
    • transaction_idstring

      ekash transaction id shown to the customer in the apps

    • batch_idstring

      Batch id when this payment came from an uploaded batch; null for a single payment

    • 2 child attributes
      • statusstring
        One of validating valid invalid unverified
      • messagestring

        The backend's own explanation, shown verbatim in the apps

    • errorsmap of string

      Per-field problems that must be fixed before this payment can be approved

    • remittance_availableboolean

      True exactly when GET /v1/payments/{id}/remittance will return the PDF: the payout was dispatched successfully and its rail issues a remittance advice

    • created_atstring

      RFC 3339 UTC

      Example 2026-09-22T09:14:03Z
    • approved_atstring
    • idempotency_keystring

      The Idempotency-Key this payment was created with

    • sender_feestring

      The 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 fees charged to the wallet.

      Example 15.00
    • recipient_feestring

      The part of the ekash fee taken off what the recipient receives, in fee_currency. v2 payments only.

      Example 15.00
    • conversion_feestring

      The 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.

      Example 10.00
    • fee_currencystring

      Currency of sender_fee, recipient_fee and conversion_fee: the wallet that was debited

      Example USD
    • recipient_gets_is_exactboolean

      False when expected_received is an estimate (the recipient's bank or the provider can still take a fee). v2 payments only.

    • expected_receivedstring

      What 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.

      Example 985.00
    • ratestring

      Locked conversion rate (units of target_currency per 1 unit of source_currency); absent without a conversion

      Example 3.6725
    • price_locked_atstring

      When the price and the exchange rate were locked (RFC 3339 UTC). v2 payments only.

      Example 2026-11-02T12:00:00.000Z
    • price_refstring

      Opaque reference of the price that was applied. v2 payments only.

      Example pr_9c1f0a47b2d83e55
400Idempotency-Key missing

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 · 400
{
  "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

  • 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 · 403
{
  "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

  • 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": "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

  • 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": "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

  • 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 · 429
{
  "error": {
    "type": "rate_limited",
    "code": "rate_limited",
    "message": "Rate limit or daily payment cap reached.",
    "request_id": "6f0c1e1a-2b7d-4c55-9f0e-3a1d2c4b5e6f"
  }
}
Request
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"
    }
  }'
Response · 201
{
  "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

    One of bank email
  • amountstringrequired

    Amount to send, up to 2 decimals

    Example 1250.00
  • currencystringrequired

    ISO currency the amount is expressed in

    Example USD
  • source_currencystringoptional

    Wallet to debit. Defaults to currency when omitted.

    Example USD
  • target_currencystringoptional

    Currency the recipient is paid in. Defaults to currency when omitted.

    Example GBP
  • fee_bearerstringoptional

    Who carries the ekash fee. Defaults to "sender".

    One of sender receiver shared
  • referencestringoptional

    Your own reference, stored and shown on the remittance

    Example INV-2026-0417
  • platformstringoptional

    Wallet 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".

    One of wise wallet payoneer wallet paypal wallet e-kash wallet
  • recipientRecipientInputoptional

    Inline recipient. Mutually exclusive with recipient_id.

    25 child attributes
    • namestringoptional

      Beneficiary name. Required for the bank rail; optional for an e-wallet payout.

    • emailstringoptional

      Recipient identifier for the email rail: an email, a @wisetag or a phone number depending on the platform

    • platformstringoptional

      Wallet rail — required when rail = "email"

      One of wise wallet payoneer wallet paypal wallet e-kash wallet
    • country_codestringoptional

      ISO 3166-1 alpha-2 country of the recipient's bank

      Example GB
    • ibanstringoptional
    • swift_codestringoptional
    • account_numberstringoptional
    • routing_numberstringoptional
    • sort_codestringoptional
    • bank_codestringoptional
    • ifsc_codestringoptional
    • bsb_codestringoptional
    • branch_codestringoptional
    • clabestringoptional
    • cpfstringoptional
    • institution_numberstringoptional
    • transit_numberstringoptional
    • phone_numberstringoptional
    • date_of_birthstringoptional

      YYYY-MM-DD, required for some destinations (e.g. Korea)

    • card_numberstringoptional
    • address_citystringoptional
    • address_statestringoptional
    • address_line1stringoptional
    • address_postal_codestringoptional
    • receiver_typestringoptional
      One of PRIVATE BUSINESS
  • recipient_idstringoptional

    Id of a saved recipient (see GET /v1/recipients). Mutually exclusive with recipient.

  • quote_refstringoptional

    The quote_ref returned 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.

    Example qt_4f9k2m7x1c8p0d3s6h5j2a9b

Responses

200The price

application/json

Schema QuoteResponse

  • dataQuote
    22 child attributes
    • you_paystring

      Total debited from the source wallet: the same figure a payment created from this body reports as total_debited

      Example 1255.00
    • amountstring

      The amount being sent, as requested

      Example 1250.00
    • currencystring
    • source_currencystring
    • target_currencystring
    • feesstring

      ekash service fee (conversion component included)

      Example 5.00
    • provider_feesstring

      Provider rail fee when the provider quoted one

      Example 2.50
    • provider_fees_currencystring
    • provider_fees_estimatedboolean

      True when the provider fee is ekash's estimate rather than a live provider quote

    • recipient_getsstring

      What the recipient receives

      Example 1250.00
    • recipient_gets_is_exactboolean

      False when recipient_gets can still move at dispatch time

    • ratestring

      Conversion rate applied (units of target_currency per 1 unit of source_currency) when source and target currency differ; absent when they are the same

      Example 3.6725
    • fee_bearerstring
      One of sender receiver shared
    • sender_feestring

      The 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.

      Example 15.00
    • recipient_feestring

      The part of the ekash fee taken off what the recipient receives, in fee_currency

      Example 15.00
    • conversion_feestring

      The ekash conversion fee (whole), in fee_currency; zero when no conversion is needed. You pay your share of it on top (inside fees and you_pay), the rest is taken off what the recipient receives.

      Example 10.00
    • fee_currencystring

      Currency of sender_fee, recipient_fee and conversion_fee: the wallet that is debited

      Example USD
    • expected_receivedstring

      What 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.

      Example 985.00
    • price_locked_atstring

      When the price and the exchange rate were locked (RFC 3339 UTC)

      Example 2026-11-02T12:00:00.000Z
    • price_refstring

      Opaque reference of the price that was applied

      Example pr_9c1f0a47b2d83e55
    • quote_refstring

      Pass this as quote_ref on POST /v1/payments within quote_valid_until, with the same inputs, to be priced at exactly these rates. Absent when the quote cannot be honoured later.

      Example qt_4f9k2m7x1c8p0d3s6h5j2a9b
    • quote_valid_untilstring

      Last instant quote_ref is honoured (RFC 3339 UTC)

      Example 2026-11-02T12:15:00.000Z
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

  • 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": "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"
  }
}
Request
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"
    }
  }'
Response · 200
{
  "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

  • statusstringoptional

    ready_to_process | processing | sent | received | refunded | canceled | unclaimed | on_hold

  • directionstringoptional

    in | out

  • railstringoptional

    bank | email

  • currencystringoptional

    ISO currency of the payment amount

  • fromstringoptional

    yyyy-MM-dd, inclusive

  • tostringoptional

    yyyy-MM-dd, inclusive

  • batch_idstringoptional
  • referencestringoptional
  • cursorstringoptional

    next_cursor from the previous page

  • limitintegeroptional

    1-100, default 25

Responses

200A page of payments

application/json

Schema PaymentListResponse

  • dataarray of Payment
    32 child attributes
    • idstring

      ekash payment id

      Example 48210
    • railstring

      "bank" for a bank transfer, "email" for a wallet payout keyed by the recipient's email

      One of bank email
    • statusstring

      Customer-facing status

      One of ready_to_process processing sent received refunded canceled unclaimed on_hold
    • directionstring

      "out" for money leaving the company, "in" for money arriving

      One of in out
    • amountstring

      Amount requested, 2 decimals

      Example 1250.00
    • currencystring

      ISO currency of amount

      Example USD
    • source_currencystring

      Wallet the money is taken from

      Example USD
    • target_currencystring

      Currency the recipient is paid in

      Example GBP
    • feesstring

      ekash service fee (includes the conversion component)

      Example 5.00
    • fees_currencystring
    • fee_bearerstring

      Who carries the fee

      One of sender receiver shared
    • total_debitedstring

      Total debited from the wallet, when it has been computed

      Example 1255.00
    • recipient_getsstring

      Amount the recipient receives, when known

      Example 1250.00
    • 5 child attributes
      • namestring
      • emailstring
      • platformstring

        Wallet rail for an email payout

        One of wise wallet payoneer wallet paypal wallet e-kash wallet
      • country_codestring
      • masked_accountstring

        Masked account number / IBAN — ekash never returns a full account identifier

    • referencestring

      Your reference, echoed back

      Example INV-2026-0417
    • transaction_idstring

      ekash transaction id shown to the customer in the apps

    • batch_idstring

      Batch id when this payment came from an uploaded batch; null for a single payment

    • 2 child attributes
      • statusstring
        One of validating valid invalid unverified
      • messagestring

        The backend's own explanation, shown verbatim in the apps

    • errorsmap of string

      Per-field problems that must be fixed before this payment can be approved

    • remittance_availableboolean

      True exactly when GET /v1/payments/{id}/remittance will return the PDF: the payout was dispatched successfully and its rail issues a remittance advice

    • created_atstring

      RFC 3339 UTC

      Example 2026-09-22T09:14:03Z
    • approved_atstring
    • idempotency_keystring

      The Idempotency-Key this payment was created with

    • sender_feestring

      The 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 fees charged to the wallet.

      Example 15.00
    • recipient_feestring

      The part of the ekash fee taken off what the recipient receives, in fee_currency. v2 payments only.

      Example 15.00
    • conversion_feestring

      The 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.

      Example 10.00
    • fee_currencystring

      Currency of sender_fee, recipient_fee and conversion_fee: the wallet that was debited

      Example USD
    • recipient_gets_is_exactboolean

      False when expected_received is an estimate (the recipient's bank or the provider can still take a fee). v2 payments only.

    • expected_receivedstring

      What 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.

      Example 985.00
    • ratestring

      Locked conversion rate (units of target_currency per 1 unit of source_currency); absent without a conversion

      Example 3.6725
    • price_locked_atstring

      When the price and the exchange rate were locked (RFC 3339 UTC). v2 payments only.

      Example 2026-11-02T12:00:00.000Z
    • price_refstring

      Opaque reference of the price that was applied. v2 payments only.

      Example pr_9c1f0a47b2d83e55
  • 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/payments?limit=25' \
  -H "Authorization: Bearer $EKASH_API_KEY"
Response · 200
{
  "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

  • 32 child attributes
    • idstring

      ekash payment id

      Example 48210
    • railstring

      "bank" for a bank transfer, "email" for a wallet payout keyed by the recipient's email

      One of bank email
    • statusstring

      Customer-facing status

      One of ready_to_process processing sent received refunded canceled unclaimed on_hold
    • directionstring

      "out" for money leaving the company, "in" for money arriving

      One of in out
    • amountstring

      Amount requested, 2 decimals

      Example 1250.00
    • currencystring

      ISO currency of amount

      Example USD
    • source_currencystring

      Wallet the money is taken from

      Example USD
    • target_currencystring

      Currency the recipient is paid in

      Example GBP
    • feesstring

      ekash service fee (includes the conversion component)

      Example 5.00
    • fees_currencystring
    • fee_bearerstring

      Who carries the fee

      One of sender receiver shared
    • total_debitedstring

      Total debited from the wallet, when it has been computed

      Example 1255.00
    • recipient_getsstring

      Amount the recipient receives, when known

      Example 1250.00
    • 5 child attributes
      • namestring
      • emailstring
      • platformstring

        Wallet rail for an email payout

        One of wise wallet payoneer wallet paypal wallet e-kash wallet
      • country_codestring
      • masked_accountstring

        Masked account number / IBAN — ekash never returns a full account identifier

    • referencestring

      Your reference, echoed back

      Example INV-2026-0417
    • transaction_idstring

      ekash transaction id shown to the customer in the apps

    • batch_idstring

      Batch id when this payment came from an uploaded batch; null for a single payment

    • 2 child attributes
      • statusstring
        One of validating valid invalid unverified
      • messagestring

        The backend's own explanation, shown verbatim in the apps

    • errorsmap of string

      Per-field problems that must be fixed before this payment can be approved

    • remittance_availableboolean

      True exactly when GET /v1/payments/{id}/remittance will return the PDF: the payout was dispatched successfully and its rail issues a remittance advice

    • created_atstring

      RFC 3339 UTC

      Example 2026-09-22T09:14:03Z
    • approved_atstring
    • idempotency_keystring

      The Idempotency-Key this payment was created with

    • sender_feestring

      The 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 fees charged to the wallet.

      Example 15.00
    • recipient_feestring

      The part of the ekash fee taken off what the recipient receives, in fee_currency. v2 payments only.

      Example 15.00
    • conversion_feestring

      The 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.

      Example 10.00
    • fee_currencystring

      Currency of sender_fee, recipient_fee and conversion_fee: the wallet that was debited

      Example USD
    • recipient_gets_is_exactboolean

      False when expected_received is an estimate (the recipient's bank or the provider can still take a fee). v2 payments only.

    • expected_receivedstring

      What 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.

      Example 985.00
    • ratestring

      Locked conversion rate (units of target_currency per 1 unit of source_currency); absent without a conversion

      Example 3.6725
    • price_locked_atstring

      When the price and the exchange rate were locked (RFC 3339 UTC). v2 payments only.

      Example 2026-11-02T12:00:00.000Z
    • price_refstring

      Opaque reference of the price that was applied. v2 payments only.

      Example pr_9c1f0a47b2d83e55
404No such payment 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": "payment_not_found",
    "message": "No such payment for this API key's company.",
    "request_id": "6f0c1e1a-2b7d-4c55-9f0e-3a1d2c4b5e6f"
  }
}
Request
curl https://stage.ekash.ai/dev/v1/payments/48210 \
  -H "Authorization: Bearer $EKASH_API_KEY"
Response · 200
{
  "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_changebooleanoptional

    Set to true to accept the new price after a 409 price_changed.

  • expected_debitstringoptional

    The total debited you were shown (the quote's you_pay, or new_total_debited of the 409 price_changed body), e.g. 1255.00. When it is sent and the payment would now debit another amount, nothing is approved and you get 409 price_changed again with the new figures.

Responses

200Approved

application/json

Schema PaymentResponse

  • 32 child attributes
    • idstring

      ekash payment id

      Example 48210
    • railstring

      "bank" for a bank transfer, "email" for a wallet payout keyed by the recipient's email

      One of bank email
    • statusstring

      Customer-facing status

      One of ready_to_process processing sent received refunded canceled unclaimed on_hold
    • directionstring

      "out" for money leaving the company, "in" for money arriving

      One of in out
    • amountstring

      Amount requested, 2 decimals

      Example 1250.00
    • currencystring

      ISO currency of amount

      Example USD
    • source_currencystring

      Wallet the money is taken from

      Example USD
    • target_currencystring

      Currency the recipient is paid in

      Example GBP
    • feesstring

      ekash service fee (includes the conversion component)

      Example 5.00
    • fees_currencystring
    • fee_bearerstring

      Who carries the fee

      One of sender receiver shared
    • total_debitedstring

      Total debited from the wallet, when it has been computed

      Example 1255.00
    • recipient_getsstring

      Amount the recipient receives, when known

      Example 1250.00
    • 5 child attributes
      • namestring
      • emailstring
      • platformstring

        Wallet rail for an email payout

        One of wise wallet payoneer wallet paypal wallet e-kash wallet
      • country_codestring
      • masked_accountstring

        Masked account number / IBAN — ekash never returns a full account identifier

    • referencestring

      Your reference, echoed back

      Example INV-2026-0417
    • transaction_idstring

      ekash transaction id shown to the customer in the apps

    • batch_idstring

      Batch id when this payment came from an uploaded batch; null for a single payment

    • 2 child attributes
      • statusstring
        One of validating valid invalid unverified
      • messagestring

        The backend's own explanation, shown verbatim in the apps

    • errorsmap of string

      Per-field problems that must be fixed before this payment can be approved

    • remittance_availableboolean

      True exactly when GET /v1/payments/{id}/remittance will return the PDF: the payout was dispatched successfully and its rail issues a remittance advice

    • created_atstring

      RFC 3339 UTC

      Example 2026-09-22T09:14:03Z
    • approved_atstring
    • idempotency_keystring

      The Idempotency-Key this payment was created with

    • sender_feestring

      The 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 fees charged to the wallet.

      Example 15.00
    • recipient_feestring

      The part of the ekash fee taken off what the recipient receives, in fee_currency. v2 payments only.

      Example 15.00
    • conversion_feestring

      The 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.

      Example 10.00
    • fee_currencystring

      Currency of sender_fee, recipient_fee and conversion_fee: the wallet that was debited

      Example USD
    • recipient_gets_is_exactboolean

      False when expected_received is an estimate (the recipient's bank or the provider can still take a fee). v2 payments only.

    • expected_receivedstring

      What 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.

      Example 985.00
    • ratestring

      Locked conversion rate (units of target_currency per 1 unit of source_currency); absent without a conversion

      Example 3.6725
    • price_locked_atstring

      When the price and the exchange rate were locked (RFC 3339 UTC). v2 payments only.

      Example 2026-11-02T12:00:00.000Z
    • price_refstring

      Opaque reference of the price that was applied. v2 payments only.

      Example pr_9c1f0a47b2d83e55
409`invalid_state` (already approved or rejected) or `price_changed` (the price moved; nothing was approved)

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": "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

  • 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": "`expected_debit` is not a positive decimal, or insufficient balance.",
    "fields": {
      "recipient.iban": "Invalid IBAN for GB"
    },
    "request_id": "6f0c1e1a-2b7d-4c55-9f0e-3a1d2c4b5e6f"
  }
}
Request
curl -X POST https://stage.ekash.ai/dev/v1/payments/48210/approve \
  -H "Authorization: Bearer $EKASH_API_KEY"
Response · 200
{
  "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

  • 32 child attributes
    • idstring

      ekash payment id

      Example 48210
    • railstring

      "bank" for a bank transfer, "email" for a wallet payout keyed by the recipient's email

      One of bank email
    • statusstring

      Customer-facing status

      One of ready_to_process processing sent received refunded canceled unclaimed on_hold
    • directionstring

      "out" for money leaving the company, "in" for money arriving

      One of in out
    • amountstring

      Amount requested, 2 decimals

      Example 1250.00
    • currencystring

      ISO currency of amount

      Example USD
    • source_currencystring

      Wallet the money is taken from

      Example USD
    • target_currencystring

      Currency the recipient is paid in

      Example GBP
    • feesstring

      ekash service fee (includes the conversion component)

      Example 5.00
    • fees_currencystring
    • fee_bearerstring

      Who carries the fee

      One of sender receiver shared
    • total_debitedstring

      Total debited from the wallet, when it has been computed

      Example 1255.00
    • recipient_getsstring

      Amount the recipient receives, when known

      Example 1250.00
    • 5 child attributes
      • namestring
      • emailstring
      • platformstring

        Wallet rail for an email payout

        One of wise wallet payoneer wallet paypal wallet e-kash wallet
      • country_codestring
      • masked_accountstring

        Masked account number / IBAN — ekash never returns a full account identifier

    • referencestring

      Your reference, echoed back

      Example INV-2026-0417
    • transaction_idstring

      ekash transaction id shown to the customer in the apps

    • batch_idstring

      Batch id when this payment came from an uploaded batch; null for a single payment

    • 2 child attributes
      • statusstring
        One of validating valid invalid unverified
      • messagestring

        The backend's own explanation, shown verbatim in the apps

    • errorsmap of string

      Per-field problems that must be fixed before this payment can be approved

    • remittance_availableboolean

      True exactly when GET /v1/payments/{id}/remittance will return the PDF: the payout was dispatched successfully and its rail issues a remittance advice

    • created_atstring

      RFC 3339 UTC

      Example 2026-09-22T09:14:03Z
    • approved_atstring
    • idempotency_keystring

      The Idempotency-Key this payment was created with

    • sender_feestring

      The 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 fees charged to the wallet.

      Example 15.00
    • recipient_feestring

      The part of the ekash fee taken off what the recipient receives, in fee_currency. v2 payments only.

      Example 15.00
    • conversion_feestring

      The 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.

      Example 10.00
    • fee_currencystring

      Currency of sender_fee, recipient_fee and conversion_fee: the wallet that was debited

      Example USD
    • recipient_gets_is_exactboolean

      False when expected_received is an estimate (the recipient's bank or the provider can still take a fee). v2 payments only.

    • expected_receivedstring

      What 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.

      Example 985.00
    • ratestring

      Locked conversion rate (units of target_currency per 1 unit of source_currency); absent without a conversion

      Example 3.6725
    • price_locked_atstring

      When the price and the exchange rate were locked (RFC 3339 UTC). v2 payments only.

      Example 2026-11-02T12:00:00.000Z
    • price_refstring

      Opaque reference of the price that was applied. v2 payments only.

      Example pr_9c1f0a47b2d83e55
Request
curl -X POST https://stage.ekash.ai/dev/v1/payments/48210/reject \
  -H "Authorization: Bearer $EKASH_API_KEY"
Response · 200
{
  "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

  • 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": "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

  • 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 · 503
{
  "error": {
    "type": "server",
    "code": "provider_unavailable",
    "message": "The payout provider could not supply the advice; retry.",
    "request_id": "6f0c1e1a-2b7d-4c55-9f0e-3a1d2c4b5e6f"
  }
}
Request
curl https://stage.ekash.ai/dev/v1/payments/48210/remittance \
  -H "Authorization: Bearer $EKASH_API_KEY" \
  -o remittance.pdf
Response · 200
HTTP/1.1 200 OK
Content-Type: application/pdf

<binary application/pdf body>