Skip to content

Event delivery

POST

POSTed to the endpoint configured in the admin console: live events to the live endpoint, test events (livemode: false) to the test endpoint, each signed with its own mode’s secret (test order return URLs use the test secret too). Headers: Content-Type: application/json, User-Agent: FlowPayra-Lite/<version> and FlowPay-Signature: t=<unix seconds>,v1=<hex HMAC-SHA256(secret, "<t>.<raw body>")> — verify it on the raw body bytes (the secret is the whole whsec_… string as UTF-8; accept any v1 that matches) and reject stale timestamps (300 seconds is a good tolerance). The timestamp is the attempt’s: a retry is signed anew.

Answer 2xx within 10 seconds to acknowledge; anything else (redirects are not followed) is retried after 10 s, 30 s, 1 min, 5 min, 15 min, 30 min, 1 h, 2 h, 4 h, 8 h and 8 h (12 attempts, about 24 hours), after which the event is marked failed (resendable from the console). Each mode is delivered strictly in order: a failing event holds the later ones of its mode back until it is delivered or given up. Every event stays readable through GET /v1/events, which also gives the commit order. The same event can arrive more than once (a lost acknowledgement, a resend): handle events idempotently by id, and read the object (GET /v1/orders/{id}) before acting on an older event.

data is the object as it was when the event was written: an order (order.*), a subscription (subscription.*), a help ticket (support.ticket_created) or an alert (system.*). New event types may be added: acknowledge unknown types with 2xx.

FlowPay-Signature
required
string
/^t=[0-9]+(,v1=[0-9a-f]{64})+$/
Media typeapplication/json
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

Acknowledged (any 2xx)

Not acknowledged; retried