Receive Addresses

Get a crypto deposit address and a quote through the API and show it in your own interface, without an invoice or the hosted payment page.

🚧

Beta

Receive addresses are is in beta and may change.

A receive address is a deposit address for one stablecoin, issued together with a quote for the amount you want to receive. Use it when you run your own deposit screen — for example a wallet top-up or a gaming deposit — and want to show the payer an address instead of redirecting them to an EukaPay payment page.

Unlike an invoice, a receive address has no amount due and no paid / underpaid / overpaid status. Whatever arrives on the address is converted to your settlement currency and credited to your balance, and every deposit is reported to you individually with a receiveAddressPaid webhook.

📘

Enabled per account

Receive addresses are enabled per account. Until they are enabled for yours, every receive address endpoint returns 403:

{
  "type": "feature_disabled",
  "feature": "receive_address",
  "message": "This feature is not enabled for your account."
}

Contact EukaPay to enable them.

Flow

  1. Create a receive address. Call Create Receive Address with the stablecoin, the network, and the amount you want to receive in your settlement currency (price). A successful request returns 201 Created with the receive address.
  2. Show it to the payer. Display address, cryptoAmount and cryptocurrencySymbol on blockchainNetwork.
  3. Receive the deposit. When the deposit is confirmed, a payment is added to the receive address and a receiveAddressPaid webhook is sent to your endpoint.
  4. Reconcile. Get Receive Address returns the receive address with all payments received on it. Each payment also appears in Transactions and in your balance.

Requests are authenticated with your API key and accept an x-idempotent-key header, like every other POST. See Idempotent Requests. A restricted API key needs the receive_addresses permission.

Request

FieldRequiredDescription
cryptocurrencySymbolYesStablecoin the payer sends: USDT or USDC.
blockchainNetworkYesNetwork the payer sends on. Must be a supported combination with cryptocurrencySymbol (below).
priceYesAmount you want to receive, in your account's settlement currency, with at most 2 decimal places. Must be at least your minimum payment amount and at most 100,000.
metadataNoYour own key/value data. Returned on the receive address and in the receiveAddressPaid webhook; not shown to the payer.

There is no currency field: a receive address is always quoted and credited in your settlement currency. Sending any other field returns 400.

Supported cryptocurrencies

Receive addresses accept stablecoins only. Supported combinations (a combination turned off in your payment settings is not available):

cryptocurrencySymbolblockchainNetwork
USDTEthereum
USDTTron
USDCEthereum

Settlement currencies

Receive addresses settle in fiat only, in your account's settlement currency, which must be one of CAD, USD, EUR, GBP or AUD. Every deposit is converted to it.

Quote and Settlement

The response quotes cryptoAmount at cryptoPrice until expiresAt.

  • Up to cryptoAmount is converted at the quoted cryptoPrice.
  • Anything above cryptoAmount is converted at the market price when it is received.
  • Less than cryptoAmount is converted at the quoted cryptoPrice; you are credited for what arrived.
  • Deposits after expiresAt are still accepted and credited, converted at the market price when received. status changes to expired at expiresAt, but the address keeps working.

Each on-chain deposit is a separate payment. If the payer sends twice, the receive address lists two payments and you receive two receiveAddressPaid webhooks.

quotedCryptoAmount in the webhook is always the quoted quantity (the receive address's cryptoAmount); compare it with the received cryptoAmount to decide how to treat an under- or over-payment in your own system. conversions shows how each part of the deposit was actually converted, one entry per rate applied:

Depositconversions
Up to the quote, before expiresAtOne guaranteed entry at the quoted rate.
Above the quote, before expiresAtTwo entries: guaranteed for the quoted quantity, and market with reason: overpaid for the quantity above it.
After expiresAtOne market entry with reason: expired.

Each entry has cryptoAmount, rate, amount (in your settlement currency), rateType and reason. The same conversions are returned on each payment of Get Receive Address. See Webhooks for the field definitions.

EukaPay fees apply to each payment. A payment's total is its value before fees, equal to the sum of its conversions[].amount rounded to the currency's minor unit. settlementNetAmount is the net amount credited to your balance after fees; it is returned in the webhook and on each payment of Get Receive Address, and the payment also appears in Transactions with the receiveAddressCode of the receive address.

Refunds are not available for payments received on a receive address.

Webhook

Subscribe to receiveAddressPaid to be notified of each deposit. It is sent once per payment, whatever the amount; there are no completed / underpaid / overpaid variants. The payload carries receiveAddressCode, paymentCode, cryptocurrencySymbol, blockchainNetwork, cryptoAmount (received), quotedCryptoAmount (quoted), total (settled value in currency), currency, settlementNetAmount (net credited after fees), conversions, txHash, senderAddress, paidAt and your metadata.

Receive addresses do not send paymentCompleted, paymentUnderpaid or paymentOverpaid. See Webhooks for the payload. Deliveries are listed in Webhook Events, and Get A Webhook Event returns the receiveAddressCode and paymentCode of each one.

Errors

Create Receive Address checks the request in this order. Missing, invalid or unknown fields return 400 before any of these.

Statuscode / typeWhen
400unsupported_settlement_currencyYour settlement currency is not CAD, USD, EUR, GBP or AUD.
400unsupported_cryptocurrencyThe cryptocurrency and network are not available for your account (not a supported combination, or turned off in your payment settings).
400—price is below your minimum or above 100,000.
503—A deposit address could not be issued right now. Retry later.

The coded 400 errors have type: api_error, and the message describes the problem:

{
  "statusCode": 400,
  "code": "unsupported_cryptocurrency",
  "message": "The specified cryptocurrency is not supported for receive addresses. Please check the symbol and network.",
  "type": "api_error"
}

On every receive address endpoint:

StatusWhen
403Receive addresses are not enabled for your account (type: feature_disabled, feature: receive_address), crypto payments are disabled for your account (create only), or a restricted API key lacks the receive_addresses permission (code: insufficient_scope).
404No receive address with that code exists on your account.
400A list request sends both starting_after and ending_before, or a cursor that is not one of your receive addresses.

Did this page help you?