Record what a supplier calls a product
add_product_supplier_referenceChanges data: records a supplier's own code for one of the organization's products, as the person who connected this app, and records it in the organization's audit log. From then on a line of that supplier's invoice or packing list with that code is read as this product, and lines already on shipments are matched again. It is saved as confirmed, and a catalogue import never replaces it. Use it only when the user asks to map a supplier's code to a product, and say which supplier, code and product before calling it. Repeating a call for the same product, supplier and code changes nothing (a suggested or imported one becomes a confirmed correction); the same code on another product, or with another conversion factor, is refused with an error that says so, so change it in Trackberry. The supplier must be a supplier company of the organization. Only for an organization that keeps a product catalogue. Answers with the product and its supplier_references, each with an id such as "prf_8" that remove_product_supplier_reference needs.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"product_id": "<product_id>",
"supplier_id": "<supplier_id>",
"reference": "<reference>"
},
"name": "add_product_supplier_reference"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reference | Yes | The supplier's code for the product, such as "OR-2-369". Case, spaces and punctuation do not matter. | |
| product_id | Yes | A product id such as "prd_45", as returned by list_products. | |
| supplier_id | Yes | The supplier's company id such as "cmp_12", as returned by list_companies. | |
| conversion_factor | No | How many of the organization's units one of the supplier's is, such as 12 for a case of 12. Default 1. |