---
title: "Update the order"
method: PATCH
path: "/v1/orders/{order_id}"
---

# Update the order

`PATCH /v1/orders/{order_id}`

Update the order

## Path parameters

- `order_id` string, required

## Headers

- `X-BUSINESS-API-KEY` string, required

## Request body

- object
  - `amount` number, required — The total amount of the order
  - `currency` string, required — The currency of the order
  - `remark` string, required — The remark of the order
  - `location_id` string, required — The location id of the order
  - `customer_id` string, required — The customer id of the order
  - `customer_pickup` boolean, required — The customer pickup of the order
  - `channel` string, required — The channel of the order
  - `business_user_id` string, required — The business user id of the order
  - `discount_reason` string, required — The discount reason of the order
  - `discount_amount` number, required — The discount amount of the order
  - `version` string, required — The version of the order

## Response `200`

200

- object
  - `id` string
  - `order_display_number` integer
  - `business_id` string
  - `channel` string
  - `version` string
  - `customer_id` unknown
  - `business_customer_id` unknown
  - `customer` unknown
  - `customer_pickup` boolean
  - `currency` string
  - `order_discount_name` unknown
  - `status` string
  - `remark` string
  - `created_at` string
  - `updated_at` string
  - `closed_at` unknown
  - `location_id` unknown
  - `location` unknown
  - `business_user_id` string
  - `slot_date` unknown
  - `slot_time` unknown
  - `messages` unknown
  - `products` unknown[]
    - unknown
  - `charges` unknown[]
    - unknown
  - `line_items` unknown[]
    - unknown
  - `order_form` object
    - `membership_id` object, required
      - `type` string, required
      - `title` string, required
      - `deleted` boolean, required
      - `include` boolean, required
      - `required` boolean, required
  - `order_form_response` unknown[]
    - unknown
  - `coupon` unknown
  - `payment_status` unknown
  - `fulfilment_status` string
  - `line_items_total` integer
  - `order_discount_amount` integer
  - `line_item_discount_amount` integer
  - `line_item_tax_amount` integer
  - `additional_discount_amount` integer
  - `total_discount_amount` integer
  - `line_item_price` integer
  - `shipping_amount` integer
  - `total_coupon_amount` integer
  - `amount` integer
  - `subtotal` integer

## Other responses

- `404` — 404

---

[API](https://skmtc.net/hitpayapp/apis/hitpay-api.md) · [All operations](https://skmtc.net/hitpayapp/apis/hitpay-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hitpayapp/hitpay-api/versions/6aae1a736990/schema)
