Manage settlement instructions
Create, list, update and delete the bank accounts and wallets your FX proceeds go to, with the Stellar memo rule.
This page shows how to create, list, update and delete settlement instructions. A settlement instruction is one of your own bank accounts or crypto wallets that FX proceeds settle to. Once you save one, use its id as the destination of an OTC order.
A money example. You receive USDC on Stellar and naira at your bank. You add a Stellar USDC wallet (with its memo) and make it the USDC default. When your old naira account closes, you delete its instruction, so Gravv refuses an order that still points at it instead of paying a closed account.
If you use a scoped API key, it needs payee:create to create and update instructions, and payee:delete to delete them. Reading needs no permission.
Create a settlement instruction
Use Create settlement instruction. Send a new Idempotency-Key for each instruction.
Bank account
Crypto wallet
A Stellar wallet needs memo:
The answer leaves out empty fields.
Retrieve settlement instructions
List them with List settlement instructions. Filter with currency and instruction_type. Gravv matches both exactly. The list returns the default first, then the newest. The page size is 10 unless you send items_per_page:
Read one by its id:
Update a settlement instruction
Use Update settlement instruction (no Idempotency-Key). Send only what changes:
currency stops being the default.instruction_type or currency. To change them, delete the instruction and create a new one.network to stellar, send memo in the same call.Delete a settlement instruction
Use Delete settlement instruction. There is no undo:
The instruction disappears from every read. Gravv refuses an order sent to it with bad destination: [400] invalid order destination. Orders already completed keep its id as their destination. If you deleted the default, make another one the default.
What can go wrong
| Response | Why | Fix |
|---|---|---|
400 memo is required for the stellar network: invalid input | The Stellar wallet has no memo | Add memo |
400 wallet address is required for crypto wallets: invalid input | wallet_address is missing | Add it |
400 network is required for crypto wallets: invalid input | network is missing | Add it |
400 settlement instruction <id>: resource not found | The id is unknown, belongs to another business, or was already deleted | List your instructions to get current ids |
400 invalid id | The path id is not a UUID | Use the id from the list |
| Two defaults for the same currency | You saved one as usdc and one as USDC | Always send upper case |