cURL
curl --request POST \ --url https://api.jup.ag/trigger/v2/orders/price/cancel/{orderId} \ --header 'Authorization: Bearer <token>' \ --header 'x-api-key: <api-key>'
{ "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", "transaction": "AQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAEN...", "requestId": "cancel-request-uuid" }
Step 1 of the two-step cancellation flow. Returns a withdrawal transaction that must be signed and submitted via the confirm-cancel endpoint.
Get API key via https://portal.jup.ag
JWT token from the challenge-response auth flow
Withdrawal transaction for signing
Base64-encoded unsigned withdrawal transaction
Cancel request ID (used in confirm step)
Was this page helpful?