- Lite URL:
https://lite-api.jup.ag/recurring/v1/priceWithdraw
- Pro URL:
https://api.jup.ag/recurring/v1/priceWithdraw
CAUTIONPrice-based orders via API is deprecated.
Withdraw Order
If you want to withdraw funds from a price-based order, you need to do these steps:1
Get a list of the order accounts you want to withdraw via
/getRecurringOrders
endpoint.2
Choose the order account to deposit by making a post request to the
/priceDeposit
endpoint to get the transaction to deposit into the order.3
Sign then send the transaction to the network either via
/execute
endpoint or by yourself.GET RECURRING ORDERSRefer to the
/getRecurringOrders
section to prepare order account you want to withdraw from.WARNINGIf you do not pass in
amount
, the transaction will be built to withdraw the full amount of the order.Withdraw Order Response
Success Example ResponseExecute Withdraw Order
To sign then send the transaction to the network to execute the withdrawal, you can use the/execute
endpoint or by yourself.
Refer to the Execute Order section for more details.