---
title: "GET /api/app/sales/order-detail/{id}"
method: GET
path: "/api/app/sales/order-detail/{id}"
tags: ["Sales"]
---

# GET /api/app/sales/order-detail/{id}

`GET /api/app/sales/order-detail/{id}`

## 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/sales/order-detail/{id}`
- Auth: OAuth 2
  - Authorization code: `https://api.khaasfood.com/connect/authorize`
  - Token URL: `https://api.khaasfood.com/connect/token`

## Path parameters

- `id` string, uuid, required

## Response `200`

Success

- KhaasFoodSalesDTOsSalesDetailInfoDto
  - `id` string, uuid
  - `orderNumber` string, nullable
  - `orderReferenceNumber` string, nullable
  - `givenAmount` number, double
  - `overallDiscountPercentage` number, double
  - `overallDiscountAmount` number, double
  - `totalDiscountAmount` number, double
  - `totalAmount` number, double
  - `profitAmount` number, double
  - `paidAmount` number, double
  - `dueAmount` number, double
  - `changeAmount` number, double
  - `payableAmount` number, double
  - `deliveryCharge` number, double
  - `redeemedPoint` integer
  - `redeemedAmount` number, double
  - `deliveryDate` string, date-time
  - `remarks` string, nullable
  - `warehouseId` string, uuid
  - `warehouseName` string, nullable
  - `orderState` 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9
  - `saleFrom` 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14
  - `saleChannel` 0 | 1 | 2 | 3 | 4 | 5
  - `saleType` 0 | 1 | 2 | 3 | 4 | 5 | 6
  - `deliverymanName` string, nullable
  - `deliverymanPhone` string, nullable
  - `dealerId` string, uuid, nullable
  - `dealerName` string, nullable
  - `customerName` string, nullable
  - `customerPhone` string, nullable
  - `customerMemberShipNumber` string, nullable
  - `customerNote` string, nullable
  - `customerDeliveryAddress` string, nullable
  - `area` string, nullable
  - `creatorId` string, uuid, nullable
  - `lastModifierId` string, uuid, nullable
  - `creationTime` string, date-time
  - `lastModificationTime` string, date-time, nullable
  - `createdBy` string, nullable
  - `lastModifiedBy` string, nullable
  - `kamUserName` string, nullable
  - `appliedCouponCode` string, nullable
  - `isReturn` boolean
  - `returnNote` string, nullable
  - `returnReason` 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9
  - `originalSaleId` string, uuid, nullable
  - `originalSaleOrderNumber` string, nullable
  - `saleStates` KhaasFoodSalesDTOsSaleStateInfoDto[], nullable
    - `id` string, uuid
    - `state` string, nullable
    - `orderState` 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9
    - `remarks` string, nullable
    - `creationTime` string, date-time
    - `creatorId` string, uuid, nullable
    - `createdBy` string, nullable
  - `payments` KhaasFoodSalesDTOsSalePaymentInfoDto[], nullable
    - `id` string, uuid
    - `walletName` string, nullable
    - `amount` number, double
    - `flow` 1 | 2
    - `creatorId` string, uuid, nullable
    - `lastModifierId` string, uuid, nullable
    - `creationTime` string, date-time
    - `lastModificationTime` string, date-time, nullable
    - `createdBy` string, nullable
    - `lastModifiedBy` string, nullable
    - `transactionNumber` string, nullable
  - `lineItems` KhaasFoodSalesDTOsSaleProductInfoDto[], nullable
    - `id` string, uuid
    - `productDetailId` string, uuid
    - `productDetailName` string, nullable
    - `parentName` string, nullable
    - `unitPrice` number, double
    - `quantity` number, double
    - `discountPercentage` number, double
    - `discountPerUnit` number, double
    - `discountTotal` number, double
    - `totalPrice` number, double
    - `redeemedPoint` integer
    - `redeemedAmount` number, double
    - `costPricePerUnit` number, double
    - `costTotal` number, double
    - `type` 1 | 2 | 3 | 4 | 5
    - `creatorId` string, uuid, nullable
    - `lastModifierId` string, uuid, nullable
    - `creationTime` string, date-time
    - `lastModificationTime` string, date-time, nullable
    - `createdBy` string, nullable
    - `lastModifiedBy` string, nullable
    - `images` KhaasFoodProductsDTOsProductImageLookupDto[], nullable
      - `name` string, nullable
      - `imageUrl` string, nullable
      - `alt` string, nullable
      - `isPrimary` boolean
      - `displayOrder` integer
    - `isProductReviewSubmitted` boolean
    - `isSaleable` boolean, nullable
  - `changesHistories` KhaasFoodCommonSaleChangesHistoryDto[], nullable
    - `entityName` string, nullable
    - `changeType` 0 | 1 | 2
    - `propertyName` string, nullable
    - `originalValue` string, nullable
    - `newValue` string, nullable
    - `changeTime` string, date-time
    - `username` string, nullable

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