---
title: "POST /api/app/sales/checkout"
method: POST
path: "/api/app/sales/checkout"
tags: ["Sales"]
---

# POST /api/app/sales/checkout

`POST /api/app/sales/checkout`

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

## Request body

- KhaasFoodSalesDTOsMobileAppCheckoutInputDto
  - `customerNote` string, nullable
  - `customerId` string, uuid
  - `discountAmount` number, double
  - `discountRuleIds` string[], nullable
  - `productDiscountUsageInfos` KhaasFoodDiscountRulesDTOsProductDiscountInfoDto[], nullable
    - `productDetailId` string, uuid
    - `usageCount` integer
    - `remainingUsageCount` integer
    - `discountRuleId` string, uuid
  - `deliveryChargeAmount` number, double
  - `deliveryChargeDiscountAmount` number, double
  - `deliveryChargeDiscountRuleId` string, uuid, nullable
  - `regularDeliveryChargeAmount` number, double
  - `totalAmount` number, double
  - `redeemedPoint` integer
  - `redeemedAmount` number, double
  - `deliveryDate` string, date-time
  - `paymentMethod` string, nullable
  - `shipping` KhaasFoodSalesDTOsMobileAppCheckoutAddress
    - `contactName` string, nullable
    - `contactPhone` string, nullable
    - `streetAddress` string, nullable
    - `district` string, nullable
    - `area` string, nullable
    - `specialNote` string, nullable
  - `billing` KhaasFoodSalesDTOsMobileAppCheckoutAddress
    - `contactName` string, nullable
    - `contactPhone` string, nullable
    - `streetAddress` string, nullable
    - `district` string, nullable
    - `area` string, nullable
    - `specialNote` string, nullable
  - `lineItems` KhaasFoodSalesDTOsMobileAppOrderLineItem[], nullable
    - `productId` string, uuid
    - `quantity` number, double
    - `priceTotal` number, double
    - `total` number, double
    - `salePricePerUnit` number, double
    - `discountPerUnit` number, double
    - `discountTotal` number, double
    - `productPricePerUnit` number, double
    - `saleDetailType` 1 | 2 | 3 | 4 | 5
  - `isRegularOrderDeliverWithPreOrder` boolean
  - `appliedCoupon` string, nullable
  - `isUseReferralReward` boolean
  - `usedReferralRewardAmount` number, double

## Response `200`

Success

- KhaasFoodSalesSaleCheckoutResultDto
  - `saleId` string, uuid
  - `payableTotalAmount` number, double

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