Skip to content

Approve order

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

Approves an order in waiting_approval. Approval must be done by a different user than the one who created the order, with the approve permission (an admin or owner on the tenant). API keys without the approve permission receive a 403.

On approval, Gravv charges the source and the order moves to pending while it executes and settles.

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

Path Params

  • order_idstringrequired

    The order reference returned when the order was created.

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}/approve' \
--header 'Api-Key: <Api Key>' \
--header 'Idempotency-Key: order_789_attempt_1' \
--header 'accept: application/json'
{
"data": {
"order_id": "OTC-0VA89I",
"status": "pending",
"approved_by_user_id": "2f0d9d54-f4ab-4fdd-b30a-c619cb71d098",
"approved_at": "2026-07-03T15:45:02.000Z"
},
"error": null
}