1curl --request POST \
2 --url 'https://api.gravv.xyz/v1/fx/orders/{order_id}/cancel' \
3 --header 'Api-Key: <Api Key>' \
4 --header 'Idempotency-Key: order_789_attempt_1' \
5 --header 'accept: application/json'
1{
2 "data": {
3 "id": "4994339f-4a19-47ef-a86b-1005eff0a4d0",
4 "order_id": "OTC-0VA89I",
5 "order_type": "market",
6 "side": "sell",
7 "pair": {
8 "base": "USD",
9 "quote": "ZAR"
10 },
11 "amount": "1000.00000000",
12 "amount_currency": "USD",
13 "converted_amount": "16242.50000000",
14 "converted_currency": "ZAR",
15 "rate": "16.24250000",
16 "target_rate": null,
17 "fee": null,
18 "status": "cancelled",
19 "customer_id": "85034797-3ea1-4ad8-a952-becd67d74acc",
20 "tenant_id": "dfa96ede-fc13-43cf-8328-8b910d1cd1d2",
21 "source_type": "account",
22 "source_id": "74653c7b-ae84-45ab-8085-2d2493f86d81",
23 "destination_type": "ssi",
24 "destination_id": "b23ffd0e-d0fc-432e-acc9-c396194121b3",
25 "created_by_user_id": "804201c6-2760-4da1-9c5e-0ff09ebc3b5e",
26 "created_by_role": "developer",
27 "approved_by_user_id": null,
28 "approved_at": null,
29 "rejected_by_user_id": null,
30 "rejected_at": null,
31 "rejection_reason": null,
32 "executed_at": null,
33 "settled_at": null,
34 "expires_at": null,
35 "created_at": "2026-07-03T15:32:37.878676Z",
36 "updated_at": "2026-07-03T15:40:11.120943Z"
37 },
38 "error": null
39}