Gravv docs
Docs Agent Sign in Get API keys

List orders waiting for approval

Lists orders in waiting_approval, newest first. Only orders made in the Dashboard wait for approval, so orders made with an API key never appear here. A scoped key needs fx:order_approve. You approve and reject orders in the Dashboard.

GEThttps://api.gravv.xyz/v1/fx/orders/pending-approvals

Query Parameters

Page size. The API caps values above 100 at 100.

Responses

Status Description
200 A page of orders waiting for approval
400 The key is not allowed to approve orders

200 response

An order made with an API key starts as pending, and Gravv debits its source at once. It then becomes completed, or cancelled if the debit fails. waiting_approval is for orders made in the Dashboard.

Possible values: waiting_approval, pending, completed, rejected, cancelled

The amount sold

The amount bought

Possible values: internal_account, internal_crypto_wallet

Possible values: internal_account, internal_crypto_wallet, external_account

Possible values: market

Which rate table priced the order

Only on orders made through the trade desk

{
"data": {
"items": [],
"items_per_page": 20,
"page": 1,
"total_items": 0,
"total_pages": 0
},
"error": null
}

400 response

What went wrong. FX errors carry no code.

{
"data": null,
"error": "caller is not permitted to approve or reject orders"
}

Authorization

  • ApiKeyAuth
Was this page helpful?
ESC