Skip to content

Reject order

POSThttps://api.gravv.xyz/v1/fx/orders/{order_id}/reject

Rejects an order in waiting_approval. A reason is required. Rejection needs the same approve permission as approval; API keys without it receive a 403.

A rejected order is final. To try again, create a new order.

The Idempotency-Key header is required; requests without it are rejected.

Path Params

  • order_idstringrequired

    The order reference returned when the order was created.

Body Params

  • reasonstringrequired

    Why the order is being rejected.

Headers

  • Idempotency-Keystringrequired

    A unique key to prevent duplicate requests. Required on all FX write operations; requests without it are rejected with a 400.

Responses

Language
curl --request POST \
--url 'https://api.gravv.xyz/v1/fx/orders/{order_id}/reject' \
--header 'Api-Key: <Api Key>' \
--header 'Idempotency-Key: order_789_attempt_1' \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '{
"reason": "Rate moved outside the agreed range"
}'
{
"data": {
"order_id": "OTC-0VA89I",
"status": "rejected",
"rejected_by_user_id": "2f0d9d54-f4ab-4fdd-b30a-c619cb71d098",
"rejected_at": "2026-07-03T15:46:40.000Z",
"rejection_reason": "Rate moved outside the agreed range"
},
"error": null
}