Order Status
Order and payment status values, what moves them, and which webhook fires when they move.
Order Status
An order is the amount you asked to be paid. Its status rolls up the payments that settled against it. The customer's transfer and its verification are tracked on the payment.
const CheckoutOrderStatus = {
CREATED: 'CREATED',
PARTIALLY_FULFILLED: 'PARTIALLY_FULFILLED',
FULFILLED: 'FULFILLED',
CANCELLED: 'CANCELLED',
} as const;
Status Descriptions
| Status | Description |
|---|---|
CREATED | No payment has settled yet. Payment attempts may be open, expired, failed or cancelled. Every order starts here |
PARTIALLY_FULFILLED | At least one payment settled, but remainingUsdcAmount is still above the completion threshold. More payment attempts are allowed |
FULFILLED | remainingUsdcAmount is 0 or at or below the completion threshold. completedAt is set, and any residual stays in remainingUsdcAmount |
CANCELLED | You cancelled a CREATED order that had no payment attempts, or it passed its expiresAt with none. cancelledAt is set |
Completion threshold
An order completes when what remains is at or below its completion threshold: by default the
greater of 1 USDC and 1% of requestedUsdcAmount. A 1,000 USDC order completes once 10 USDC or
less remains, and a 20 USDC order once 1 USDC or less remains. Peer can change these values; a
change applies to existing orders the next time a payment settles on them.
A split-fee order uses the larger of that threshold and its split-fee pricing tolerance. Every
order then adds a tolerance for currency conversion: 7% of requestedUsdcAmount after a PayPal
payment and 5% after a Wise payment (the larger when both settled); other rails add nothing.
Refunds use the settled payment amount.
Transitions
| From | To | Trigger | Webhook |
|---|---|---|---|
| none | CREATED | Order created through the SDK, the API or the dashboard | ORDER_CREATED |
CREATED | CREATED (amounts change) | Customer resizes a dynamic order with nothing paid and no open or expired payment attempt | ORDER_RESIZED |
CREATED | CREATED (amount saved) | Customer starts a payment with a new amount on an open-amount order, while no payment can still complete | ORDER_AMOUNT_SET, then PAYMENT_CREATED |
CREATED, PARTIALLY_FULFILLED | PARTIALLY_FULFILLED | A payment settles and the remainder is still above the completion threshold | PAYMENT_SETTLED |
CREATED, PARTIALLY_FULFILLED | FULFILLED | A payment settles and the remainder is at or below the completion threshold | PAYMENT_SETTLED, then ORDER_FULFILLED |
CREATED | CANCELLED | You cancel from the dashboard. Refused once any payment attempt exists | ORDER_CANCELLED |
CREATED | CANCELLED | The order passes its expiresAt with no payment attempt | ORDER_CANCELLED |
What follows from this:
- Orders never fail, and expire only if you ask. There is no
EXPIREDorFAILEDorder status; the payment window applies to the payment, below. An order created withexpiresInMinutesstops taking new payment attempts atexpiresAtand is cancelled then if it has none. A payment attempt is never expired by it. - Only a
CREATEDorder with no payment attempts can be cancelled: by you from the dashboard, not with an API key, or by its ownexpiresAt. statusandremainingUsdcAmountalways agree in any snapshot.- An open-amount order has no amount until a payment starts. It stays
CREATEDwithrequestedUsdcAmountandremainingUsdcAmountnullandamountVersion0. Each payment start with a new amount saves both amounts and raisesamountVersionby one. chargebackStatusandrefundStatusnever changestatus.
Terminal States
| Status | Is Terminal |
|---|---|
CREATED | No |
PARTIALLY_FULFILLED | No |
FULFILLED | Yes |
CANCELLED | Yes |
A terminal order takes no new payment attempts.
Payment Status
A payment is one customer attempt to pay an order on one rail. This is data.payment.status in
webhooks and status on Payments API rows.
const CheckoutPaymentStatus = {
CREATED: 'CREATED',
SETTLED: 'SETTLED',
CANCELLED: 'CANCELLED',
EXPIRED: 'EXPIRED',
FAILED: 'FAILED',
} as const;
Status Descriptions
| Status | Description |
|---|---|
CREATED | Attempt open. The customer is inside their window, sending money or waiting for verification. quoteExpiresAt is the cutoff |
SETTLED | Settled onchain. netSettledUsdcAmount and fulfillTransaction are set, and so is completedAt. penalties lists any reductions applied, for example for purchase protection |
EXPIRED | quoteExpiresAt passed while the attempt was open. Not final: a late settlement can still land, and a recreate reopens it |
FAILED | The attempt could not be started onchain, or a crypto transfer failed or stalled. A rejected verification doesn't move a payment here; it stays CREATED so the customer can retry. A stalled crypto payment can still settle if its deposit arrives late |
CANCELLED | The customer abandoned this attempt, for example by switching rail. Final, except on Zcash: a deposit that lands on a cancelled Zcash attempt within 30 days of its creation still settles it |
The customer payment window
quoteExpiresAt is set when the attempt is created: 1 hour on fiat rails, 6 hours 10
minutes on Relay crypto rails, and the deposit deadline of the Zcash quote, 20 minutes
from the request. A fiat attempt still open at its cutoff becomes EXPIRED and sends
PAYMENT_EXPIRED. To give a customer more time on a fiat attempt, or reopen one that expired, see
give a buyer more time.
A customer can cancel an open fiat attempt from checkout, for example to switch rail, until they
confirm in checkout that they sent the payment or the attempt's window is extended. From then on
buyerCancelBlock is MARKED_PAID or EXTENDED, checkout shows a pointer to support in place of
Cancel payment, and a checkout cancel or same-rail replacement is refused with 409
PAYMENT_MARKED_PAID or PAYMENT_EXTENDED. The attempt stays CREATED; cancelling it could lose
money the customer already sent.
A customer who taps Didn't send the payment yet? takes the mark back and can cancel again, but
buyerMayHavePaid stays true while the attempt is CREATED once they marked it paid or started
a verification for it (lookups Pay runs on its own don't count). Checkout then asks them to confirm they sent nothing before Find a New Payment Partner
replaces it.
Live crypto attempts behave differently. A Relay attempt never becomes EXPIRED: a transfer that
fails or is refunded is marked FAILED at once, and one still unresolved about 6 hours
20 minutes after creation is marked FAILED too, both sending PAYMENT_FAILED. A Zcash attempt
that is never funded becomes EXPIRED about 6 hours 20 minutes after creation. Expired or
cancelled Zcash attempts are still watched for late deposits for 30 days after creation. Sandbox
crypto attempts expire on their quote window, like fiat ones.
Transitions
| From | To | Trigger | Webhook |
|---|---|---|---|
| none | CREATED | Customer picks a rail on an open order | PAYMENT_CREATED |
CREATED | SETTLED | Settlement confirmed onchain: buyer-verified proof, Seller Automated Release, or a crypto transfer | PAYMENT_SETTLED, plus ORDER_FULFILLED when the order completes, plus PAYMENT_BRIDGE_PENDING when a conversion starts |
CREATED | EXPIRED | Fiat or sandbox window elapsed, or a live unfunded Zcash attempt timed out | PAYMENT_EXPIRED |
CREATED | FAILED | The attempt could not be started onchain, or a crypto transfer failed or stalled | PAYMENT_FAILED |
CREATED | CANCELLED | Customer cancels or switches method in checkout | PAYMENT_CANCELLED |
EXPIRED | SETTLED | Late onchain settlement | PAYMENT_SETTLED, plus ORDER_FULFILLED when the order completes |
CANCELLED | SETTLED | A late Zcash deposit lands on a cancelled attempt | PAYMENT_SETTLED, plus ORDER_FULFILLED when the order completes |
EXPIRED, FAILED, CANCELLED | CREATED | A recreate reopens a fiat attempt | None |
EXPIRED | CREATED | The attempt's window is extended, by an extend or by Peer support | None |
FAILED | CREATED | A stalled crypto deposit arrives late; settlement follows | None, then PAYMENT_SETTLED |
SETTLED is final. A Relay crypto payment can settle before Relay reports its fees; within
minutes Peer refines totalUsdcFeeAmount, referralFees, paymentAmount, currency and
currencyPerUsdRate without another event. netSettledUsdcAmount never decreases; it increases
only when another deposit to the same address also succeeds. Until the fees are known, a
stablecoin payment on an order where you pay the fees is credited slightly low, so the order can
show PARTIALLY_FULFILLED for a few minutes before ORDER_FULFILLED.
One cancellation is silent: when a customer starts a new Zcash attempt on an order that already
has an unfunded one, the old attempt is cancelled without PAYMENT_CANCELLED, so a read can show
CANCELLED with no event behind it.
PAYMENT_EXPIRED and PAYMENT_FAILED don't touch the order. Treat the order as done only on
ORDER_FULFILLED, or when data.order.status is FULFILLED.
Chargeback Status
Orders and payments carry a chargeback status next to their lifecycle status. A chargeback is
recorded after settlement and never changes FULFILLED or SETTLED.
const OrderChargebackStatus = {
NONE: 'NONE',
PARTIALLY_CHARGEBACKED: 'PARTIALLY_CHARGEBACKED',
CHARGEBACKED: 'CHARGEBACKED',
} as const;
const PaymentChargebackStatus = {
NONE: 'NONE',
CHARGEBACKED: 'CHARGEBACKED',
} as const;
| Status | Description |
|---|---|
NONE | No settled payment on the order has been charged back |
PARTIALLY_CHARGEBACKED | Some, but not all, settled payments carry a chargeback |
CHARGEBACKED | Every settled payment carries a chargeback. A single-payment order goes here directly |
The order value can move back: a later settlement can take an order from CHARGEBACKED to
PARTIALLY_CHARGEBACKED. Reconcile from the snapshot in each
chargeback event instead of ranking transitions.
Refund Status
const CheckoutOrderRefundStatus = {
NONE: 'NONE',
PENDING: 'PENDING',
COMPLETED: 'COMPLETED',
} as const;
| Status | Description |
|---|---|
NONE | No refund on the order |
PENDING | Refund started; REFUND_PENDING sent |
COMPLETED | Refund completed; REFUND_COMPLETED sent |
Only FULFILLED orders can be refunded.
Webhook Delivery Status
const WebhookDeliveryStatus = {
PENDING: 'PENDING',
DELIVERED: 'DELIVERED',
FAILED: 'FAILED',
} as const;
What each value means, and the retry schedule, are under webhook delivery statuses.