Skip to content
SETSimple Easy Transactions
SET DocsSET Crypto API Suite and SET API referenceCurrent as of 2026-11-21 · wallet release 7d8a79fb
Browse: SET API

SET API · Escrow

Open a milestone escrow

POST/v1/escrows

Key scope: write

Buyer, seller and, for 2-of-3, an arbiter both parties name (each an address the party controls), milestones in USDC, the network, and the Travel Rule parties (buyer as originator, seller as beneficiary: a business name and ISO 3166-1 alpha-3 country, sealed by SET and never returned). Every address is screened against OFAC's list (403 restricted, nothing written) and the asset is checked against your asset policy (403 asset_not_allowed) and SET's GENIUS cutoff (400 asset_not_permitted). Answers the Safe's counterfactual address and acceptance: the typed data each party signs. SET is never an owner or a signer of the escrow's Safe, never deploys it with a key of its own and never broadcasts: the owners sign, any party sends. externalId: a retry with the same one answers the existing escrow (200). 503 escrow_disabled while SET Escrow is switched off for this deployment (GET /v1/capabilities features.escrow.status says which). 403 escrow_off while SET Escrow for this account is switched off for this deployment (GET /v1/capabilities features.escrow.status says which).

From the OpenAPI document This page is written from the wallet's OpenAPI document (release 2026-11-23): its summary, scope, account type and fields.

Headers

Idempotency-Key string
Any unique string, so a retry runs once. See Idempotency.

Body

network "base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "avalanche"required
buyer objectrequired
seller objectrequired
arbiter object
milestones object[]required
travelRule objectrequired
invoice string
inv_…
externalId string
ledgerSide "buyer" | "seller"
Which party your business is, for its journal entries and SET Close: buyer or seller. Defaults to seller when invoice is given (buyer is then refused, 400 ledger_side_invalid); left out otherwise, no journal entry is written.

Errors

  • 503 escrow_disabled
  • 403 escrow_off
  • 400 body_invalid
  • 400 external_id_invalid
  • 400 network_invalid
  • 400 party_invalid
  • 400 milestones_invalid
  • 400 amount_invalid
  • 400 label_invalid
  • 400 invoice_invalid
  • 404 invoice_unknown
  • 400 ledger_side_invalid
  • 400 travel_rule_invalid
  • 400 asset_unknown
  • 503 travel_rule_key_missing
  • 409 external_id_in_use

All codes: Errors.