SET Crypto API Suite · Convert
Execute this payment's pending trade
POST/v1/cash_out_payments/{id}/execute_trade
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/capabilitiesretiredAssets). 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
idstringrequired- The Cash-Out payment's id, as
paymentinGET /v1/pending_trades. Not one of your Cash-Out payments, it answers404 cash_out_payment_unknown.
Headers
Idempotency-Keystring- Any unique string, so a retry runs once. See Idempotency.
Notes
- Expanded routes are switched on per deployment; until then
403 expanded_routes_off. CheckGET /v1/capabilities(features.expandedRoutes). - Needs the
writescope. 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
executedAtand 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_executedcarries the same body. - If the provider no longer holds the trade the answer is
409 trade_not_pending; a provider error or timeout answers502 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_off404 cash_out_payment_unknown409 trade_not_pending403 restricted