Create Virtual Account
POST
/web/v1/slash/connections/{connectionBizId}/virtual-accounts JWTCreates a new virtual account under the specified Slash connection.
Required Headers
| Header | Example Value | Description |
|---|---|---|
| Content-Type | application/json | Request content type |
| Accept | application/json | Expected response type |
| X-Client-Hash | Client device fingerprint | |
| Accept-Language | en, zh, zh-Hant, ja, vi | Response language (default: en) |
| Authorization | Bearer | JWT access token |
| X-Workspace-Id | Target workspace ID |
Request Parameters
| Name | Type | Required | In | Description |
|---|---|---|---|---|
connectionBizId | String | Required | path | Slash connection business ID. Path parameter |
request | Object | Required | body | Virtual account creation payload. Structure depends on the Slash platform API. Request body (JSON) |
Success Response
Bad Request 400
{
"code": "4000",
"message": "Invalid request body"
}Error Responses
| HTTP Status | Code | Description |
|---|---|---|
| 400 | 4000 | Invalid request body |
| 401 | 4010 | Invalid or expired JWT token |
| 404 | 4040 | Connection not found |
Notes
- Returns HTTP 201 on success.
- The request body is forwarded to the Slash platform as-is.