Take payments from your customers on pages hosted by the platform. Paid funds are settled to your balance, and every payment is reported to your backend by webhook.
Building blocks
What
Create with
Use it for
Payment link
POST /cash/v1/merchant/payment-links
a reusable page with a fixed price, a price the customer enters, or up to six preset prices; share it in a message, a QR code or a button
Invoice
POST /cash/v1/merchant/invoices
a bill for one customer with a number, a due date and optional line items; it can be paid in parts and emailed by the platform
Checkout session
POST /cash/v1/merchant/checkout/sessions
a single payment for one order of yours, with the amount and the channel chosen by your backend
Payment links and invoices are both payment requests: one object (object is payment_link or invoice) that can be paid more than once. A request holds the price, the rules and the text the customer reads, but no money. When the customer opens its page and chooses a payment method, the platform creates a — an acquiring order, the same kind a checkout session creates, with its own payment window (30 minutes unless you change it in your receiving settings) — and the customer pays that attempt. Each paid attempt adds to the request's and . Nothing is created before a method is chosen, and one customer can have at most 3 unfinished attempts on the same request.
payment attempt
paidAmount
paidCount
Statuses
Payment links:
status
Meaning
active
accepting payments
paused
not accepting payments: paused by you (statusReason: "merchant", resume it with /resume) or by the platform (admin or deregistration; only the platform can resume it)
completed
reached maxUses
expired
reached expiresAt
archived
closed for good, by you or by the platform
Invoices:
status
Meaning
open
nothing paid yet
partially_paid
part of the amount paid (allowPartial: true)
paid
paid in full
paused
paused by the platform; invoices cannot be paused through the API
void
voided by you or by the platform; unpaid attempts are closed (except direct-receiving attempts and attempts already past their expiresAt, see below). A legacy channelCode invoice whose first payment attempt failed is also voided automatically (statusReason: "create_failed"); the call returned an error and you never received it
payable tells you whether a customer can start a payment right now. An overdue invoice (overdue: true) stays payable. Pausing or archiving a link yourself does not cancel the payment attempts customers already started: such a payment can still complete, and it is added to paidAmount. Once an invoice is paid in full or a link reaches maxUses, the request's other attempts that have received nothing and have no transfer detected or registered yet are closed (status: "closed"), so a second customer, or a transfer still queued in a wallet, cannot pay the request again. An attempt whose transfer is already on its way stays open and can still complete; a transfer that arrives on a closed attempt anyway is not lost: it goes to review. Attempts already past their expiresAt are not closed; they expire as usual (expired), and a late payment mined within the lock is still credited (see Crypto payments confirmed after expiry). Attempts paid straight to your own receiving address (direct receiving) are never closed early, on settlement or on void, because the money reaches you anyway: they stay open until they are paid or expire, so a late transfer is still recorded on the attempt it belongs to. Partly paid invoices and links without maxUses close nothing.
Before you start
Availability: while Receiving is not open on the platform, these endpoints answer 503 CASH_CAPABILITY_UNAVAILABLE, and the checkout:write / invoices:write scopes cannot be selected under Developers → API keys (/home/developer/keys).
Scopes: payment links and checkout sessions need checkout:write, invoices need invoices:write. There is no read-only scope: list and detail calls need the same scope.
Live and sandbox: a key only sees requests of its own environment; the others answer 404. Sandbox keys (ck_test_…) work only where the platform has set up the sandbox checkout (otherwise 503 CASH_API_SANDBOX_NOT_CONFIGURED). Sandbox requests never send email or payment_request.* webhooks.
Checkout settings: the currencies (pricing and pay currencies, within what the platform accepts; see Price currency and pay currency) and payment methods enabled under Receive → Receiving settings (/home/receiving) apply to every request; allowedMethods can narrow them further for one request. Sandbox requests and checkout sessions are not limited by these settings; they use the sandbox checkout's own methods. Payment page language settings still apply. The payment window, exchange rate lock, underpaid tolerance and after-payment defaults set there are described under Receiving settings that apply to payments.
Console: Receive → Payment requests (/home/receive) creates and manages the same objects. Requests created there are live requests of the same account, so they appear in your live key's lists, and the other way round.
Read receivable currencies
GET /cash/v1/merchant/acquiring/currencies uses a Bearer API key with either checkout:write or invoices:write, plus the owning account's transactions.view permission. No read-only scope is added; the existing acquiring capability gates still apply.
A live key returns pricing currencies under that merchant's current receiving settings and platform method catalog. requiresKyc identifies currencies that require the key creator to complete personal verification first. They remain in currencies; their presence does not mean an order can already be created. A sandbox key uses only the explicitly configured sandbox catalog, without live merchant restrictions. Its empty requiresKyc means that sandbox skips this qualification policy, not that the member is verified.
The key determines environment; query parameters cannot switch it. preferred is the effective default within the returned list, or "". A valid configuration that filters out every currency returns an empty array. Missing required catalog data or no available channel in this environment returns 503 CASH_MERCHANT_ACQUIRING_CURRENCIES_UNAVAILABLE; missing sandbox configuration retains CASH_API_SANDBOX_NOT_CONFIGURED as described above. This call creates no requests or payments. Amount, region and final payment checks still run when creating an order or paying. Responses are not cached.
Identity verification (KYC)
Receiving needs no identity verification by default: creating keys, payment links and invoices does not require it, and crypto payment methods work without it.
Fiat payment methods (cards and other fiat channels) require the personal identity verification (KYC) of the member who created the API key — in the console, of the member who creates the request. Until it is approved, payment pages offer crypto methods only, and a request that could only be paid with fiat methods, or that settles into a fiat currency, is refused with 403 CASH_PERSONAL_KYC_REQUIRED and error.details.reason: "fiat_receiving".
Receiving limit: the platform may set a cumulative receiving limit per currency for accounts without verification. A request whose amount would go over it is refused with the same 403 and reason: "receiving_limit"; error.details adds currency, limit, received, pending and amount. Every payment is checked again when the customer pays: a payment that would go over the limit is refused, and the page tells the customer it cannot be paid right now.
Email: the platform may cap how many invoice emails an unverified member can send per day (UTC). Over the cap, sending answers 403 with reason: "email_limit".
Sandbox keys are always treated as verified.
Receiving settings that apply to payments
These settings are made under Receive → Receiving settings (/home/receiving) in the console; they cannot be changed through the API.
Payment window (10 to 120 minutes, 30 by default): how long the customer has to pay once the order exists. Every payment attempt of a payment link or invoice gets this window, and so does a checkout session created without expiresInSeconds or with expiresInSeconds: null; an expiresInSeconds you send is used as given, kept within 60 to 86400 seconds. The window is fixed into the order's expiresAt when the order is created, so a change applies to new attempts and sessions only. It does not move a link's expiresAt or an invoice's dueAt, and the first attempt of a legacy channelCode invoice keeps its own expiry, tied to dueAt.
Exchange rate lock (5 to 60 minutes, 15 by default): how long a market-rate quote holds when the customer pays a payment link or invoice with a crypto asset other than its price currency. Such an attempt gets the shorter of this and the payment window; 1:1 conversions and payments in the price currency itself get the payment window. See Price currency and pay currency.
Underpaid tolerance (0 to 5%, 0.5% by default): how far below amount a payment may fall and still complete the order. It is copied onto each order when the order is created, so a change applies to orders created afterwards. Order objects (the session of the checkout session endpoints and each item of attempts in payment link and invoice details) show it as underpaidToleranceBps, in basis points (50 is 0.5%); orders created before the setting existed use 50. Payer-facing pages do not show it.
After payment: a return URL after payment, a return URL for customers who leave without paying (the cancel URL), and a message after payment (see below).
Payment page language (both unset by default): a default language and the languages customers can choose (en, zh-CN, zh-TW, es, ru). A payment page opens in the language in its link (such as the links in invoice emails); otherwise in the language the customer last explicitly chose on this site's payment pages; otherwise in the best match for the languages listed in the customer's browser settings. Every listed language counts, including lower-priority ones: some languages are served as a related one (Ukrainian as Russian, Catalan as Spanish) and many others in English (for example Bengali, Swahili and Tamil), and most Chrome, Edge and Firefox installs list English as a backup. Only when nothing the browser lists matches does the page open in the request's locale or the session's payerLocale (when it is one of these five or a regional form such as es-MX), then in your default language, then in English. When you limit the languages, the language switcher lists only those, and a page whose language is not among them switches to the first of these that customers can choose: the customer's explicitly chosen preference, the languages listed in their browser settings (each by its own language, without related languages), the request's locale or the session's payerLocale, your default language, English, then the first language you allow. Emails sent without a language use the request's locale, then your default language, then English, whatever languages you allow; the link in an email follows the request's locale only. No API request is refused because of these settings. They apply to sandbox requests and sessions too, and payment pages pick up changes within about a minute.
When an order counts as paid:
What has arrived (receivedAmount)
Order status
at least amount less the tolerance, and at most payableAmount plus 1%
paid
less than that
underpaid; another transfer before expiresAt that brings the total up completes it
more than payableAmount plus 1%
overpayment_review
The shortfall is not collected: you receive what actually arrived, while a payment link or invoice adds the attempt's full amount (quote.pricingAmount on a quoted attempt) to paidAmount, so an invoice can become paid with slightly less received in total.
The after-payment defaults are used whenever the link, invoice or checkout session has no value of its own: the return URL in place of returnUrl, the cancel URL in place of cancelUrl, the message in place of successMessage (checkout sessions have no cancel URL or message of their own, so they always use those defaults). They are applied when the page is shown, so a change takes effect at once, also for links and invoices already sent; they are not copied into your objects, whose fields stay null. The message is shown only after payment, with anything that looks like a web address, an email address or a phone number removed. On a payment link or invoice page that can still be paid, and on a checkout page whose order has received nothing yet, the page offers Return to merchant without paying, leading to the cancel URL.
Which payment methods the payer sees
The methods on the payment page, and their order, are worked out when the payer opens the page. Payment links, invoices and checkout sessions follow the same rules.
Scope: the currencies the platform accepts, the currencies and methods enabled in your receiving settings (live only), and the allowedMethods of a payment link or invoice; a checkout session only uses the channel given as channelCode when it was created. In live mode, until your account is verified, only cryptocurrency methods are offered (see Identity verification (KYC)).
Payer: methods are filtered and ordered by the payer's country (for a checkout session the payerCountry you passed, otherwise the country of the payer's IP address), device (phone, tablet or computer) and page language; method names follow the page language too. When platform compliance rules don't allow payments from the payer's region, the page says payments aren't available in their region and shows no methods.
Order: local methods for the payer's country come first, then cryptocurrency, then everything else. The first 4 are shown directly; the rest sit under "More payment methods".
Amount: a method can have a minimum and a maximum per payment. For a fixed-amount payment link, or an invoice that doesn't allow partial payment, an amount outside the range of every available method fails at creation with 400 CASH_PAYMENT_REQUEST_AMOUNT_OUT_OF_RANGE; error.details.limit is the amount to move to (at most this when reason is amount_above_max, at least this when it is amount_below_min). Card and other fiat methods also need the amount to fit the currency's decimal places (none for JPY or KRW, whole units for ISK, two for USD or EUR); when that is the only reason, reason is amount_precision and there is no limit. This check also covers the total of an invoice that allows partial payment and each preset amount of a payment link (field is presetAmounts for a preset), because splitting the payment can't get round decimal places. When the payer types the amount, methods that can't take it are greyed out and show the range they accept; an amount with too many decimal places for the chosen method gets the same 400 with amount_precision when the payer picks it, and nothing is created.
Price currency and pay currency
A payment link or invoice is priced in its currency, the price currency. When the customer picks a crypto method whose asset is a different currency, the platform converts the price into that asset and locks the amount; the customer then pays the asset, the pay currency. A crypto method whose asset is the price currency pays it directly; for fiat methods and account balance the pay currency is always the price currency. In the console's receiving settings these are called pricing currencies and pay currencies.
Platform and your settings: the platform decides which price currencies and pay currencies it accepts, and your receiving settings can only narrow that further; both apply in live mode only. Your settings have two lists: "Allowed pricing currencies" limits the price currency (the request's currency); "Allowed pay currencies" limits only what crypto methods are paid in (paid directly or converted), while fiat methods and account balance follow the pricing currencies only. "All" means everything the platform accepts, including currencies it adds later. For example, to price in USD and take only USDT: include USD in pricing currencies and select only USDT in pay currencies. Accounts that had limited their currencies before the settings were split into these two lists keep that list as their pay currencies (the asset paid must still be on it, as before) until they change it.
When you create a request: if the price currency is not accepted by the platform or not among your allowed pricing currencies, creating a payment link or invoice fails with 400 CASH_CHECKOUT_CURRENCY_NOT_ALLOWED; error.details.source is "platform" (the platform doesn't accept it) or "merchant" (your receiving settings don't include it), and role is "pricing". Checkout sessions and legacy channelCode invoices are paid in their currency directly, so for them role is "both": the currency is checked against the pricing currencies and, on a crypto channel, also against the pay currencies.
After narrowing: when the platform or you narrow the currencies, the next payment follows the new rules. Payment links and invoices already sent, and checkout sessions whose payment hasn't started, don't keep the old rules: the payment page only offers methods that still qualify (possibly none), and starting a payment is checked against the new rules.
Which methods: crypto methods only, on live payment links and invoices, where the platform has turned on quotes for your price currency on the method's channel. Prices in USD or in a crypto asset can be quoted; other fiat currencies, such as EUR, cannot. Sandbox requests are never quoted. Checkout sessions and the first attempt of a legacy channelCode invoice are not quoted either: for a crypto method their currency must be the asset itself. A request with settlementMode: "convert_then_credit" is never quoted.
1:1 or market rate: a price in USD, USDT or USDC paid with USDT or USDC is converted 1:1 (source: "peg"), counting 1 USD as 1 USDT and 1 USDC as 1 USDT. Any other pair, for example USD paid with BTC, is converted at a fresh price from the platform's market data (source: "market"); an old or fallback price is never used. Only 1:1 conversions are offered when the platform has no market data source, or when your acquiring fee is a single set for every currency and has a fixed amount or a minimum fee: those amounts have no currency of their own, and a market-rate payment settles in the asset paid. Acquiring fees set by currency don't have this limit: there, a fixed fee or minimum fee above zero names its currency and is charged only on payments credited in that currency (a 0.3 USD fixed fee is not charged on a payment credited in BTC), so it does not limit quotes to 1:1. Receive → Merchant billing (/home/billing) shows which kind you have under Effective fee schedule: a single set shows one rate, fixed fee and minimum fee under Acquiring; fees set by currency show as a table by the currency credited to your account, the payer's region and the payment method. The platform can also limit quotes to 1:1, or turn them off.
Amount to pay: rounded up, to at most 8 decimal places (fewer when the chain has fewer).
On the payment page: among crypto methods, those paid in the price currency come first, then 1:1 conversions, then market-rate ones. The page marks them "Converted 1:1" and "Converted at the rate when you pay".
Rate lock: a market-rate quote holds for the shorter of your payment window and your exchange rate lock (15 minutes by default); a 1:1 conversion holds for the payment window. The attempt expires when the lock ends. The checkout page shows the conversion and how long the rate stays locked, and tells the customer not to pay after that. A transfer mined within the lock but confirmed after it is still credited at the locked amount; one mined after the lock (plus the network's grace period) goes to manual review, see Crypto payments confirmed after expiry. Chains that take long to confirm, such as Bitcoin, are hit most; when crypto methods quoted at a market rate are available to your account, the console warns if the shorter of the window and the lock is under 20 minutes. After the lock, the page offers a new quote at the current rate (a new attempt), unless a payment has already been detected.
When the customer picks the method: with no fresh rate, the page gets 503 CASH_PAYMENT_REQUEST_QUOTE_UNAVAILABLE and nothing is created; the customer can try again or pick another method. The method's limits are then also checked in the asset: an amount to pay outside them gets 400 CASH_PAYMENT_REQUEST_AMOUNT_OUT_OF_RANGE with error.details.currency set to the asset, and the page asks the customer to choose another method or change the amount. When you create a request, limits are compared in the price currency only.
Identity verification: crypto methods need no KYC, so an account without verification can price in USD once crypto methods are quoted for USD. The receiving limit for unverified accounts is checked per asset when the customer pays, with the asset and the amount to pay.
On a quoted attempt, the order's currency, amount, payableAmount and receivedAmount are in the asset the customer pays, and the underpaid tolerance applies to that amount. What the attempt is worth in the price currency is in quote, and the request's paidAmount adds quote.pricingAmount (in full once the attempt counts as paid). Reconcile request-priced payments against quote.pricingAmount. With credit_original you are credited in the asset paid, so its value in your price currency can change after payment.
Every order object (the session of the checkout session endpoints and each item of attempts) and every acquiring.order.* webhook carries quote. It is null when the order was not quoted, which is always the case for sessions you create with POST /cash/v1/merchant/checkout/sessions (fetching a payment link or invoice attempt by its orderId can return a quote). A 100 USD link paid with BTC:
the request's currency, and what this attempt is worth in it
payCurrency, payNetwork, payAmount
the asset, its network and the amount to pay; the same as the order's currency and amount
rate
how much of pricingCurrency one unit of payCurrency is worth (1 for 1:1), rounded; for display only
source
peg (1:1) or market (market rate)
rateSource
the market data host, for example api.mexc.com; null for peg
legs
the market prices used: one { symbol, usdtPrice, fetchedAt, expiresAt } for each currency other than USD, USDT and USDC; [] for peg
assumptions
USD=USDT and USDC=USDT when the quote relied on them
quotedAt
when the quote was made
lockedUntil
when the lock ends: the attempt's expiresAt
pricingAmount and payAmount use 18 decimal places, like amount; compare them by value.
Crypto payments confirmed after expiry
An order's expiresAt is its lock time: for a quoted attempt, the shorter of the payment window and the exchange rate lock; for every other order, the payment window. A crypto transfer the customer sends within the lock often confirms only after the lock has ended (Bitcoin especially). As long as it was mined within the lock, it is credited at the order's locked amount even though it confirmed late: there is no new quote, and expiresAt does not change. This applies to all crypto receiving, quoted or not. Card and other fiat payments follow their own rule, see the last item below.
How it is decided: by the time of the block that contains the transaction, read from the chain only, never from the customer or from you. It counts if the block time is no later than expiresAt plus the network's grace period; if the block time can't be read, it doesn't count. A transfer mined more than 2 hours before the order was created can't be credited to an expired order this way.
Grace period: 1 minute by default on EVM chains and TRON, 30 minutes on Bitcoin and other UTXO chains; the platform can change it per network (0 to 180 minutes). A grace period of N minutes means a transfer mined up to N minutes after the lock ends also counts, including one sent after the lock ended; you bear the rate change for those minutes. Bitcoin block times are set by miners and can be off from real time by about 1–2 hours.
What happens to the order: it goes from expired to paid (or overpayment_review when more than 1% over), acquiring.order.paid is sent and the order settles as usual, and a payment made through a payment link or invoice is added to paidAmount as usual. If it is short, what arrived is still recorded in receivedAmount, but the order stays expired, no acquiring.order.paid is sent, and the rest can't be paid at the locked price: refunds on platform-custody orders are handled manually by the platform; on direct orders the money is already at your address, so settle it with the customer. So expired is not always final for a crypto order; rely on acquiring.order.paid.
Platform-custody orders (custodyMode: "platform"): the platform checks automatically for orders that expired within the last 24 hours (the platform can set 1 to 168 hours), and retries later when a node can't find the transaction yet. Transfers mined after the lock (plus grace), ones it can't get a result for within that window, and ones on networks it can't check on-chain go to manual review.
Direct orders (custodyMode: "merchant_direct"): the money goes straight to your address, and the platform does not match it to an expired order on its own. Confirm it with POST /cash/v1/merchant/checkout/sessions/{orderId}/confirm-direct and the txHash (or from the direct orders list in the console): expired orders can be confirmed too, with no time limit, but only for a transfer that passes on-chain verification and was mined within the lock plus grace. On networks that can't be verified on-chain, expired orders can't be confirmed (orders that haven't expired work as before and are recorded as merchant-confirmed). An order that had not expired when you sent the request but expired during on-chain verification is judged by block time as well. When confirmation fails:
409 CASH_ACQUIRING_LATE_PAYMENT_REJECTED with error.details.reason set to mined_after_lock (mined after the lock plus grace; error.details also has blockTime, expiresAt and graceMinutes), block_time_unavailable (the block time can't be read right now, or the network can't be verified on-chain; you can retry later) or late_credit_disabled (the platform has paused confirming expired orders);
503 CASH_LATE_CREDIT_CONFIG_UNAVAILABLE: the platform's late-payment rules can't be read right now; retry shortly;
for an expired order, a transfer mined more than 2 hours before the order was created returns 409 CASH_ACQUIRING_TX_MISMATCH with error.details.reason set to mined_before_order.
Networks that can be checked on-chain: EVM networks (Ethereum, BNB Chain, Polygon, Arbitrum, Optimism, Base, Avalanche and others), TRON and Bitcoin. On other networks, platform-custody orders go to manual review and confirming an expired direct order returns block_time_unavailable.
Payment links and invoices: on a request that is already paid, used up, voided or expired, a late payment mined within the lock is still credited and added to paidAmount, so paidAmount can exceed amount; find such extra payments by confirmedAfterExpiry and refund the customer yourself.
Card and other fiat methods: the customer pays on the payment provider's page, which stays open for at least 31 minutes after the customer chooses the method, so it can still be open after expiresAt. The amount and currency are fixed on that page. A payment the customer completes there while it is open is credited even if it reaches the platform after the order expired, with the same outcomes as above and inLockEvidence.kind set to psp_session. The exception is an attempt on a payment link or invoice that another attempt has already paid in full or used up, that is no longer collecting, or that this payment would overpay: it goes to manual review. Other fiat payments that arrive after the order expired go to manual review.
Order objects (the session of the checkout session endpoints and each item of attempts) and every acquiring.order.* webhook carry two fields:
Field
Meaning
confirmedAfterExpiry
true if a payment was credited after the order expired because it was mined within the lock, or because it was completed on the payment provider's page while that page was open (fiat); otherwise false. It is historical: it stays true (and inLockEvidence stays set) even if a chain reorganisation later removes that payment, so use status and receivedAmount for what the order holds now
inLockEvidence
What the latest such payment was credited on, { kind, at, withinGrace }, or null. kind is block_time (by block time), first_seen (the platform saw the transfer within the lock) or psp_session (a fiat payment completed on the payment provider's page while it was open); at is that time (ISO 8601; for psp_session, when the provider recorded the payment); withinGrace is true when it was mined after the lock ended, within the grace period (for psp_session, when it was paid after expiresAt)
Response shapes
Not every endpoint here uses the data wrapper described in Errors & conventions. Successful responses look like this:
Endpoint
Success body
POST /merchant/payment-links
201 with { ok, paymentRequest }
GET /merchant/payment-links, GET /merchant/invoices
{ ok, paymentRequests, nextCursor }
GET /merchant/payment-links/{id}, GET /merchant/invoices/{id}
{ ok, paymentRequest, attempts }
POST /merchant/payment-links/{id}/pause (also resume, archive), POST /merchant/invoices/{id}/void
{ ok, paymentRequest }
POST /merchant/invoices
201 with { ok, invoice, paymentRequest, invoiceUrl }, plus the legacy fields when channelCode is sent
POST /merchant/invoices/{id}/send
{ ok, status, send }
POST /merchant/checkout/sessions
201 with { ok, session, sessionToken, checkoutPath, checkoutUrl }
GET /merchant/checkout/sessions/{orderId}
{ ok, data: { session }, requestId }
Errors use the usual { ok: false, error: { code, message, details }, requestId } envelope, except the idempotency conflicts, which are flat: { ok: false, code, message }.
Time: every timestamp of payment requests, payment attempts and checkout sessions (createdAt, dueAt, expiresAt, paidAt, …) is an ISO 8601 string, not epoch milliseconds.
Money: amounts are decimal strings. Payment requests return them without trailing zeros ("25", "12.5"); attempts and webhooks may carry trailing zeros (webhooks always use 18 decimal places), so compare amounts by value, not as text.
Checkout sessions
POST /cash/v1/merchant/checkout/sessions (scope checkout:write, Idempotency-Key required) creates one acquiring order from { channelCode, amount, currency } and the optional paymentMethod, returnUrl, callbackUrl, payerCountry, payerLocale, settlementMode, settlementCurrency, expiresInSeconds (60 to 86400; without it, or with null, the session gets your payment window) and metadata. Without returnUrl, the page uses the after-payment defaults of your receiving settings (see Receiving settings that apply to payments). payerLocale (en, zh-CN, zh-TW, es, ru, or a regional form such as es-MX) can set the page language; the customer's earlier language and their browser settings come first (most Chrome, Edge and Firefox installs list English as a backup), see Payment page language under Receiving settings that apply to payments. Send the customer to checkoutUrl, then follow the order by webhook or with GET /cash/v1/merchant/checkout/sessions/{orderId}. For orders paid straight to your own address (custodyMode: "merchant_direct"), report the transaction with POST /cash/v1/merchant/checkout/sessions/{orderId}/confirm-direct and { "txHash": "…" }; expired orders accept transactions mined within the lock too, see Crypto payments confirmed after expiry.
Direct receiving and amount tails
With Direct receiving (non-custodial) turned on under Receive → Receiving settings (/home/receiving), crypto payments go straight to an address of your own instead of a platform address, and their orders carry custodyMode: "merchant_direct" (orders paid to platform addresses carry custodyMode: "platform"). The setting is managed in the console only. Every asset you receive directly has an address mode:
addressMode
The customer sends
Notes
fixed
amount, to your address
the default, and how direct receiving has always worked: every order of the asset pays to the same address
fixed_tail
payableAmount — amount plus a small amount tail — to the same address
the tail lets the platform tell payments to the same address apart; available only for assets the platform has enabled amount tails for
Who sets what: the platform enables amount tails per asset and network (for example USDT@tron) and sets the step, the number of slots, the largest tail as a share of the amount and a cooldown; nothing is enabled by default. You choose fixed_tail per asset in the console but cannot change these numbers. Changing the mode is saved like a change of address, with two-factor authentication and the security cooldown.
The tail is only ever added, and amount itself never changes. The amount is first rounded up to the step, then at least one step is added, so a tailed order never asks for the bare amount: with step 0.01, orders of 100 ask for 100.01, 100.02, …, and an order of 100.005 asks for at least 100.02 (tail 0.015). The tail never exceeds the share set by the platform, and amounts are never cut to fit a chain's decimals.
Fallback: when a tail cannot be used for an order, the order is paid to the plain fixed address and addressModeFallbackReason says why: tail_not_configured (no amount tail is set up for the asset, or it was removed), tail_disabled (the platform turned it off), chain_currency_unknown (the platform's list of chain currencies has no entry for the asset, so its decimals are unknown), tail_precision_exceeded (the step has more decimals than the chain supports) or amount_below_tail_minimum (even one step would exceed the allowed share).
No free slot: a slot stays taken while its order is open (so a longer payment window keeps slots taken longer) and, if the order expires or is closed instead of being paid, until the cooldown has passed since the end of its payment window. A slot is also not handed out while it equals the plain amount of another tailed order on the address that is open or still within that cooldown, so a customer who leaves out that order's tail cannot pay a new order by mistake. Slots of orders that were paid within the cooldown, or whose payment was reversed by a chain reorganisation, are handed out again only when no other slot is free, the one paid longest ago first. When every slot on your address is taken, starting the payment answers 429 CASH_ACQUIRING_DIRECT_AMOUNT_BUSY with Retry-After: 60 and closes only this order (status: "closed"). Retry-After is a hint, not a promise: a slot frees up only when the order holding it is paid, or when that order's payment window and the cooldown have passed. Create a new checkout session with a new Idempotency-Key later. On payment link and invoice pages the customer's attempt answers 429 CASH_PAYMENT_REQUEST_BUSY instead; only that attempt is closed, and the page asks the customer to try again later.
The checkout page shows and copies payableAmount and asks the customer to send exactly that amount, tail included. If you show payment instructions yourself, show payableAmount, not amount.
Every order — the session of the checkout session endpoints and each item of attempts in payment link and invoice details — carries these fields:
Field
Meaning
amount
the order amount; payment request totals (paidAmount, remaining) are based on it, except on a quoted attempt, where they use quote.pricingAmount; the receiving-limit check of a new payment is also based on it (what has already arrived counts as received, tail included). Fees are not: on platform orders they are charged on what is actually credited to you, that is receivedAmount, or the amount after conversion when the order converts before crediting (settlementMode: "convert_then_credit"). Direct-receiving orders are paid to your own address, and the platform charges no fee on them
payableAmount
what the customer must send: amount plus the tail on a tailed order, otherwise the same as amount
receivedAmount
what has arrived; on a tailed order it is normally higher than amount by the tail, so reconcile it against payableAmount
addressMode
fixed or fixed_tail on direct-receiving orders (fixed_tail only when a tail was set, or on an order closed with CASH_ACQUIRING_DIRECT_AMOUNT_BUSY, whose amountTail is null), null on platform orders
amountTail
{ step, k, tail, configVersion } when a tail was set, otherwise null; tail is payableAmount − amount, rounding included, and k is the slot, from 1
addressModeFallbackReason
why an order of a fixed_tail asset got no tail, otherwise null
Platform orders never get a tail: their payableAmount always equals amount.
Matching payments to orders
A transfer detected on your direct address is matched to an open order of the same asset, network and address:
the order whose payableAmount equals the transferred amount exactly (the earliest, if there are several and none of them has a tail); but the transfer is not assigned to any order when the amount is also the plain amount of another open order with a tail (whose customer may have left the tail out), when several orders match exactly and one of them has a tail, or when the matching order has no tail and the amount is the payableAmount of a tailed order on the address that expired or was closed and is still within its cooldown, or that was paid or had its payment reversed within the cooldown (most likely that order's customer paying late or twice);
orders with a tail are matched only this way, with no tolerance for under- or overpayment, and not even then when the amount is the plain amount of another tailed order, or the payableAmount of an order without a tail, on the address that expired or was closed and is still within its cooldown, or that was paid or had its payment reversed within the cooldown (most likely that order's customer leaving out the tail, paying late or paying twice);
otherwise, if there is only one open order for the asset on the address and it has no tail, the transfer goes to that order, and the usual underpayment and top-up handling applies, unless the amount is the payableAmount or the plain amount of a tailed order on the address that expired or was closed and is still within its cooldown, or that was paid or had its payment reversed within the cooldown (most likely that order's customer paying late or twice);
otherwise the transfer is not assigned to any order.
A transfer that was already matched to an order while it had too few confirmations stays with that order once confirmed, as long as the order is still open. If that order is no longer open by then (paid, expired or closed), the transfer is matched again by the rules above, and you can confirm it on the right order with its txHash. Expired orders are left out of automatic matching: confirm a payment mined within the lock on that order with its txHash (see Crypto payments confirmed after expiry).
Rules 3 and 4 apply to every direct-receiving order, with or without tails: a transfer that matches no order exactly while several orders are open is no longer given to the earliest one. Confirm such a payment yourself with POST /cash/v1/merchant/checkout/sessions/{orderId}/confirm-direct and its txHash — the same as for a customer who sent amount without the tail. A tailed order confirmed this way counts as paid once what arrived reaches amount less the order's underpaid tolerance (underpaidToleranceBps), so a payment of the plain amount completes it, with receivedAmount below payableAmount; overpayment is still measured against payableAmount.
Refunds and disputes
Card and other fiat payments can be refunded to the payer, and the payer's card issuer can dispute them (a chargeback). The platform handles both with the payment provider. What they take from your balance is shown on the order and reported by the acquiring.order.refund_updated and acquiring.order.dispute_updated webhooks (see Common → Webhooks). A refund or dispute does not change the order's status, amount or receivedAmount. This section describes the platform's current practice, which may change; notices from the platform take precedence.
Refunds are issued by the platform: the API has no refund endpoint. To refund a payment, contact support with the order number and the amount. The platform issues the refund when you ask for it, and can also issue one that the payer asks for or that it decides on itself.
What can be refunded: live card and other fiat payments that have been settled to your balance in the currency paid (settlementMode: "credit_original"), in one or more partial refunds up to what is left of the payment after earlier refunds and disputes. The platform submits refunds one at a time; an earlier refund that is still pending does not stop the next one. Crypto payments, sandbox orders and orders converted before crediting can't be refunded this way. A payment can't be refunded while a dispute on it is open or after the dispute was lost, nor while part of an earlier refund or dispute on the order is still to be debited from your balance; while the card issuer is only making an inquiry, the payment provider may allow a refund of everything that is left, and nothing less.
Platform refunds are paid from your balance: the platform issues a refund only when your available balance covers it, and debits the full amount when it submits the refund. If the payment provider rejects the refund or it is never created, the amount is returned to your balance. If your balance is too low, top it up first.
Refunds made at the payment provider (initiatedBy: "external"), for example by its fraud checks, are debited once the provider reports them.
Disputes: while a chargeback is in progress (open) the disputed amount is debited from your balance; if the dispute is won it is returned, if it is lost it stays debited. Inquiries (inquiry) and disputes closed without a chargeback (closed) debit nothing. When a response is due, send your evidence with the order number to support before respondBy; the platform submits it to the payment provider.
Your balance never goes below zero: a refund or dispute takes at most what is available in your balance at that moment (your balance less amounts on hold, such as withdrawals in progress). When that is less than needed, only that much is debited and debitedAmount shows it; a recorded shortfall is not automatically debited later, including when another refund or dispute changes. Only an explicit operator recalculation can collect it from the balance then available; if this raises debitedAmount, a new webhook is sent. On one order, the total debited for refunds and disputes never exceeds what was credited to you for it; anything beyond that is borne by the platform.
Fees: the acquiring fee charged on the payment is not returned when the payment is refunded or charged back. The payment provider's own fees for refunds and disputes, including dispute fees, are borne by the platform and not charged to you.
In the console: the Monthly statement under Receive → Merchant billing (/home/billing) lists Refunds to payers (net) and Chargebacks (net) and takes both off Net settled. Both are net of what came back in the same month (a failed refund, a won dispute), so a negative figure means an earlier debit was returned that month. In Wallet activity, refund debits and returns are listed as Refund, and dispute debits and returns as Dispute.
Every order (the session of the checkout session endpoints and each item of attempts) carries these four fields, also when it has no refunds or disputes ("0", "0", [], []). They cover only refunds and disputes of the payment credited for the order; the lists are oldest first. Payer-facing pages don't show them.
Field
Meaning
refundedAmount
total amount of the order's succeeded refunds
pendingRefundAmount
total amount of its pending and requires_action refunds, including a refund the platform is still submitting
refunds
the order's refunds, fields below
disputes
the order's disputes (chargebacks), fields below
A refund:
Field
Meaning
id
the refund's id on the platform; for a refund made directly at the payment provider, the same as providerRefundId
providerRefundId
the payment provider's refund id; null while the platform is still submitting the refund, and for a refund that never reached the payment provider (failureReason: "not_submitted")
initiatedBy
platform (issued by the platform) or external (made directly at the payment provider)
status
see the table below
amount, currency
the refund amount and its currency
reason
requested_by_customer for refunds the platform issues; otherwise the payment provider's reason code, or null
failureReason
why a failed refund failed, otherwise null
debitedAmount
what is debited from your balance for this refund right now, in the currency the order was credited to you in
reference
the refund's reference at the payer's card network or bank when the payment provider gives one (for card refunds, the ARN), otherwise null; the payer's bank can trace the refund with it
createdAt, updatedAt
when the platform first recorded the refund, and when it last changed
Refund status
Meaning
Debited from your balance
pending
being processed; on the order this includes a refund the platform is still submitting
the refund amount
requires_action
the payment provider needs the payer to do something, such as give bank details, before the money can be returned
the refund amount
succeeded
the money was returned to the payer; it can still change to failed later
the refund amount
failed
the refund did not go through; failureReason is the payment provider's reason, canceled, or not_submitted (it never reached the payment provider)
nothing; what was debited is returned
A dispute:
Field
Meaning
id
the payment provider's dispute id
status
see the table below
amount, currency
the disputed amount and its currency
reason
the card issuer's reason as the payment provider's code, for example fraudulent, or null
evidenceDueBy
the payment provider's deadline for evidence, or null
respondBy
when to send your evidence with the order number to support: evidenceDueBy less 48 hours, which the platform needs to submit it. Set only while a response is still owed (the dispute is waiting for evidence and the card issuer accepts evidence), otherwise null
debitedAmount
what is debited from your balance for this dispute right now, in the currency the order was credited to you in
debitedCurrency
currency of debitedAmount in this order read projection, or null if it is unavailable; it is separate from the original dispute currency
createdAt, updatedAt
when the platform first recorded the dispute, and when it last changed
amount and currency describe the original dispute; debitedAmount and debitedCurrency describe the actual balance debit. Read them separately, including after a partial debit or when the credit currency differs. An older response may omit debitedCurrency: treat the debit currency as unknown, never infer it from the original dispute currency. This additive field is returned by the merchant order read projection (session and payment-request attempts); refund/dispute webhook payloads and their signatures are unchanged.
Dispute status
Meaning
Debited from your balance
inquiry
the card issuer is asking about the payment before deciding whether to charge it back
nothing
open
a chargeback is in progress
the disputed amount
won
decided in your favour
nothing; what was debited is returned
lost
decided against you
the disputed amount
closed
closed without a chargeback
nothing
In API responses these amounts have no trailing zeros; in webhooks they use 18 decimal places. A webhook shows the refund or dispute at the moment it was sent, so read the order for the latest state.
Reference
Payment links: create a link, amount modes, the payment request object.