cURL
curl --request POST \ --url https://api.joinslash.com/virtual-account \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <api-key>' \ --data ' { "accountId": "<string>", "name": "<string>", "commissionDetails": { "type": "flatFee", "amount": { "amountCents": 123 }, "frequency": "monthly", "startDate": "2023-11-07T05:31:56Z" } } '
{ "virtualAccount": { "id": "<string>", "name": "<string>", "accountId": "<string>", "accountType": "default", "accountNumber": "<string>", "routingNumber": "<string>", "closedAt": "<string>" }, "commissionRule": { "id": "<string>", "virtualAccountId": "<string>", "commissionDetails": { "type": "flatFee", "amount": { "amountCents": 123 }, "frequency": "monthly", "startDate": "2023-11-07T05:31:56Z" } } }
Authentication from public API requests
The account ID the virtual account should be created under.
The name of the virtual account
Specifies how much of the virtual account's incoming funds should be diverted to the primary account
Show child attributes
OK
The virtual account object
The virtual account commission rule object