---
title: "POST /api/app/account"
method: POST
path: "/api/app/account"
tags: ["Account"]
---

# POST /api/app/account

`POST /api/app/account`

## Request

- Base URL: `https://api.khaasfood.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.khaasfood.com/api/app/account`
- Auth: OAuth 2
  - Authorization code: `https://api.khaasfood.com/connect/authorize`
  - Token URL: `https://api.khaasfood.com/connect/token`

## Request body

- WafiAbpAccountingAccountsDtosCreateUpdateAccountDto
  - `name` string, required
  - `description` string, nullable
  - `code` string, required
  - `balance` number, double
  - `isCash` boolean
  - `isBank` boolean
  - `accountSubGroupId` string, uuid, required

## Response `200`

Success

- WafiAbpAccountingAccountsDtosAccountDto
  - `id` string, uuid
  - `name` string, nullable
  - `description` string, nullable
  - `code` string, nullable
  - `balance` number, double
  - `isCash` boolean
  - `isBank` boolean
  - `accountSubGroupId` string, uuid
  - `accountSubGroupName` string, nullable
  - `accountGroupId` string, uuid
  - `accountGroupName` string, nullable
  - `financialPosition` 1 | 2 | 3 | 4
  - `isInvalidEntry` boolean

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `500`: Server Error
- `501`: Server Error

---

[API](https://skmtc.dev/khaasfood/apis/khaasfood-api.md) - [All operations](https://skmtc.dev/khaasfood/apis/khaasfood-api/llms.txt) - [OpenAPI document](https://skmtc.dev/khaasfood/apis/khaasfood-api/revisions/149b6034bea9?raw)
