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 Crypto API Suite

SET Crypto API Suite · Convert

Execute this payment's pending trade

POST/v1/cash_out_payments/{id}/execute_trade

Key scope: write · Success: 200

Tells the provider to execute this Cash-Out payment's pending trade at the current market rate; the bank then receives what that rate gives. SET never executes a trade on its own: it tells you with cash_out_payment.trade_pending.

Deprecated Retired on 2026-11-18, with the asset it served (GET /v1/capabilities retiredAssets). Kept only for a payment already waiting at the provider; nothing new creates one. No switch turns it off: its refusals are the ones listed on this page.

Path parameters

id stringrequired
The Cash-Out payment's id, as payment in GET /v1/pending_trades. Not one of your Cash-Out payments, it answers 404 cash_out_payment_unknown.

Headers

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

Notes

  • Expanded routes are switched on per deployment; until then 403 expanded_routes_off. Check GET /v1/capabilities (features.expandedRoutes).
  • Needs the write scope. Any account type.
  • The payment must have a pending trade on record (409 trade_not_pending).
  • A restricted business, customer or paying wallet is refused, and nothing is sent to the provider.
  • No body. Answers 200 with the trade as executed; a repeat answers the same executedAt and sends nothing more.
  • The answer carries no rate or payout amount; follow the payment with GET /v1/cash_out_payments/{id} for what the bank receives.
  • Event cash_out_payment.trade_executed carries the same body.
  • If the provider no longer holds the trade the answer is 409 trade_not_pending; a provider error or timeout answers 502 provider_unavailable, and the same request can be sent again.
  • The sandbox does not simulate a pending trade: the example's trade was supplied in the provider's form.
  • This example is a recorded run of SET's own code (wallet release e9b03447) with a sandbox key; ids and times are that run's.

Errors

  • 403 expanded_routes_off
  • 404 cash_out_payment_unknown
  • 409 trade_not_pending
  • 403 restricted

All codes: Errors.