---
title: "Update an Order"
method: PUT
path: "/api/record/crmorder/{id}"
---

# Update an Order

`PUT /api/record/crmorder/{id}`

## Path parameters

- `id` string, required

## Request body

- object
  - `accountid` string, required — Use an Account's globally unique identifier (GUID) to change the related account.
  - `companyname` string, required — Company name of the related account.
  - `Items` object, required — Add new order items to your order.
    - `Item` object[] — Add and then set the details of each order item below.
      - `crmorderid` string, required — Use an order's GUID to set which order this item will appear in and be related to.
      - `productname` string, required — Set the name of a related or custom product.
      - `catalognumber` string — Set the catalog number of the product.
      - `description` string — Free text description of up to 4,000 characters about the order item or related product.
      - `itemorder` integer — Set the order the items will be listed in, will appear in ascending order starting with the lowest at the top.
      - `itemprice` number, float — Set the price of the product.
      - `itemquantity` number, float — Set the quantity of the product.
      - `ownerid` string — A system user's GUID, will fill in automatically with the user who created the item and be used for permissions. Can be set manually.
      - `productid` string — Use a product's globally unique identifier (GUID) to relate it to this order item.
      - `tax` integer — Use 2 to include VAT in the set itemprice, or use 1 to have it added on to the total price (Picklist).
  - `address` string — Full address of the related account.
  - `amountdiscount` number, float — Set a number discount for the whole order. Will take precedence over the percentage field if both are set.
  - `amountdiscountpercent` number, float — Set a percentage discount for the whole order, if the amountdiscount is also set the percentage discount will not be applied.
  - `currencycode` integer — Set the number which represents the relevant currency. (Picklist)
  - `description` string — Free text description of the order.
  - `emailaddress` string — The email address associated with the related account.
  - `fax` string — The fax number associated with the related account.
  - `idnumber` string — The ID number associated with the related account.
  - `ownerid` string — A system user's GUID, will fill in automatically with the user who created the order and be used for permissions. Can be set manually.
  - `rounddiscountcode` integer — To apply a round discount to the order enter 1, otherwise enter 2. Defaults to no discount. (Picklist)
  - `statuscode` integer — Status of the order (Picklist)
  - `taxincludecode` integer — To include VAT in the total enter 1, otherwise enter 0. Defaults to include VAT unless defined otherwise. (Picklist)
  - `telephone` string — The phone number associated with the related account.

## Response `200`

200

- object
  - `success` boolean
  - `data` string
  - `message` string

## Other responses

- `400` — 400
- `401` — 401

---

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