Gravv
/Docs
Search docs or ask a question⌘K
DocsAgent
ChangelogTry sandbox
Settlement instructions Create a settlement instruction

Create a settlement instruction

Saves one of your own bank accounts or crypto wallets to receive FX order proceeds. Pass its `id` as the order destination with type `external_account`. Its currency must match the currency the order buys. Gravv does not check the details with a bank or check for duplicates.

POSThttps://api.gravv.xyz/v1/settlement-instructionsTry 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
instruction_type:stringRequired

Send it in lower case, exactly as listed

Possible values: bank_account, crypto_wallet

account_name:stringRequired
Name on the account or wallet
currency:stringRequired
Currency this destination receives, such as USD or USDC. Gravv stores it as sent and filters match it exactly, so always send upper case.
is_default:boolean
Makes this the default for its currency and unsets the old default.
Defaultfalse
account_number:string
Required for bank_account
bank_name:string
Required for bank_account
bank_code:string
routing_number:string
swift_code:string
iban:string
country:string
address:object
The bank's address, stored as sent
wallet_address:string
Required for crypto_wallet. Gravv does not check its format, so check it yourself.
network:string
Required for crypto_wallet, such as polygon or stellar. Send lower case.
memo:string
Required when network is stellar

Response

Returns 200 OK. The saved settlement instruction

NameDescription
data:object
A settlement instruction. The response leaves out empty fields.
Show 23 child attributesobject
error:null

Errors

StatusMeaning
200The saved settlement instruction
400A missing or invalid field
Was this page helpful? Yes No
Request
cURLJavaScriptPythonGoRubyPHPJavaC#cURL
curl --request POST \
--url 'https://api.gravv.xyz/v1/settlement-instructions' \
--header 'Api-Key: <api-key>' \
--header 'Idempotency-Key: usd-settlement-account-1' \
--header 'Content-Type: application/json' \
--data '{
"instruction_type": "bank_account",
"account_name": "Acme Treasury LLC",
"currency": "USD",
"is_default": true,
"account_number": "000987654321",
"bank_name": "Example Bank",
"routing_number": "026009593",
"country": "US"
}'
Responseapplication/json
200400OK
{
"data": {
"id": "b7e1c2d3-4f5a-4b6c-9d8e-7f6a5b4c3d2e",
"tenant_id": "0d9c8b7a-6f5e-4d3c-2b1a-0f9e8d7c6b5a",
"type": "bank_account",
"instruction_type": "bank_account",
"account_name": "Acme Treasury LLC",
"currency": "USD",
"is_default": true,
"status": "active",
"account_number": "000987654321",
"bank_name": "Example Bank",
"routing_number": "026009593",
"country": "US",
"created_at": "2026-10-12T09:20:00Z",
"updated_at": "2026-10-12T09:20:00Z",
"date_created": "2026-10-12T09:20:00Z",
"date_updated": "2026-10-12T09:20:00Z"
},
"error": null
}