---
title: "Add a supplier to an Inventory Product"
method: POST
path: "/inventory/products/{productId}/supplier"
tags: ["InventoryProducts"]
---

# Add a supplier to an Inventory Product

`POST /inventory/products/{productId}/supplier`

This endpoint adds a supplier to the given inventory product.

## Request body

- object
  - `supplier_id` string, 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_quantity` integer, nullable, required — The default quantity of the inventory product to be ordered from this supplier.
  - `unit_price` integer, required — The unit price of the inventory product in the lowest denomination for this product's currency.

## Response `201`

The inventory product supplier was successfully retrieved

- object
  - `data` InventoryProductSupplier, required
    - `id` string, uuid, required — The ID of the product-supplier relationship.
    - `product_id` string, uuid, required — The ID of the inventory product.
    - `product_name` string — The name of the inventory product.
    - `supplier_id` string, uuid, required — The ID of the supplier.
    - `supplier_name` string — The name of the supplier.
    - `supplier_product_id` string, uuid, required — The ID of the supplier product.
    - `order_quantity` integer, required — The default quantity of the inventory product to be ordered from this supplier.
    - `unit_price` integer, required — The unit price of the inventory product in the lowest denomination for this product's currency.
    - `currency` string, required — The currency of the inventory product.
    - `site_id` string, uuid, required — The ID of the site this product-supplier record belongs to.
    - `organisation_id` string, uuid, required — The ID of the organisation this product-supplier record belongs to.
    - `deleted_at` string, date-time, nullable, required — The date and time this product-supplier record was deleted.

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