Skip to content

Read the event feed

GET
/v1/events
curl --request GET \
--url 'https://pay.example.com/v1/events?since=0&limit=100' \
--header 'Authorization: Bearer <token>'

Every webhook event of the key’s mode in commit order, whether or not delivery succeeded: the pull alternative to webhooks. Pass the previous response’s next_since to continue (positions are shared by both modes, so a mode’s feed skips numbers). Positions never change, and no event is ever placed before a position already returned: an event is listed once every database transaction that could still commit an earlier one has ended (the feed may trail commits by the length of the longest running transaction; it never skips). Events are kept: since=0 replays the whole history. Order events carry customer_email here as in webhooks. Requires events:read.

since
integer
0

Position after which to list (the previous page’s next_since).

limit
integer
default: 100 >= 1 <= 500

Events per page; values outside 1-500 are clamped.

Events after since, oldest first

Media typeapplication/json
object
data
required
Array
Any of:
object
id
required

The event; deduplicate on it.

string format: uuid
type
required

order.paid: the first payment reached its confirmations (paid; again after a reverted order is paid anew). order.payment_frozen: a payment arrived from an address that fails risk screening (a block-level entry, or a built-in list such as the FBI’s); it is frozen and does not count: the order stays unpaid. Do not fulfil the order, do not refund the payer, and handle the funds (already in the payee wallets) per your compliance process (frozen_payment gives it). order.duplicate_paid: a second confirmed payment (duplicate_paid; refund it — a refund is opened). order.payment_reverted: a confirmed payment left the chain (reverted; stop fulfilment). order.expired: unpaid at expires_at. order.refunded: a refund was confirmed on chain (refund gives it; status partially_refunded, refunded, or paid again after a duplicate’s refund).

string
Allowed values: order.paid order.duplicate_paid order.payment_frozen order.payment_reverted order.expired order.refunded
created_at
required
string format: date-time
livemode

false for test mode events; absent on events from before modes (live).

boolean
data
required
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
required

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
required

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
payments
required
customer_email
required
next_since
required

Position of the last event returned (since when none): pass it as since next.

integer
Example
{
"data": [
{
"type": "order.paid",
"data": {
"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"
}
}