PATCH
/
virtual-account
/
{virtualAccountId}
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>",
    "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

Path Parameters

virtualAccountId
string
required

Body

application/json
action
enum<string>
required

The type of action to take. An action of type "update" will update the virtual account with the specified properties.

Available options:
update
name
string

The name to update the virtual account with.

commissionDetails
object

Response

200
application/json
OK
virtualAccount
object
required

The virtual account object

commissionRule
object

The virtual account commission rule object