Skip to main content

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​

StatusDescription
CREATEDNo payment has settled yet. Payment attempts may be open, expired, failed or cancelled. Every order starts here
PARTIALLY_FULFILLEDAt least one payment settled, but remainingUsdcAmount is still above the completion threshold. More payment attempts are allowed
FULFILLEDremainingUsdcAmount is 0 or at or below the completion threshold. completedAt is set, and any residual stays in remainingUsdcAmount
CANCELLEDYou 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​

FromToTriggerWebhook
noneCREATEDOrder created through the SDK, the API or the dashboardORDER_CREATED
CREATEDCREATED (amounts change)Customer resizes a dynamic order with nothing paid and no open or expired payment attemptORDER_RESIZED
CREATEDCREATED (amount saved)Customer starts a payment with a new amount on an open-amount order, while no payment can still completeORDER_AMOUNT_SET, then PAYMENT_CREATED
CREATED, PARTIALLY_FULFILLEDPARTIALLY_FULFILLEDA payment settles and the remainder is still above the completion thresholdPAYMENT_SETTLED
CREATED, PARTIALLY_FULFILLEDFULFILLEDA payment settles and the remainder is at or below the completion thresholdPAYMENT_SETTLED, then ORDER_FULFILLED
CREATEDCANCELLEDYou cancel from the dashboard. Refused once any payment attempt existsORDER_CANCELLED
CREATEDCANCELLEDThe order passes its expiresAt with no payment attemptORDER_CANCELLED

What follows from this:

  • Orders never fail, and expire only if you ask. There is no EXPIRED or FAILED order status; the payment window applies to the payment, below. An order created with expiresInMinutes stops taking new payment attempts at expiresAt and is cancelled then if it has none. A payment attempt is never expired by it.
  • Only a CREATED order with no payment attempts can be cancelled: by you from the dashboard, not with an API key, or by its own expiresAt.
  • status and remainingUsdcAmount always agree in any snapshot.
  • An open-amount order has no amount until a payment starts. It stays CREATED with requestedUsdcAmount and remainingUsdcAmount null and amountVersion 0. Each payment start with a new amount saves both amounts and raises amountVersion by one.
  • chargebackStatus and refundStatus never change status.

Terminal States​

StatusIs Terminal
CREATEDNo
PARTIALLY_FULFILLEDNo
FULFILLEDYes
CANCELLEDYes

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​

StatusDescription
CREATEDAttempt open. The customer is inside their window, sending money or waiting for verification. quoteExpiresAt is the cutoff
SETTLEDSettled onchain. netSettledUsdcAmount and fulfillTransaction are set, and so is completedAt. penalties lists any reductions applied, for example for purchase protection
EXPIREDquoteExpiresAt passed while the attempt was open. Not final: a late settlement can still land, and a recreate reopens it
FAILEDThe 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
CANCELLEDThe 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​

FromToTriggerWebhook
noneCREATEDCustomer picks a rail on an open orderPAYMENT_CREATED
CREATEDSETTLEDSettlement confirmed onchain: buyer-verified proof, Seller Automated Release, or a crypto transferPAYMENT_SETTLED, plus ORDER_FULFILLED when the order completes, plus PAYMENT_BRIDGE_PENDING when a conversion starts
CREATEDEXPIREDFiat or sandbox window elapsed, or a live unfunded Zcash attempt timed outPAYMENT_EXPIRED
CREATEDFAILEDThe attempt could not be started onchain, or a crypto transfer failed or stalledPAYMENT_FAILED
CREATEDCANCELLEDCustomer cancels or switches method in checkoutPAYMENT_CANCELLED
EXPIREDSETTLEDLate onchain settlementPAYMENT_SETTLED, plus ORDER_FULFILLED when the order completes
CANCELLEDSETTLEDA late Zcash deposit lands on a cancelled attemptPAYMENT_SETTLED, plus ORDER_FULFILLED when the order completes
EXPIRED, FAILED, CANCELLEDCREATEDA recreate reopens a fiat attemptNone
EXPIREDCREATEDThe attempt's window is extended, by an extend or by Peer supportNone
FAILEDCREATEDA stalled crypto deposit arrives late; settlement followsNone, 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;
StatusDescription
NONENo settled payment on the order has been charged back
PARTIALLY_CHARGEBACKEDSome, but not all, settled payments carry a chargeback
CHARGEBACKEDEvery 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;
StatusDescription
NONENo refund on the order
PENDINGRefund started; REFUND_PENDING sent
COMPLETEDRefund 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.