Skip to main content
POST
Cancel an order

Authorizations

x-definitive-api-key
string
header
default:dpka_513a2bd7_57a2_46d2_927b_2a3857fe271b
required

Your Definitive API key.

Path Parameters

orderId
string<uuid>
required

Flash order ID.

Body

application/json
cancelMessage
string
required

UTF-8 plaintext the funder wallet signed. Format: "Definitive Flash v1 — Cancel Order\nOrder: ". Same bytes across EVM and SVM.

Minimum string length: 1
userSignature
string
required

Funder wallet signature over cancelMessage. Accepts 0x-prefixed hex (EVM convention) or base58 (Solana convention). EVM: 65 bytes from EIP-191 personal_sign. SVM: 64 bytes from Ed25519.

Minimum string length: 1

Response

Order cancelled (or already cancelled)

ok
enum<boolean>
required
Available options:
true