InventoryOrders

Add an item to an Inventory Order

This endpoint adds an item to an inventory order.

post/inventory/orders/{orderId}/items

Request body

product_idstring uuid required

Identifier of the inventory product to add as a line item. The product must belong to the same site as the order's site_id and must be linked to the order's supplier.

quantityinteger required

The quantity of the inventory product being ordered.

unit_priceinteger required

The unit price of the inventory product in the lowest denomination for the product's currency.

Example request

{
  "quantity": 10,
  "unit_price": 200
}

Response

The inventory order item was successfully retrieved

Example response

{
  "data": {
    "quantity": 10,
    "unit_price": 200,
    "product_name": "Blissful Body Butter",
    "line_total": 2000
  }
}

Changes