Skip to main content
POST
/
orders
/
price
/
cancel
/
{orderId}
Initiate order cancellation
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"
}

Authorizations

x-api-key
string
header
required

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

Authorization
string
header
required

JWT token from the challenge-response auth flow

Path Parameters

orderId
string
required

Response

Withdrawal transaction for signing

id
string
required
transaction
string
required

Base64-encoded unsigned withdrawal transaction

requestId
string
required

Cancel request ID (used in confirm step)