InventoryProducts

Add a supplier to an Inventory Product

This endpoint adds a supplier to the given inventory product.

post/inventory/products/{productId}/supplier

Request body

supplier_idstring uuid required

Identifier of the supplier this product is purchased from. Used when generating purchase orders and on supplier reports. The supplier must belong to the same site as the product.

order_quantityinteger nullable required

The default quantity of the inventory product to be ordered from this supplier.

unit_priceinteger required

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

Example request

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

Response

The inventory product supplier was successfully retrieved

Example response

{
  "data": {
    "product_name": "Blissful Body Butter",
    "supplier_name": "Elemis",
    "order_quantity": 10,
    "unit_price": 200,
    "currency": "gbp"
  }
}

Changes

No recorded changes to this endpoint across all 1 revision of this API.