Inbound endpoints
Product Catalog & Extensions e...
Extensions endpoints
11 min
quick reference verb path method get /api/platform/extension/ listing extensions post /api/v1/extensions/add extension/ adding an extension post /api/v1/extensions/add values/ adding values to an existing extension listing extensions description this endpoint allows listing extensions example curl location request get 'https //api pricemoov com/api/platform/extension/' \\ \ header 'authorization jwt \<your token>' \\ \ header 'content type application/json' \\ upon success, the response is 200 ok and returns the list of extensions \[ { "id" 1, "name" "extension 1", "values" \["value 1", "value 2"] }, ] adding an extension description this endpoint allows you to create extensions note parameters name values type string , required the name of the extension type list the values of the extensions (must be of strings) example curl location request post 'https //api pricemoov com/api/v1/extensions/add extension/' \\ \ header 'authorization jwt \<your token>' \\ \ header 'content type application/json' \\ \ data raw '{ "name" "point of sale", "values" \[ "paris", "amsterdam", "london" ] } ' upon success, the response is 201 ok and returns { "id" 1, "name" "point of sale", "values" \["paris", "amsterdam", "london"] } once you have started creating products, this endpoint will fail please contact our customer engineering team in this case adding values to an existing extension description this endpoint allows updating extension values parameters values type list example say we currently have these values for the extension "point of sale" { "name" "point of sale", "values" \[ "paris", "amsterdam", "london" ] } let's say we now want to add values "lyon" and "milan" to "point of sale" ; we then make the following call curl location request post 'https //api pricemoov com/api/v1/extensions/add values/' \\ \ header 'authorization jwt \<your token>' \\ \ header 'content type application/json' \\ \ data raw '{ "name" "point of sale" "values" \[ "lyon", "milan" ] } upon success, the response is 201 ok and returns { "name" "point of sale", "values" \[ "paris", "amsterdam", "london", "lyon", "milan" ] }