Products

Products

Use of

Route:/api/products
Protected:True

Attributes

Id:Integer
Provider_reference: string
Name: string
Ean13: string
Reference: string
Product_ids: Array
Status: string


Roads


Get/
Returns the product list

Get/{id}
Returns details of the product whose ID is {id}

Get           /forceSyncProduct/{id}
Forces the import of the latest changes to store products whose ID is {id}

Put/store
Requiredid, name, reference, universal
Optionalsupplier_reference, ean13
Creates a product using the body of the query

Post/{id}
Optionalproduct_id, name, reference, supplier_reference, ean13, status
Updates the product whose ID is {id} based on query body data

Post/
Requiredproduct_ids, status
Changes the status en masse with the value of Status for the products whose ID is contained in the array product_ids,This array can only have a maximum of 1000 entries.
The parameterStatus can only have one of the following values: IndependentUniversalSpecific
  1. Specific : default status of products, used to describe product compatibility that is specific to the model concerned.
  2. Independent : status assigned to products that cannot give rise to compatibility (e.g. jacket, helmet, gloves, etc.).
  3. Universal : status of products that can adapt to all models (e.g. an oil canister).

Delet/{id}
Delete the product whose ID is {id} and all compatibilities concerning it