---
title: "Create a Subaccount"
method: POST
path: "/api/service/subaccount/create"
tags: ["Subaccount"]
---

# Create a Subaccount

`POST /api/service/subaccount/create`

Create a Subaccount which can be used to reconcile orders, refunds and payouts more easily.

## Headers

- `Idempotency-Key` string

## Request body

- CreateSubaccountInputDto
  - `legalName` string, required — The legal name of the Subaccount
  - `mcc` string, required — The merchant category code of the Subaccount. See [here](https://www.citibank.com/tts/solutions/commercial-cards/assets/docs/govt/Merchant-Category-Codes.pdf) for more information.
  - `websiteUrl` string — The website url of the Subaccount

## Response `200`

Returns a new Subaccount

- CreateSubaccountOutputDto
  - `id` string, required
  - `legalName` string, required
  - `status` 'active' | 'inactive', required
  - `mcc` string, required
  - `ownerId` unknown, required
  - `websiteUrl` string
  - `createdAt` unknown, required
  - `updatedAt` unknown, required

## Changes

> 48 revisions in range; 2 could not be searched.

- **2026-03-06** `d617edaf95c0` — 1 info
  - added the new optional `header` request parameter `Idempotency-Key`
- **2026-01-13** `de93a642275e` — 1 info
  - the `legalName` request property's maxLength was increased from `30` to `120`
- **2025-12-08** `59707ad8c8bb` — 3 breaking, 2 warning
  - the `mcc` request property's minLength was increased from `0` to `4`
  - added the pattern `^[^"#$%^*;<>|{}_`~[\]]*$` to the request property `legalName`
  - added the pattern `^\d{4}$` to the request property `mcc`
  - the `legalName` request property's maxLength was set to `30`
  - …1 more

[Change history](https://skmtc.dev/augustus/apis/ivy-api/changes/api/service/subaccount/create/post.md)

---

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