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

Ask a provider to quote a milestone

POST/v1/prefunding/quotes

Key scope: write

For a funded escrow's open or submitted milestone not already pledged (409 milestone_already_pledged). Answers the provider's numbers and assignment: the typed data the seller signs. 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

escrow stringrequired
esc_…
milestone stringrequired
esm_…
provider stringrequired
pfp_…

Errors

  • 503 escrow_disabled
  • 403 escrow_off
  • 503 prefunding_disabled
  • 403 prefunding_off
  • 404 escrow_unknown
  • 404 milestone_unknown
  • 400 provider_invalid
  • 404 provider_unknown
  • 409 escrow_not_funded
  • 409 milestone_already_pledged
  • 409 milestone_settled
  • 409 provider_declined

All codes: Errors.