cURL
curl --request POST \ --url https://api.ledger.so/v1/virtual-accounts \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "customerId": "<string>", "sourceCurrency": "<string>" } '
{ "ok": true, "data": { "id": "<string>", "customerId": "<string>", "sourceCurrency": "<string>", "status": "<string>", "createdAt": "2023-11-07T05:31:56Z", "updatedAt": "2023-11-07T05:31:56Z", "depositInstructions": {} } }
Creates a new fiat virtual account for a customer.
Pass your API key as a Bearer token: Authorization: Bearer ld_live_...
Authorization: Bearer ld_live_...
The customer ID to associate this virtual account with
The currency for the virtual account (e.g. "usd")
Virtual account created
true
Show child attributes