Skip to main content
POST
Cancel Order
Cancels an order you own. Orders that are already final (cancelled, expired, settled, refunded) are returned unchanged with a message noting they are final.
Cancelling only affects Rails’ order record. For a non-custodial EVM/Starknet order, if you have already submitted createOrder on-chain, settlement follows the on-chain state — cancel before you submit.

Header Parameters

string
required
Unique API key issued manually through Telegram.

Path Parameters

string
required
The order id (orderRef) returned at creation.

Response

string
Response state (success).
object
string
Order id.
string
Lifecycle state — cancelled on success.