---
title: "Update Order"
method: PUT
path: "/order"
---

# Update Order

`PUT /order`

## Query parameters

- `id` integer

## Request body

- object
  - `merchantId` integer, required
  - `totalAmount` string, required
  - `balance` string, required
  - `lineItems` object[]
    - `id` integer
    - `name` string
    - `price` number, float
    - `quantity` string
    - `discountAmount` number, float
    - `totalAmount` number, float
    - `taxCategory` object[]
      - `id` string
      - `name` string
      - `code` string
      - `taxIds` string[]
      - `totalTax` string
      - `isPrimary` boolean
      - `primaryExists` boolean
      - `display` string
      - `taxRate` number, float
    - `initials` string
    - `taxes` object[]
      - `id` integer
      - `name` string
      - `description` string
      - `rate` string
      - `display` string
      - `taxCode` string
      - `taxCategoryId` integer
    - `amount` string
    - `taxAmount` string
    - `priceDiscountAmount` string
    - `taxRate` number, float
  - `shippingLineItems` object[]
    - `id` integer
    - `name` string
    - `price` number, float
    - `quantity` string
    - `discountAmount` number, float
    - `totalAmount` number, float
    - `taxCategory` object[]
      - `id` string
      - `name` string
      - `code` string
      - `taxIds` string[]
      - `totalTax` string
      - `isPrimary` boolean
      - `primaryExists` boolean
      - `display` string
      - `taxRate` number, float
    - `initials` string
    - `taxes` object[]
      - `id` integer
      - `name` string
      - `description` string
      - `rate` string
      - `display` string
      - `taxCode` string
      - `taxCategoryId` integer
    - `amount` string
    - `taxAmount` string
    - `priceDiscountAmount` string
    - `taxRate` number, float
  - `orderStatus` string — Values: Active, Completed, Draft, Cancelled
  - `sourceType` string — POS, Web, Telephone
  - `fulfillmentStatus` string
  - `paymentStatus` string
  - `orderedDate` string, date
  - `discounts` object[]
    - `amount` string
    - `code` string
    - `collections` string[]
    - `discountId` integer
    - `discountRateType` string
    - `discountType` string
    - `merchantId` integer
    - `name` string
    - `products` string[]
    - `rate` string
  - `taxAmount` string
  - `subtotalAmount` string
  - `customerName` string
  - `customer` object
    - `id` integer
    - `name` string
    - `firstName` string
    - `lastName` string
    - `email` string
  - `customerId` string
  - `contactEmail` string
  - `notes` string
  - `shippedDate` string
  - `billingAddress` object
    - `address1` string
    - `address2` string
    - `isDefault` boolean
    - `state` string
    - `zip` string
  - `shippingAddress` object
    - `address1` string
    - `address2` string
    - `isDefault` boolean
    - `state` string
    - `zip` string
  - `lineItemCount` integer

## Response `200`

200

## Other responses

- `400` — 400

---

[API](https://skmtc.net/mxmerchant/apis/checkout-api.md) · [All operations](https://skmtc.net/mxmerchant/apis/checkout-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/mxmerchant/checkout-api/revisions/6807b698abcb/schema)
