Skip to main content
POST
/
organizations
/
account-groups
Create Account Group
curl --request POST \
  --url https://api-sandbox.y.uno/v1/organizations/account-groups \
  --header 'Content-Type: application/json' \
  --header 'PRIVATE-SECRET-KEY: <api-key>' \
  --header 'PUBLIC-API-KEY: <api-key>' \
  --data '
{
  "name": "<string>",
  "merchant_id": "<string>"
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "merchant_id": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z"
}
Creates a new group (sub-organization) within your organization. Account groups can be used to organize different merchants or business units under a single parent entity.

Authorizations

PUBLIC-API-KEY
string
header
default:<Your PUBLIC-API-KEY>
required
PRIVATE-SECRET-KEY
string
header
default:<Your PRIVATE-SECRET-KEY>
required

Body

application/json
name
string
required

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

merchant_id
string
required

Unique identifier used by the merchant in their systems (min=1, max=255).

Response

201 - application/json

Created

id
string<uuid>

The unique identifier of the account group.

name
string
merchant_id
string
created_at
string<date-time>
updated_at
string<date-time>