Inbound endpoints
Product Catalog & Extensions e...
Product Catalog & Extensions endpoints
4 min
quick reference verb path method post /api/v1/product catalog/bulk create or update/ upsert product catalog and extensions (extended product catalog) upsert product and extensions to proceed with this endpoint you must first validate the following points 1\ create the product catalog configuration product catalog endpoints docid\ vj zziz9pkvj959qmeetj 2\ \[optional] add dynamic schema for the extended catalog extensions endpoints docid\ ancecrhszwouvh xq9oq7 3\ add extension values allowed for the different extensions extensions endpoints docid\ ancecrhszwouvh xq9oq7 description a product is uniquely identified by its code if the product 123azerty does not exist yet, it will be created with the following values if it already exists , its attribute values will be updated using the new ones provided in the list in the example above as we also import the extended catalog, a product code can be present multiple times in the list in this case, the attributes associated with this product code must always be the same otherwise, it will result in a conflict and raise an http 400 error extended catalog rows are uniquely identified by the product code and the values for the extensions if the extended catalog row already exists it will update the active column value if it does not exist yet, it will create it the values provided for the extensions must appear in the business extension table, otherwise, it will return a 400 the data sent for the dynamic columns of the product catalog and the extended catalog are checked and cast to the right type you can provide text data as long as it can be cast into the right type ex “10 80” for float, “true” for bool not providing the right type of data will result in a 400 curl location request post 'https //api/v1/product catalog/bulk create or update/' \\ \ header 'authorization jwt \<your token>' \\ \ header 'content type application/json' \\ \ data raw '\[ { "code" "123azerty", "product attribute 1" "157 golf de bussy guermantes marne la vallee", "product attribute 2" "18 0", "extension name 1" "value 1", "extension name 2" "value 2", "active" false } ]' upon success, the response is 200 ok and returns { "product catalog ids" \[product catalog ids created], "extended catalog ids" \[extended catalog ids created], }