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

    • Related Articles

    • Characteristics products

      Use Road:/api/features Protected:true Attributes id:integer name:translation Roads Get / Returns the list of product characteristics Get /{id} Returns the details of product characteristics whose ID is {id} Put /store Required id, name Creates a ...
    • Compatibilities

      Route /api/compats Protected true modele_id integer product_id integer year integer GET / Return compatibilities index list GET /modeles/{id} Return compatibilities found matching modele_id {id} GET /products/{id} Return compatibilities found ...
    • Association of characteristics to a product

      Use Road:/api/product_features Protected:true Attributes id:integer feature_id:integer (PUT, DELETE), object (POST) product_id:integer (PUT, DELETE), object (POST) Roads Get / Returns the list of associations of characteristics to products Get ...
    • Associations of Product Character Values

      Use Road:/api/feature_associations Protected:true Attributes id:integer feature_id:integer (PUT, DELETE), object (POST) value_id:integer (PUT, DELETE), object (POST) Roads Get / Returns the list of characteristic associations products and values Get ...
    • Settings

      Use of Route : /api/settings Protected : True Routes GET / Retrieves the panel settings