Skip to main content
POST
/
priceWithdraw
priceWithdraw
curl --request POST \
  --url https://api.jup.ag/recurring/v1/priceWithdraw \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "inputOrOutput": "In",
  "order": "<string>",
  "user": "<string>",
  "amount": "<string>"
}
'
{
  "requestId": "<string>",
  "transaction": "<string>"
}

Authorizations

x-api-key
string
header
required

Get API key via https://portal.jup.ag

Body

application/json

DEPRECATED: Price-based recurring orders are deprecated

inputOrOutput
enum<string>
required
Available options:
In,
Out
order
string
required

Base-58 account which is the Recurring Order account

user
string
required
amount
string<int64> | null

If no amount is provided, it will withdraw the entire amount

Response

Withdraw transaction created successfully

requestId
string
required

Required to make a request to /execute

transaction
string
required

Unsigned base-64 encoded transaction