Release, refunds and disputes
Once an escrow is funded, the money sits in the contract until one of three things happens: the buyer releases it to the seller, it is refunded to the buyer, or a dispute decides between them. Each one is whole: there is no partial release.
Instant payments skip all of this. An order created with settlementMode: "INSTANT" has no release, no dispute and no refund-after-expiry: the seller is paid in the buyer's payment and the order ends at PAID. You refund it yourself from your own wallet and receive escrow.payment_refunded. The rest of this page is about escrow payments, the default.
Who can do what
| Action | Who | Where | When |
|---|---|---|---|
| Release to the seller | The buyer’s wallet only | Hosted page at links.release | Funded |
| Refund to the buyer | The seller’s wallet | Hosted page at links.sellerRefund | Funded, any time |
| Refund to the buyer | The buyer’s wallet | Hosted page at links.buyerRefund | Funded, after expiresAt |
| Cancel | Your server (API key) | POST /v1/escrows/{id}/cancel | Before funding only |
| Open a dispute | Your server (API key) | POST /v1/escrows/{id}/disputes | Funded |
| Decide a dispute | Platform staff — not you | Our side | Disputed |
The links on every escrow point at our hosted pages, where the right wallet connects and signs. Our platform only ever prepares transactions; it never signs one, and neither does your server.
Release
Only the buyer can release, with the wallet that paid. Neither you nor we can release on their behalf, and nothing releases automatically. When the work is accepted, show the buyer a button that opens the escrow's release page:
const escrow = await escrowApi.get(order.escrowId);
// Show the buyer a "Release payment" button that opens this page:
const releaseUrl = escrow.links.release;The buyer connects their wallet and signs. The escrow moves to RELEASE_SUBMITTED, then RELEASED, and you receive escrow.released. The seller has already received the amount minus the 1% fee in their wallet — create no payout on your side.
Buyers forget. We do not send release reminders yet. Send your own email with links.release when work is delivered, and again after a few days.
Refunds
A funded escrow is refunded in full, with no fee, by either:
- the seller, at any time, from
links.sellerRefundwith the seller wallet; or - the buyer, only after
expiresAt(the refund lock you set at creation), fromlinks.buyerRefund.
A buyer who wants their money back before expiresAt has to ask the seller, or open a dispute. After the refund confirms you receive escrow.refunded. If you had already marked the order paid, reverse or flag it according to your accounting rules.
Cancel
Cancel is for an escrow that was never funded — the order was voided or replaced. POST /v1/escrows/{id}/cancel takes an optional {"reason": "…"} of up to 500 characters, and you receive escrow.cancelled. A funded escrow answers 409 escrow_invalid_state: it can only be released or refunded. An escrow nobody pays also ends on its own, at its payment deadline.
Disputes
Either side can dispute a funded escrow. From your server, with the disputes:write scope:
curl -sS -X POST "$ESCROW_API_BASE/escrows/esc_01M1MD43G9ZRNVVHV25TQ85MCD/disputes" \
-H "Authorization: Bearer $ESCROW_API_KEY" \
-H 'Content-Type: application/json' \
-d '{ "reason": "Work not delivered as agreed" }'reasonis required, up to 200 characters. The escrow must beFUNDED; it moves toDISPUTED, release and refund are blocked, and you receiveescrow.disputed.- Attach evidence as string keys and values, optionally anchored by a hash of the files. Read the dispute back with
GET /v1/disputes/{disputeId}(disputes:read).
curl -sS -X POST "$ESCROW_API_BASE/disputes/dsp_01J…/evidence" \
-H "Authorization: Bearer $ESCROW_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"description": { "note": "Delivered files attached", "fileUrl": "https://shop.example/evidence/981.zip" },
"evidenceHash": "0x…" // optional: keccak256 of the evidence bundle
}'Deciding. Neither your server nor your team decides a dispute: you are a party to it, so our team does, with a written note you can read in the dashboard. You respond by adding evidence. The outcome is all or nothing: a full release to the seller or a full refund to the buyer. The platform's arbiter then executes it on chain, and you receive escrow.resolved followed by escrow.released or escrow.refunded.
Want to split the money? That needs a new contract and is not available. For work in parts, use milestones so each stage can be settled on its own.
Driving the transactions yourself
If your application has its own wallet integration and you would rather not use the hosted pages, the API prepares the same transactions: release-intent, refund-intent and funding-intent on /v1/escrows/{id} return calldata for the right wallet to sign, and the matching *-transactions routes register the resulting hash so we follow it to confirmation. These count as heavy requests against your rate limit. Details are in the API reference.