Prepare refund transaction
Returns unsigned calldata to refund a funded escrow back to the buyer, for the buyer's wallet to sign.
https://testnet.universal-escrow.xyz/v1/escrows/{escrowId}/refund-intent
Prerequisite: the escrow must be FUNDED. Refunds charge no platform fee — refundEscrow transfers the whole amount back — so expectedRecipients names only the buyer. Partial amounts are not supported by the deployed contract (BL-02): the body takes no fields, and any field is refused with 422 — to pay in stages, create a milestone group (POST /v1/escrow-groups).
Authorizations
AuthorizationstringheaderrequiredBearer authentication with your secret API key: Bearer esc_test_<prefix>_<secret>. The key needs the escrows:write scope.
Path Parameters
escrowIdstringrequiredResponse
201 · EscrowIntent · application/jsonUnsigned refund calldata and who it pays. The escrow did not move.
escrowIdstringrequiredtransactionsTransactionRequest[]requiredTransactions to sign, in order.
statusEscrowStatusrequiredexpiresAtstringWhen the embedded authorization expires. RFC 3339.
operationIdstringThe settlement operation recorded at REQUESTED; the escrow itself did not move.
expectedRecipientsobjectWho this settlement pays, keyed by role (seller, feeRecipient, buyer). Absent on funding intents.