Link, re-price or unlink supplier items
hub_link_supplier_itemsChange what a supplier carries and what it charges, in one call: add new items, update the cost or part number of items already linked, remove items it no longer sells. variantId comes from get_linkable_items for add and from get_supplier_items for update / remove. unitCost is what the merchant PAYS per unit, as a human amount like "12.50" in the company currency — never the selling price, and never cents. It is only the DEFAULT that prefills new order lines: changing it does not re-price purchase orders already placed. Adding an item that is already linked is refused, so read the current list first rather than re-adding blindly. REMOVING is the destructive half — confirm it with the merchant, and tell them it also EDITS ORDERS THAT ARE ALREADY WRITTEN: the item’s line is dropped from every suggested and draft order from this supplier, which changes their totals. Orders already sent keep their lines, the item stays in the catalogue, but it can no longer be added to a new order from this supplier, and any auto-reorder rule pointing at this supplier for it stops producing suggestions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| add | No | Items to start buying from this supplier | |
| remove | No | Item ids from get_supplier_items to stop buying from this supplier | |
| update | No | Already-linked items to re-price or re-code | |
| supplierId | Yes | Supplier id from get_suppliers — not a name |