Subaccounts

Endpoints for managing entity's subaccounts

Get accounts for an entity

get

Returns a list of all the subaccounts this entity owns.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idstringRequired

Entity ID

Responses
200Success
application/json
get
/v1/{id}/accounts
200Success

Create a new subaccount for an entity

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idstringRequired

Entity ID

Body
namestringRequired

The name associated with this subaccount

Example: Customer 1 account
Responses
200Success
application/json
post
/v1/{id}/accounts
200Success

Delete an account for an entity

delete
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idstringRequired

Entity ID

accIdstringRequired

Subaccount ID to delete

Responses
200Success
application/json
delete
/v1/{id}/accounts/{accId}
200Success

Last updated