UniversalEscrow
DocumentationAPI reference
Escrows

Prepare refund transaction

Returns unsigned calldata to refund a funded escrow back to the buyer, for the buyer's wallet to sign.

POST

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

Authorizationstringheaderrequired

Bearer authentication with your secret API key: Bearer esc_test_<prefix>_<secret>. The key needs the escrows:write scope.

How authentication works

Path Parameters

escrowIdstringrequired

Response

201 · EscrowIntent · application/json

Unsigned refund calldata and who it pays. The escrow did not move.

escrowIdstringrequired
transactionsTransactionRequest[]required

Transactions to sign, in order.

statusEscrowStatusrequired
expiresAtstring

When the embedded authorization expires. RFC 3339.

operationIdstring

The settlement operation recorded at REQUESTED; the escrow itself did not move.

expectedRecipientsobject

Who this settlement pays, keyed by role (seller, feeRecipient, buyer). Absent on funding intents.