Skip to content

Find an order by your order number

GET
/v1/orders
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.

merchant_order_no
required
string

The order

Media typeapplication/json

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
id
required
string format: uuid
livemode
required

false for a test order (created with a test key).

boolean
merchant_order_no
required

Unique per mode.

string
order_hash
required

On-chain order id (bytes32).

string
/^0x[0-9a-f]{64}$/
status
required

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

string
Allowed values: pending paid_unconfirmed paid expired reverted duplicate_paid refunded partially_refunded
amount
required

Decimal amount as a string (no floats).

string
/^\d+(\.\d+)?$/
currency
required
string
prices
required

The per-token prices given at creation, by listed symbol.

object | null
tokens
required

Accepted symbols as given (uppercase); null: the default.

Array<string> | null
chains
required
Array<integer> | null
split_rule_id
required

The rule the splits were taken from; null for splits given with the order.

string | null format: uuid
payment
required

The payment the order is booked on (the first confirmed one, which a later duplicate never displaces); null until one is seen.

object
chain_id
required
integer
chain
required

The chain a record is on: its id (chain_id as well, unchanged), CAIP-2 identifier and family.

object
id
required
integer
caip2
required

eip155:<id>, tron:0x2b6653dc, solana:<genesis hash prefix>.

string
family
required

Chain family: decides the address and transaction id forms, and the wallets that can pay.

string
Allowed values: evm tron solana
token_id
required

The listed token (see the console’s tokens).

string | null format: uuid
symbol
required

The token’s symbol as listed (e.g. USDC); null if the token was removed since.

string | null
decimals
required

The token’s decimals: amount / 10^decimals is the amount in tokens.

integer | null
amount
required

Token base units.

string | null
/^\d+$/
payer
required
One of:
Any of:

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.

string
/^0x[0-9a-fA-F]{40}$/
tx_hash
required
One of:
Any of:

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

string
/^0x[0-9a-f]{64}$/
paid_at
required

When the payment was first seen.

string | null format: date-time
confirmed_at
required

When it reached its confirmations.

string | null format: date-time
splits
required
Array<object>
object
position
required

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.

integer
payee_id
required
string format: uuid
payee_ref
required
string
kind
required
string
Allowed values: ratio fixed
bps
required
integer | null
fixed_amount
required

Fixed members: the amount in fixed_currency.

string | null
fixed_currency
required

Currency of fixed_amount (fixed members).

string | null
address
required
One of:
Any of:

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.

string
/^0x[0-9a-fA-F]{40}$/
amount
required

Token base units the member received, once paid.

string | null
/^\d+$/
risk_flag
required

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

string | null
Allowed values: frozen review hit_after_paid
locale
required
string | null
Allowed values: zh-CN en
return_url
required
string | null
metadata
required

As given at creation (null when none).

expires_at
required
string format: date-time
created_at
required
string format: date-time
checkout_url

API answers only: the hosted checkout for the payer (<public_url>/pay/{id}).

string format: uri
payments

Order events only: every payment seen (removed ones left out), the booked one first.

Array<object>
object
chain_id
required
integer
chain
required

The chain a record is on: its id (chain_id as well, unchanged), CAIP-2 identifier and family.

object
id
required
integer
caip2
required

eip155:<id>, tron:0x2b6653dc, solana:<genesis hash prefix>.

string
family
required

Chain family: decides the address and transaction id forms, and the wallets that can pay.

string
Allowed values: evm tron solana
tx_hash
required
Any of:

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

string
/^0x[0-9a-f]{64}$/
block_number
required
integer
payer
required
Any of:

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.

string
/^0x[0-9a-fA-F]{40}$/
amount
required

Token amount in base units (integer string; 1 USDC = “1000000”).

string
/^\d+$/
status
required
string
Allowed values: unconfirmed confirmed
frozen

The payer had a block verdict at booking: the payment does not count toward the order and cannot be refunded.

boolean
customer_email

Order events only: the receipt address, when one was given.

