Register refund transaction
Registers a refund transaction hash the buyer's wallet already broadcast.
https://testnet.universal-escrow.xyz/v1/escrows/{escrowId}/refund-transactions
Prerequisite: the escrow must be FUNDED (a refund-intent should normally precede this). Reaches REFUNDED only once the chain confirms it. Supports Idempotency-Key.
Authorizations
AuthorizationstringheaderrequiredBearer authentication with your secret API key: Bearer esc_test_<prefix>_<secret>. The key needs the escrows:write scope.
Path Parameters
escrowIdstringrequiredHeaders
Idempotency-KeystringOptional, 8–255 characters. The same key with the same body replays the original response instead of acting twice; with a different body it is a conflict.
Body
application/jsontransactionHashstringrequiredThe 0x-prefixed 32-byte transaction hash the user's wallet broadcast. Untrusted input — verified against the chain on nine properties before any state changes; never taken on faith.
chainIdnumberrequiredChain id the transaction was sent on; must match the escrow's own chain.
Response
201 · Escrow · application/jsonThe escrow, now REFUND_SUBMITTED.
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