---
title: "POST /transactions"
method: POST
path: "/transactions"
tags: ["TransactionCommand"]
---

# POST /transactions

`POST /transactions`

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

## Request body

- KhaasFoodTransactionsDtosCreateTransactionDto
  - `id` string, uuid
  - `transactionFlowType` 1 | 2, required
  - `transactionMedium` 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7, required
  - `paymentGatewayService` 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16, required
  - `transactionFor` 0 | 1 | 2 | 3 | 4 | 5 | 6, required
  - `transactionWith` 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7, required
  - `parentId` string, uuid, nullable
  - `parentName` string, nullable
  - `orderNumber` string, nullable
  - `orderId` string, uuid, nullable
  - `amount` number, double, required
  - `transactionNumber` string, nullable
  - `remarks` string, nullable
  - `contactPersonName` string, nullable
  - `contactPersonPhone` string, nullable
  - `transactionDate` string, date-time, nullable
  - `accountHeadName` string, required
  - `accountHeadId` string, uuid, required
  - `walletId` string, uuid, nullable
  - `warehouseId` string, uuid, nullable
  - `state` 0 | 1 | 2
  - `isPayAdjustment` boolean
  - `refTransactionId` string, uuid, nullable

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