---
title: "POST /customers"
method: POST
path: "/customers"
tags: ["CustomerCommand"]
---

# POST /customers

`POST /customers`

## 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/customers`
- Auth: OAuth 2
  - Authorization code: `https://api.khaasfood.com/connect/authorize`
  - Token URL: `https://api.khaasfood.com/connect/token`

## Request body

- KhaasFoodCustomersDTOsCustomersCreateCustomerDto
  - `id` string, uuid
  - `membershipCardNo` string, required
  - `name` string, required
  - `phone` string, required
  - `email` string, nullable
  - `nationalId` string, nullable
  - `imageUrl` string, nullable
  - `occupation` string, nullable
  - `university` string, nullable
  - `company` string, nullable
  - `point` integer
  - `remarks` string, nullable
  - `ordersCount` integer
  - `productAmount` number, double
  - `otherAmount` number, double
  - `totalDiscount` number, double
  - `totalAmount` number, double
  - `totalPaid` number, double
  - `totalDue` number, double
  - `wcId` integer
  - `isActive` boolean

## Response `200`

Success

## 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)
