10. Products
The product methods read and write the product card, its units, prices, properties and translations. Address prefix: {base_url}/api/v1/integ/metas.
| Method | HTTP method and address | Function | Required role |
|---|---|---|---|
| Product list | POST /getmetalist | All products, with their units | Integration.Metas.Post |
| Single product | GET /{idMeta} | A single product by product ID | Integration.Metas.GetById |
| Product units | POST /metaunits | Units of a product | Integration.Metas.GetMetaUnits |
| Save product | POST `` (prefix, no suffix) | Adds or updates products (list) | Integration.Metas.Save |
| Delete product | DELETE /{idMeta} | Permanently deletes a product | Integration.Metas.Delete |
| Deactivate / activate | POST /delist | Deactivates or activates a product | Integration.Metas.DeList |
| Read prices | GET /prices/{idDist}/{idMeta} | Price records of a product | Integration.Metas.GetMetaPrices |
| Write prices | POST /prices | Adds or updates prices (list) | Integration.Metas.AddMetaPrices |
| Read properties | POST /getprop | Properties of a product | Integration.Metas.GetMetaProps |
| Write property | POST /addprop | Adds a property value to a product | Integration.Metas.AddMetaProps |
| Write translation | POST /translate | Product name translation (list) | Integration.Metas.Translate |
| Suggested order | POST /suggestedOrder | Uploads a suggested product list for a customer | Integration.Metas.SuggestedOrder |
The Integration.Metas role grants access to all of these methods. If a product code includes a batch, it is written in the form CODE-BATCH, e.g. P0001-ABC. Language codes: en, tr, ru, ar, id, ro, de, fr, dk, vn, th, my, fa.
Methods in this chapter
- 10.1 Reading products (getmetalist, single product, metaunits) — Returns the product list, a single product and a product's units.
- 10.2 Saving products — Adds or updates products; send all fields when updating.
- 10.3 Deleting and deactivating — Deletes a product permanently or removes it from sale (delist).
- 10.4 Prices — Reads product prices and adds/updates them in bulk.
- 10.5 Properties and translations — Reads and writes product properties and name translations.
- 10.6 Suggested order (suggestedOrder) — Writes a customer-specific suggested order list.