POST
/
order
/
{orderId}
/
cancel
Cancel an order with its configured refund authorization
curl --request POST \
  --url https://router-gateway-production.up.railway.app/order/{orderId}/cancel \
  --header 'Content-Type: application/json' \
  --data '
{
  "refundToken": "<string>",
  "refundSignature": "<string>",
  "refundSignatureDeadline": 123,
  "amountFormat": "readable"
}
'
{
  "orderId": "<string>",
  "orderAddress": "<string>",
  "amountToSend": "<string>",
  "quoteId": "<string>",
  "from": "<string>",
  "to": "<string>",
  "status": "<string>",
  "expiry": "<string>",
  "expectedOut": "<string>",
  "maxSlippage": "<string>",
  "expectedSlippage": "<string>",
  "minOut": "<string>",
  "maxIn": "<string>",
  "amountFormat": "readable",
  "refundMode": "evmSignature",
  "refundAuthorizer": "<string>",
  "refundToken": "<string>"
}

Path Parameters

orderId
string<uuid>
required

Body

application/json
refundToken
string
Minimum string length: 1
refundSignature
string
Pattern: ^0x[a-fA-F0-9]+$
refundSignatureDeadline
integer
amountFormat
enum<string>
default:readable
Available options:
readable,
raw

Response

Order cancellation accepted by the internal router API.

orderId
string
required
orderAddress
string
required
amountToSend
string
required
quoteId
string
required
from
string
required
to
string
required
status
string
required
expiry
string
required
expectedOut
string
required
maxSlippage
string
required
expectedSlippage
string
minOut
string
maxIn
string
amountFormat
enum<string>
default:readable
Available options:
readable,
raw
refundMode
enum<string>
default:evmSignature
Available options:
evmSignature,
token
refundAuthorizer
string | null
refundToken
string