---
title: "Create a sub-account."
method: POST
path: "/settings/v1/sub-accounts"
tags: ["CustomSubAccounts"]
---

# Create a sub-account.

`POST /settings/v1/sub-accounts`

Create a sub-account.<br>You must have at least one of these scopes: 'subledger.manage, setup.manage'.

## Headers

- `Idempotency-Key` string

## Request body

- CreateCustomSubAccountModel
  - `propertyId` string, required — ID of the property
  - `code` string, required — Code of the sub-account. Has to be unique per property, and must not be one of the reserved codes: - Unspecified - System - Normal - Reduced - VeryReduced - Special - Null - Without
  - `name` string, required — Name of the sub-account
  - `type` 'Other' | 'Accommodation' | 'FoodAndBeverages', required — Service type of the sub-account

## Response `201`

Creation of the new sub-account was successful.

- CustomSubAccountCreatedModel
  - `id` string, required — The ID of the sub-account

## Other responses

- `400` — Bad request.
- `401` — You are unauthorized.
- `403` — Forbidden.
- `404` — The Request-URI could not be found.
- `415` — Unsupported media type.
- `422` — Validation errors in the request body or query params.
- `499` — Client closed request.
- `500` — An unexpected error occurred.
- `503` — The server is currently unavailable. Please try later.

---

[API](https://skmtc.dev/apaleo/apis/apaleo-settings-api.md) · [All operations](https://skmtc.dev/apaleo/apis/apaleo-settings-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/apaleo/apaleo-settings-api/revisions/da1c3b71ee9a/schema)
