---
title: "Update an Inventory Order"
method: PUT
path: "/inventory/orders/{orderId}"
tags: ["InventoryOrders"]
---

# Update an Inventory Order

`PUT /inventory/orders/{orderId}`

This endpoint updates an inventory order for the given site.

## Request body

- object
  - `purchase_order_number` string — The purchase order number for this inventory order.
  - `supplier_email` string — The email address of the supplier for this inventory order.

## Response `200`

The inventory order was successfully retrieved

- object
  - `data` InventoryOrder, required
    - `id` string, uuid, required — The ID of the inventory order.
    - `status` 'draft' | 'submitted' | 'received', required — The status of the inventory order.
    - `purchase_order_number` string — The purchase order number for this inventory order.
    - `supplier_id` string, uuid, required — The ID of the supplier for this inventory order.
    - `supplier_name` string, required — The name of the supplier for this inventory order.
    - `supplier_email` string, required — An email address for the supplier of this inventory order.
    - `subtotal` integer, required — The subtotal of the order in the lowest denomination for this order's currency.
    - `currency` string, required — The currency of the inventory order.
    - `item_count` integer, required — The total number of items in the inventory order.
    - `items_added` boolean, required — Whether items have been added to the order.
    - `created_by_id` string, uuid, nullable, required — The ID of the user who created the inventory order.
    - `site_id` string, uuid, required — The ID of the site this inventory order belongs to.
    - `organisation_id` string, uuid, required — The ID of the organisation this inventory order belongs to.
    - `created_at` string, date-time, required — The date and time the inventory order was created.
    - `updated_at` string, date-time, required — The date and time the inventory order was last updated.
    - `submitted_at` string, date-time, nullable, required — The date and time the inventory order was submitted.
    - `last_submitted_at` string, date-time, nullable, required — The date and time the inventory order was last submitted.

## Other responses

- `401` — The user is unauthenticated
- `403` — The authenticated user does not have permission.
- `404` — The resource couldn't be found
- `422` — The request didn't pass validation

---

[API](https://skmtc.dev/try/apis/trybe-api.md) · [All operations](https://skmtc.dev/try/apis/trybe-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/try/trybe-api/revisions/f37f92702da5/schema)
