Gravv
/Docs
Search docs or ask a question⌘K
DocsAgent
ChangelogTry sandbox
Transfer Get a transfer quote

Get a transfer quote

Prices a payout before you send it. Send the returned `quote_id` in `POST /v1/transfer` before `expires_at`, with the same currencies and amount, and the transfer settles at the quoted rate. With a `destination` payee, the quote also prices the fees and returns `net_to_amount`, what the recipient is credited. A route that is not open for the payee is refused here, before any money moves. Nothing is debited by a quote.

POSThttps://api.gravv.xyz/v1/transfer/quoteTry it
Api-Key

Headers

NameDescription
Idempotency-Key:stringRequired
1 to 255 printable ASCII characters. A retry with the same key within 24 hours returns the first response, including a 400. After you correct a request, send a new key.

Body parameters

NameDescription
from_currency:stringRequired
The currency the transfer is sent in. USD for a USD account and for a USDC or USDT wallet.
to_currency:stringRequired
The currency the recipient receives. It must differ from from_currency.
amount:stringRequired
The amount you will send in POST /v1/transfer, in from_currency. Positive. The transfer must send exactly this amount.
from_country_iso_code:string
Optional ISO 3166-1 alpha-2 code of the sender's country.
to_country_iso_code:string
Optional ISO 3166-1 alpha-2 code of the payee's country. Send it for a currency paid in several countries, such as XOF, XAF or EUR: the quote is priced for that country, and a transfer to a payee in another country is refused.
sender_type:string
Optional. individual or business.
recipient_type:string
Optional. individual or business.
source_network:string
Optional. The network of the wallet the transfer is sent from.
source_asset:string
Optional. The stablecoin the transfer is sent from, USDC or USDT.
destination:object
Show 3 child attributesobject

Response

Returns 200 OK. The quote

NameDescription
data:object
Show 14 child attributesobject
error:null

Errors

StatusMeaning
200The quote
400The quote was refused. Read error.
Was this page helpful? Yes No
Request
cURLJavaScriptPythonGoRubyPHPJavaC#cURL
curl --request POST \
--url 'https://api.gravv.xyz/v1/transfer/quote' \
--header 'Api-Key: <api-key>' \
--header 'Idempotency-Key: payout-inv-114-1' \
--header 'Content-Type: application/json' \
--data '{
"from_currency": "USD",
"to_currency": "NGN",
"amount": "250.00",
"to_country_iso_code": "NG",
"destination": {
"destination_type": "external_account",
"id": "6f1d2c3b-4a5e-4f60-8b7a-9c0d1e2f3a4b"
}
}'
Responseapplication/json
200400OK
{
"data": {
"quote_id": "GRVTRF_8C2E41A97B3D5F06",
"from_currency": "USD",
"to_currency": "NGN",
"from_amount": "250",
"to_amount": "382500",
"rate": "1530",
"expires_at": "2026-11-10T14:01:00Z",
"pair_code": "USD_US_NGN_NG",
"fees_included": true,
"net_to_amount": "382000",
"fee": "1.5",
"fee_currency": "USD"
},
"error": null
}