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 · Prefunding

Take a quote: assign the milestone's payout

POST/v1/prefunding/advances

Key scope: write

The seller's signature over the quote's assignment. In one transaction SET records it, writes the advance and locks the milestone's payout to the provider's repayment address; a milestone already pledged answers 409 milestone_already_pledged and nothing is written. The lock binds what SET proposes; the Safe's owners can still sign any transaction on chain. 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). 503 prefunding_disabled while Trade-finance prefunding is switched off for this deployment (GET /v1/capabilities features.tradeFinancePrefunding.status says which). 403 prefunding_off while Trade-finance prefunding for this account is switched off for this deployment (GET /v1/capabilities features.tradeFinancePrefunding.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

quote stringrequired
pfq_…
signature stringrequired
A 65-byte secp256k1 signature from eth_signTypedData_v4: 0x and 130 hex characters, v 27 or 28.

Errors

  • 503 escrow_disabled
  • 403 escrow_off
  • 503 prefunding_disabled
  • 403 prefunding_off
  • 404 quote_unknown
  • 409 quote_expired
  • 404 provider_unknown
  • 409 escrow_not_funded
  • 422 signature_not_seller
  • 409 milestone_already_pledged

All codes: Errors.