Inbound endpoints
Inventory endpoints
9 min
quick reference verb path method post /api/v1/inventory/schema/create schema create inventory schema post /api/v1/inventory/bulk create or update bulk update inventory entries define inventory schema description with our api, you can easily create or update entries in your stock table this table keeps track of all your inventory before that you need to define inventory schema curl location request post 'https //api pricemoov com/api/v1/inventory/schema/create schema/' \\ \ header 'authorization jwt \<your token>' \\ \ raw data '{ "attributes config" \[ 	 "code", 	 "product attribute 1", 	 "product attribute 2", 	 "product attribute x", 	 "extension name 1", 	 "extension name 2", 	 "extension name y" 	], 	"is dated" false }' parameters attributes config type list\[string] , required is dated type boolean , default false , optional allow to defined the granularity of inventory data it corresponds to a subset of the product catalog fields ( code , product attribute 1 , product attribute x , extension name 1 , extension name y ) ⚠️ note that if the product code is specified, then it is not necessary to add any product attributes ( product attribute 1 , product attribute x , …) allow to specify if inventory data is defined at the date granularity (for price list display) example upon success, the response is 201 and returns { "input" { "dimensions" \[ "code", "product attribute 1" "product attribute 2", "product attribute x", "extension name 1", "extension name 2", "extension name y" ] }, "output" {"total" "decimal", "booked" "decimal"}, } loading inventory into pricemoov description with our api, you can easily create or update entries in your stock table this table keeps track of all your inventory curl location request post 'https //api pricemoov com/api/v1/inventory/bulk create or update/' \\ \ header 'authorization jwt \<your token>' \\ \ raw data '\[ { "code" "pc value", "product attribute 1" "pa value 1", "product attribute 2" "pa value 2", "product attribute x" "pa value x", "extension name 1" "en value 1", "extension name 2" "en value 2", "extension name x" "en value x", "total" 100, // available "booked" 78 // note this field is optional }, ]' parameters code, product attribute 1, product attribute 2, product attribute x, extension name 1,extension name 2, extension name y type string , optional|required total type float , required booked type float , default 0 , optional field from product catalog defined by inventory schema corresponds to the total number of inventory (available + booked) corresponds to the number of booked units example upon success, the response is 201 and returns { "created" \[created hash], "updated" \[updated hash], }