Cancel escrow
Cancels an escrow before it is funded.
https://testnet.universal-escrow.xyz/v1/escrows/{escrowId}/cancel
Prerequisite: the escrow must not yet be FUNDED — a funded escrow cannot be cancelled through this route, only released or refunded via chain-confirmed evidence.
Authorizations
AuthorizationstringheaderrequiredBearer authentication with your secret API key: Bearer esc_test_<prefix>_<secret>. The key needs the escrows:write scope.
Path Parameters
escrowIdstringrequiredBody
application/jsonreasonstringFree-text reason for the cancellation, for audit/support purposes.
Response
201 · Escrow · application/jsonThe cancelled escrow.
idstringrequiredPublic id.
organizationIdstringrequiredstatusEscrowStatusrequiredsettlementModeSettlementModerequiredOne of ESCROW, INSTANT.
refundedAmountstring | nullrequiredINSTANT orders: the total the seller has refunded to the buyer, from confirmed refunds only, as an atomic-unit string. Null for ESCROW orders.
refundStatestring | nullrequiredINSTANT orders: whether the seller has refunded none, part or all of the payment. Null for ESCROW orders. One of NONE, PARTIAL, FULL.
environmentstringrequiredInherited from the creating API key. One of test, live.
chainIdnumberrequiredonChainIdstring | nullrequiredDeterministic on-chain id, knowable before the escrow exists on chain; every escrow.* event correlates on it.
contractAddressstring | nullrequiredtokenTokenrequiredamountAtomicstringrequiredAtomic-unit decimal string; 1 USDC is "1000000".
platformFeeAtomicstringrequiredAtomic-unit decimal string, snapshotted at creation.
partiesEscrowParty[]requiredexternalReferencestring | nullrequiredYour own reference, exactly as sent.
sellerWalletIdstring | nullrequiredThe verified seller wallet (swal_…) the seller address was taken from; null when created with a raw sellerWallet.
groupIdstring | nullrequiredThe milestone group this escrow belongs to, or null when it was created alone.
groupPositioninteger | nullrequiredThe escrow's 1-based position within its milestone group, or null when it was created alone.
descriptionstring | nullrequiredWhat is being paid for, shown to the buyer.
successUrlstring | nullrequiredWhere the buyer may return after paying.
cancelUrlstring | nullrequiredWhere the buyer may return without paying.
metadataobjectrequiredYour own key/value pairs, exactly as sent.
expiresAtstring | nullrequiredWhen the buyer may refund a funded escrow themselves. RFC 3339.
fundingDeadlinestring | nullrequiredWhen an unfunded escrow expires. Defaults to expiresAt. RFC 3339.
fundingEvidenceFundingEvidence | nullrequiredcreatedAtstringrequiredRFC 3339 UTC timestamp.
updatedAtstringrequiredRFC 3339 UTC timestamp.
checkoutUrlstringHosted checkout page for the buyer. Absent when the deployment has no checkout base URL.
linksEscrowLinks