Find an order by your order number
const url = 'https://pay.example.com/v1/orders?merchant_order_no=example';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://pay.example.com/v1/orders?merchant_order_no=example' \ --header 'Authorization: Bearer <token>'The key’s mode’s order with this merchant_order_no (exact match). Requires orders:read.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Responses
Section titled “Responses”The order
An order. GET /v1/orders… and POST /v1/orders add checkout_url; order events (data of order.*) add
payments and customer_email instead, and order.refunded the refund.
object
false for a test order (created with a test key).
Unique per mode.
On-chain order id (bytes32).
pending (awaiting payment) → paid_unconfirmed (a payment seen, not yet at its confirmations) →
paid (order.paid). expired: unpaid at expires_at (order.expired; a late payment still books it).
duplicate_paid: a second confirmed payment (order.duplicate_paid; a refund is opened for it).
reverted: a confirmed payment left the chain (order.payment_reverted). partially_refunded /
refunded: the booked payment partly, or every payment fully, refunded (order.refunded).
Decimal amount as a string (no floats).
The per-token prices given at creation, by listed symbol.
Accepted symbols as given (uppercase); null: the default.
The rule the splits were taken from; null for splits given with the order.
The payment the order is booked on (the first confirmed one, which a later duplicate never displaces); null until one is seen.
object
The chain a record is on: its id (chain_id as well, unchanged), CAIP-2 identifier and family.
object
eip155:<id>, tron:0x2b6653dc, solana:<genesis hash prefix>.
Chain family: decides the address and transaction id forms, and the wallets that can pay.
The listed token (see the console’s tokens).
The token’s symbol as listed (e.g. USDC); null if the token was removed since.
The token’s decimals: amount / 10^decimals is the amount in tokens.
Token base units.
An account address in its chain family’s own form: EVM 0x + 40 hex digits (orders, subscriptions and
tickets give it in lowercase hex; the risk list EIP-55 checksummed), TRON Base58Check (T…, 34
characters), Solana Base58 (32 bytes, 32-44 characters). Requests accept any of the three.
An account address in its chain family’s own form: EVM 0x + 40 hex digits (orders, subscriptions and
tickets give it in lowercase hex; the risk list EIP-55 checksummed), TRON Base58Check (T…, 34
characters), Solana Base58 (32 bytes, 32-44 characters). Requests accept any of the three.
An account address in its chain family’s own form: EVM 0x + 40 hex digits (orders, subscriptions and
tickets give it in lowercase hex; the risk list EIP-55 checksummed), TRON Base58Check (T…, 34
characters), Solana Base58 (32 bytes, 32-44 characters). Requests accept any of the three.
A transaction id in its chain family’s own form: EVM 0x + 64 hex digits (lowercase), TRON 64 hex digits
without 0x, Solana a Base58 signature (64 bytes, 87-88 characters).
A transaction id in its chain family’s own form: EVM 0x + 64 hex digits (lowercase), TRON 64 hex digits
without 0x, Solana a Base58 signature (64 bytes, 87-88 characters).
A transaction id in its chain family’s own form: EVM 0x + 64 hex digits (lowercase), TRON 64 hex digits
without 0x, Solana a Base58 signature (64 bytes, 87-88 characters).
When the payment was first seen.
When it reached its confirmations.
object
The member’s place in the rule or splits. On chain the main payee (first ratio member, who takes the rounding remainder) is paid first.
Fixed members: the amount in fixed_currency.
Currency of fixed_amount (fixed members).
An account address in its chain family’s own form: EVM 0x + 40 hex digits (orders, subscriptions and
tickets give it in lowercase hex; the risk list EIP-55 checksummed), TRON Base58Check (T…, 34
characters), Solana Base58 (32 bytes, 32-44 characters). Requests accept any of the three.
An account address in its chain family’s own form: EVM 0x + 40 hex digits (orders, subscriptions and
tickets give it in lowercase hex; the risk list EIP-55 checksummed), TRON Base58Check (T…, 34
characters), Solana Base58 (32 bytes, 32-44 characters). Requests accept any of the three.
An account address in its chain family’s own form: EVM 0x + 40 hex digits (orders, subscriptions and
tickets give it in lowercase hex; the risk list EIP-55 checksummed), TRON Base58Check (T…, 34
characters), Solana Base58 (32 bytes, 32-44 characters). Requests accept any of the three.
Token base units the member received, once paid.
Set when a payer was listed at booking. frozen: a payment came from a blocked address; it is frozen and does not count toward the order (see order.payment_frozen). review: a review-level entry or over the payer’s daily limit; hold fulfilment for review. hit_after_paid: orders booked before frozen payments existed (they stay paid).
As given at creation (null when none).
API answers only: the hosted checkout for the payer (<public_url>/pay/{id}).
Order events only: every payment seen (removed ones left out), the booked one first.
object
The chain a record is on: its id (chain_id as well, unchanged), CAIP-2 identifier and family.
object
eip155:<id>, tron:0x2b6653dc, solana:<genesis hash prefix>.
Chain family: decides the address and transaction id forms, and the wallets that can pay.
A transaction id in its chain family’s own form: EVM 0x + 64 hex digits (lowercase), TRON 64 hex digits
without 0x, Solana a Base58 signature (64 bytes, 87-88 characters).
A transaction id in its chain family’s own form: EVM 0x + 64 hex digits (lowercase), TRON 64 hex digits
without 0x, Solana a Base58 signature (64 bytes, 87-88 characters).
A transaction id in its chain family’s own form: EVM 0x + 64 hex digits (lowercase), TRON 64 hex digits
without 0x, Solana a Base58 signature (64 bytes, 87-88 characters).
An account address in its chain family’s own form: EVM 0x + 40 hex digits (orders, subscriptions and
tickets give it in lowercase hex; the risk list EIP-55 checksummed), TRON Base58Check (T…, 34
characters), Solana Base58 (32 bytes, 32-44 characters). Requests accept any of the three.
An account address in its chain family’s own form: EVM 0x + 40 hex digits (orders, subscriptions and
tickets give it in lowercase hex; the risk list EIP-55 checksummed), TRON Base58Check (T…, 34
characters), Solana Base58 (32 bytes, 32-44 characters). Requests accept any of the three.
An account address in its chain family’s own form: EVM 0x + 40 hex digits (orders, subscriptions and
tickets give it in lowercase hex; the risk list EIP-55 checksummed), TRON Base58Check (T…, 34
characters), Solana Base58 (32 bytes, 32-44 characters). Requests accept any of the three.
Token amount in base units (integer string; 1 USDC = “1000000”).
The payer had a block verdict at booking: the payment does not count toward the order and cannot be refunded.
Order events only: the receipt address, when one was given.
order.payment_frozen only: the payment just frozen.
object
The chain a record is on: its id (chain_id as well, unchanged), CAIP-2 identifier and family.
object
eip155:<id>, tron:0x2b6653dc, solana:<genesis hash prefix>.
Chain family: decides the address and transaction id forms, and the wallets that can pay.
A transaction id in its chain family’s own form: EVM 0x + 64 hex digits (lowercase), TRON 64 hex digits
without 0x, Solana a Base58 signature (64 bytes, 87-88 characters).
A transaction id in its chain family’s own form: EVM 0x + 64 hex digits (lowercase), TRON 64 hex digits
without 0x, Solana a Base58 signature (64 bytes, 87-88 characters).
A transaction id in its chain family’s own form: EVM 0x + 64 hex digits (lowercase), TRON 64 hex digits
without 0x, Solana a Base58 signature (64 bytes, 87-88 characters).
An account address in its chain family’s own form: EVM 0x + 40 hex digits (orders, subscriptions and
tickets give it in lowercase hex; the risk list EIP-55 checksummed), TRON Base58Check (T…, 34
characters), Solana Base58 (32 bytes, 32-44 characters). Requests accept any of the three.
An account address in its chain family’s own form: EVM 0x + 40 hex digits (orders, subscriptions and
tickets give it in lowercase hex; the risk list EIP-55 checksummed), TRON Base58Check (T…, 34
characters), Solana Base58 (32 bytes, 32-44 characters). Requests accept any of the three.
An account address in its chain family’s own form: EVM 0x + 40 hex digits (orders, subscriptions and
tickets give it in lowercase hex; the risk list EIP-55 checksummed), TRON Base58Check (T…, 34
characters), Solana Base58 (32 bytes, 32-44 characters). Requests accept any of the three.
An account address in its chain family’s own form: EVM 0x + 40 hex digits (orders, subscriptions and
tickets give it in lowercase hex; the risk list EIP-55 checksummed), TRON Base58Check (T…, 34
characters), Solana Base58 (32 bytes, 32-44 characters). Requests accept any of the three.
An account address in its chain family’s own form: EVM 0x + 40 hex digits (orders, subscriptions and
tickets give it in lowercase hex; the risk list EIP-55 checksummed), TRON Base58Check (T…, 34
characters), Solana Base58 (32 bytes, 32-44 characters). Requests accept any of the three.
An account address in its chain family’s own form: EVM 0x + 40 hex digits (orders, subscriptions and
tickets give it in lowercase hex; the risk list EIP-55 checksummed), TRON Base58Check (T…, 34
characters), Solana Base58 (32 bytes, 32-44 characters). Requests accept any of the three.
Token amount in base units (integer string; 1 USDC = “1000000”).
order.refunded only: the refund just booked.
object
The chain a record is on: its id (chain_id as well, unchanged), CAIP-2 identifier and family.
object
eip155:<id>, tron:0x2b6653dc, solana:<genesis hash prefix>.
Chain family: decides the address and transaction id forms, and the wallets that can pay.
An account address in its chain family’s own form: EVM 0x + 40 hex digits (orders, subscriptions and
tickets give it in lowercase hex; the risk list EIP-55 checksummed), TRON Base58Check (T…, 34
characters), Solana Base58 (32 bytes, 32-44 characters). Requests accept any of the three.
An account address in its chain family’s own form: EVM 0x + 40 hex digits (orders, subscriptions and
tickets give it in lowercase hex; the risk list EIP-55 checksummed), TRON Base58Check (T…, 34
characters), Solana Base58 (32 bytes, 32-44 characters). Requests accept any of the three.
An account address in its chain family’s own form: EVM 0x + 40 hex digits (orders, subscriptions and
tickets give it in lowercase hex; the risk list EIP-55 checksummed), TRON Base58Check (T…, 34
characters), Solana Base58 (32 bytes, 32-44 characters). Requests accept any of the three.
Token amount in base units (integer string; 1 USDC = “1000000”).
An account address in its chain family’s own form: EVM 0x + 40 hex digits (orders, subscriptions and
tickets give it in lowercase hex; the risk list EIP-55 checksummed), TRON Base58Check (T…, 34
characters), Solana Base58 (32 bytes, 32-44 characters). Requests accept any of the three.
An account address in its chain family’s own form: EVM 0x + 40 hex digits (orders, subscriptions and
tickets give it in lowercase hex; the risk list EIP-55 checksummed), TRON Base58Check (T…, 34
characters), Solana Base58 (32 bytes, 32-44 characters). Requests accept any of the three.
An account address in its chain family’s own form: EVM 0x + 40 hex digits (orders, subscriptions and
tickets give it in lowercase hex; the risk list EIP-55 checksummed), TRON Base58Check (T…, 34
characters), Solana Base58 (32 bytes, 32-44 characters). Requests accept any of the three.
An account address in its chain family’s own form: EVM 0x + 40 hex digits (orders, subscriptions and
tickets give it in lowercase hex; the risk list EIP-55 checksummed), TRON Base58Check (T…, 34
characters), Solana Base58 (32 bytes, 32-44 characters). Requests accept any of the three.
An account address in its chain family’s own form: EVM 0x + 40 hex digits (orders, subscriptions and
tickets give it in lowercase hex; the risk list EIP-55 checksummed), TRON Base58Check (T…, 34
characters), Solana Base58 (32 bytes, 32-44 characters). Requests accept any of the three.
An account address in its chain family’s own form: EVM 0x + 40 hex digits (orders, subscriptions and
tickets give it in lowercase hex; the risk list EIP-55 checksummed), TRON Base58Check (T…, 34
characters), Solana Base58 (32 bytes, 32-44 characters). Requests accept any of the three.
A transaction id in its chain family’s own form: EVM 0x + 64 hex digits (lowercase), TRON 64 hex digits
without 0x, Solana a Base58 signature (64 bytes, 87-88 characters).
A transaction id in its chain family’s own form: EVM 0x + 64 hex digits (lowercase), TRON 64 hex digits
without 0x, Solana a Base58 signature (64 bytes, 87-88 characters).
A transaction id in its chain family’s own form: EVM 0x + 64 hex digits (lowercase), TRON 64 hex digits
without 0x, Solana a Base58 signature (64 bytes, 87-88 characters).
wallet: sent from the console’s wallet connection; offline: a transaction id entered.
transfer (a token or coin transfer), trace (found in the call trace, e.g. sent by a Safe) or manual (confirmed by an operator).
Example
{ "status": "pending", "payment": { "chain": { "caip2": "eip155:8453", "family": "evm" } }, "splits": [ { "kind": "ratio" } ], "risk_flag": "frozen", "locale": "zh-CN", "payments": [ { "chain": { "caip2": "eip155:8453", "family": "evm" }, "status": "unconfirmed" } ], "frozen_payment": { "chain": { "caip2": "eip155:8453", "family": "evm" } }, "refund": { "chain": { "caip2": "eip155:8453", "family": "evm" }, "method": "wallet", "verification": "transfer" }}invalid_request: a malformed path parameter (params.field) or query string, or an invalid filter value (params.field).
object
object
English, for logs; may change.
Values for a localized message, e.g. {"field": "expires_in", "min": 60, "max": 604800}. Absent when the error has none.
object
object
Example
{ "error": { "code": "invalid_request" }}unauthorized: no Authorization: Bearer header, or an unknown or revoked key.
object
object
English, for logs; may change.
Values for a localized message, e.g. {"field": "expires_in", "min": 60, "max": 604800}. Absent when the error has none.
object
object
Example
{ "error": { "code": "unauthorized" }}insufficient_scope: the key lacks the operation’s scope.
object
object
English, for logs; may change.
Values for a localized message, e.g. {"field": "expires_in", "min": 60, "max": 604800}. Absent when the error has none.
object
object
Example
{ "error": { "code": "insufficient_scope" }}not_found (params.what: order, subscription, entry): unknown, or another mode’s.
object
object
English, for logs; may change.
Values for a localized message, e.g. {"field": "expires_in", "min": 60, "max": 604800}. Absent when the error has none.
object
object
Example
{ "error": { "code": "not_found" }}