Create Account

Creates a new account under a specific account group. Each account represents a distinct merchant environment or business unit within the group.

POST/organizations/account-groups/{account_group_id}/accounts

Creates a new account under an account_group_id.

Path Parameters

account_group_idstringrequired

The unique identifier of the account group.

Body application/json

namestringrequired

Account name (min=1, max=255).

Response

Created

idstring<uuid>
namestring
account_group_idstring<uuid>
created_atstring<date-time>
updated_atstring<date-time>
Request
curl -X POST "https://api-sandbox.whitelabel.com/v1/organizations/account-groups/<account_group_id>/accounts" \
  -H "Content-Type: application/json" \
  -H "PUBLIC-API-KEY: <PUBLIC-API-KEY>" \
  -H "PRIVATE-SECRET-KEY: <PRIVATE-SECRET-KEY>" \
  -d '{
  "name": "string"
}'
Response
{
  "id": "00000000-0000-0000-0000-000000000000",
  "name": "string",
  "account_group_id": "00000000-0000-0000-0000-000000000000",
  "created_at": "1970-01-01T00:00:00.000Z",
  "updated_at": "1970-01-01T00:00:00.000Z"
}