---
title: "Create an Order"
method: POST
path: "/api/record/crmorder"
---

# Create an Order

`POST /api/record/crmorder`

## Request body

- object
  - `accountid` string, required — Use an Account's globally unique identifier (GUID) to relate it to this order.
  - `companyname` string, required — Company name of the related account.
  - `Items` object, required — Add order items to your order.
    - `Item` object[] — Add and then set the details of each order item below.
      - `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. If the amountdiscountpercent field is also set, the discount set here will not be applied.
  - `amountdiscountpercent` number, float — Set a percentage discount for the whole order. This will take precedence over the amountdiscount field if both are set.
  - `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

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