Checkout
The buyer-facing surface behind a checkout link. Takes no credential at all — a buyer has no account.
No credentialWhy these need no credential
- GETMay this origin show the checkout in a frame?
/v1/checkout/{escrowId}/embed-originNo credential required.allowedis true only when the origin is exactly (canonical form) one the escrow's organization registered. Used by the public site to sendframe-ancestors; an unknown escrow id answers the same generic 404 as the rest of checkout. - GETGet the checkout view of an escrow
/v1/checkout/{escrowId}No credential required — the escrow id itself is the capability. Returns an allow-listed projection (15 fields) of the escrow — includingfundingDeadline(the payment window),expiresAt(when the buyer's own refund right unlocks) andsettlementMode(INSTANTmeans the payment goes straight to the seller and is not escrow-protected, ADR-040) — never the full merchant-facing shape. This is also the buyer's polling endpoint: one projection means the displayed status and the payment amount can never disagree. An unknown escrow id and one belonging to another organization both return an identical generic 404, so this route cannot be used to enumerate escrow ids. - POSTPrepare funding transaction
/v1/checkout/{escrowId}/funding-intentNo credential required. Returns one or two unsigned transactions —[approve, createAndFund], or[createAndFund]alone when the buyer's allowance already covers the amount — for the buyer's own wallet to sign. Preparation changes no state on the escrow's status. Body:buyerWallet(optional address) is the wallet the buyer will pay from. Required when the escrow was created without a buyer ("pay from any wallet"): it is bound as the buyer, and may be replaced by a later call until funding is submitted. When the merchant fixed the buyer at creation it must match (409buyer_wallet_mismatchotherwise). Once a funding transaction has been submitted the buyer cannot change (409funding_submitted). - POSTRegister a funding transaction hash
/v1/checkout/{escrowId}/funding-transactionsNo credential required. Registers a transaction hash the buyer's wallet already broadcast — an untrusted claim, verified against confirmed chain evidence before anything is believed. Returns 202 with status FUNDING_SUBMITTED; the escrow becomes FUNDED only once the indexer observes the funding event at the configured confirmation depth. Idempotent on the hash. - POSTPrepare the release transaction
/v1/checkout/{escrowId}/release-intentNo credential required. Returns unsigned calldata for the buyer's own wallet to release a funded escrow to the seller — release lives on checkout, not the merchant dashboard, because the contract requiresmsg.sender == escrow.buyer. Prerequisite: the escrow must be in a releasable state; refused otherwise, naming the current and required state.expectedRecipientsshows the seller and fee amounts, snapshotted at creation, before the wallet prompt. - POSTRegister a release transaction hash
/v1/checkout/{escrowId}/release-transactionsNo credential required. Registers a release transaction hash the buyer's wallet already broadcast — a claim, verified against confirmed chain evidence before anything is believed. The escrow reaches RELEASE_SUBMITTED here and RELEASED only when evidence at depth confirms it. - POSTPrepare the refund transaction
/v1/checkout/{escrowId}/refund-intentNo credential required. Returns unsigned calldata for the buyer's own wallet to refund a funded escrow back to themselves. The contract (ADR-014) permits this from the buyer only after the escrow'sexpiresAthas passed. Prerequisite: the escrow must be FUNDED; refused otherwise, naming the current and required state. Refunds charge no platform fee, soexpectedRecipientsnames only the buyer. - POSTPrepare the refund transaction for the seller
/v1/checkout/{escrowId}/seller-refund-intentNo credential required. Returns unsigned calldata for the seller's own wallet to refund a funded escrow back to the buyer. The contract (ADR-014) permits this from the seller at any time — no expiry required. Prerequisite: the escrow must be FUNDED; refused otherwise, naming the current and required state. Refunds charge no platform fee, soexpectedRecipientsnames only the buyer. - POSTPrepare the seller's refund of an instant payment
/v1/checkout/{escrowId}/payment-refund-intentNo credential required. For an INSTANT order in status PAID: returns unsigned calldata for the seller's own wallet — an exactapproveof the escrow contract when the wallet's allowance is short, thenrefundPayment(escrowId, amount)— and names the buyer as recipient.walletmust be the order's seller andamount(atomic units) must be positive and at most the paid amount minus what is already refunded; refused otherwise withdetails.reason(payment_refund_requires_seller_wallet,refund_exceeds_remaining,payment_refund_requires_instant). The platform fee is not returned. The refund counts once itsPaymentRefundedlog is confirmed (escrow.payment_refundedwebhook). - POSTRegister a refund transaction hash
/v1/checkout/{escrowId}/refund-transactionsNo credential required. Registers a refund transaction hash the buyer's or seller's wallet already broadcast — a claim, verified against confirmed chain evidence before anything is believed. The escrow reaches REFUND_SUBMITTED here and REFUNDED only when evidence at depth confirms it. - POSTOpen a dispute
/v1/checkout/{escrowId}/disputesNo credential required. Opens a dispute on a funded escrow. Returns 201 with a narrowed projection.