string | null
frozen_payment

order.payment_frozen only: the payment just frozen.

object
id
required
string format: uuid
chain_id
required
integer
chain
required

The chain a record is on: its id (chain_id as well, unchanged), CAIP-2 identifier and family.

object
id
required
integer
caip2
required

eip155:<id>, tron:0x2b6653dc, solana:<genesis hash prefix>.

string
family
required

Chain family: decides the address and transaction id forms, and the wallets that can pay.

string
Allowed values: evm tron solana
tx_hash
required
Any of:

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

string
/^0x[0-9a-f]{64}$/
log_index
required
integer
block_number
required
integer
payer
required
Any of:

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.

string
/^0x[0-9a-fA-F]{40}$/
token
required
Any of:

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.

string
/^0x[0-9a-fA-F]{40}$/
amount
required

Token amount in base units (integer string; 1 USDC = “1000000”).

string
/^\d+$/
frozen_at
required
string format: date-time
refund

order.refunded only: the refund just booked.

object
id
required
string format: uuid
payment_id
required
string | null format: uuid
chain_id
required
integer | null
chain
required
One of:

The chain a record is on: its id (chain_id as well, unchanged), CAIP-2 identifier and family.

object
id
required
integer
caip2
required

eip155:<id>, tron:0x2b6653dc, solana:<genesis hash prefix>.

string
family
required

Chain family: decides the address and transaction id forms, and the wallets that can pay.

string
Allowed values: evm tron solana
token
required
One of:
Any of:

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.

string
/^0x[0-9a-fA-F]{40}$/
amount
required

Token amount in base units (integer string; 1 USDC = “1000000”).

string
/^\d+$/
to
required
One of:
Any of:

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.

string
/^0x[0-9a-fA-F]{40}$/
from
required
One of:
Any of:

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.

string
/^0x[0-9a-fA-F]{40}$/
tx_hash
required
One of:
Any of:

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

string
/^0x[0-9a-f]{64}$/
reason
required
string | null
method
required

wallet: sent from the console’s wallet connection; offline: a transaction id entered.

string | null
Allowed values: wallet offline
verification
required

transfer (a token or coin transfer), trace (found in the call trace, e.g. sent by a Safe) or manual (confirmed by an operator).

string | null
Allowed values: transfer trace manual
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).

Media typeapplication/json
object
error
required
object
code
required
string
message
required

English, for logs; may change.

string
params

Values for a localized message, e.g. {"field": "expires_in", "min": 60, "max": 604800}. Absent when the error has none.

object
key
additional properties
any
error
required
object
code
Allowed values: invalid_request
Example
{
"error": {
"code": "invalid_request"
}
}

unauthorized: no Authorization: Bearer header, or an unknown or revoked key.

Media typeapplication/json
object
error
required
object
code
required
string
message
required

English, for logs; may change.

string
params

Values for a localized message, e.g. {"field": "expires_in", "min": 60, "max": 604800}. Absent when the error has none.

object
key
additional properties
any
error
required
object
code
Allowed values: unauthorized
Example
{
"error": {
"code": "unauthorized"
}
}

insufficient_scope: the key lacks the operation’s scope.

Media typeapplication/json
object
error
required
object
code
required
string
message
required

English, for logs; may change.

string
params

Values for a localized message, e.g. {"field": "expires_in", "min": 60, "max": 604800}. Absent when the error has none.

object
key
additional properties
any
error
required
object
code
Allowed values: insufficient_scope
Example
{
"error": {
"code": "insufficient_scope"
}
}

not_found (params.what: order, subscription, entry): unknown, or another mode’s.

Media typeapplication/json
object
error
required
object
code
required
string
message
required

English, for logs; may change.

string
params

Values for a localized message, e.g. {"field": "expires_in", "min": 60, "max": 604800}. Absent when the error has none.

object
key
additional properties
any
error
required
object
code
Allowed values: not_found
Example
{
"error": {
"code": "not_found"
}
}