POST
/
virtual-account
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>",
    "accountNumber": "<string>",
    "routingNumber": "<string>",
    "accountId": "<string>",
    "closedAt": "<string>",
    "accountType": "default"
  },
  "commissionRule": {
    "id": "<string>",
    "virtualAccountId": "<string>",
    "commissionDetails": {
      "type": "flatFee",
      "amount": {
        "amountCents": 123
      },
      "frequency": "monthly",
      "startDate": "2023-11-07T05:31:56Z"
    }
  }
}

Authorizations

X-API-Key
string
header
required

Authentication from public API requests

Body

application/json

Response

201
application/json

OK

The response is of type object.