Creating subaccount
Create subaccount
POST /api/public/v1/accounts/:account_id/subaccounts
This endpoint creates a new subaccount for the specified master account ID.
Headers
Name
Value
Content-Type
application/vnd.api+json
Authorization
Bearer <api_key>
Path Parameters
Name
Type
Description
account_id
string
Master account ID.
Body
Name
Type
Description
data
object
Object with exchange request data.
data.type
string
Exchange request type. Always accounts.
data.attributes
object
A set of exchange request attributes.
data.attributes.label
string
Subaccount label. Keep it human-redable so that you can recognize it later.
Request JSON
{
"data": {
"type": "accounts",
"attributes": {
"label": "Sub-account Christian Whitney"
}
}
}Response
Last updated