cURL
curl --request PATCH \ --url https://api.joinslash.com/virtual-account/{virtualAccountId} \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <api-key>' \ --data ' { "action": "update", "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" } } }
Update an existing virtual account
Authentication from public API requests
The type of action to take. An action of type "update" will update the virtual account with the specified properties.
update
The name to update the virtual account with.
Show child attributes
OK
The virtual account object
The virtual account commission rule object