Inbound endpoints
Sales History endpoints
5 min
quick reference verb path method post /api/v1/sales history/bulk create or update upsert sale entries loading sales history into pricemoov description with our api, you can easily create or update entries in our sales history table this table keeps track of all your sales, including the product sold, the date of the sale, and the profit information curl location request post 'https //api pricemoov com/api/v1/sales history/bulk create or update/' \\ \ header 'authorization jwt \<your token>' \\ \ header 'content type application/json' \\ \ raw data '\[ 	 { 	 "transaction id" "tr 0001", 	 "transaction date" "2022 03 10t16 05 24z", 	 "price list name" "pl 0001", 	 "price dimension" "price", 	 "code" "123azerty", 	 "extension" "ebfg9j", 	 "client code" "cl 0001", 	 "agreement code" "ag 0001", 	 "departure date" "2022 03 10t16 05 24z", 	 "currency" "eur", 	 "revenue" "20", 	 "quantity" "2", 	 "active price" "10" 	 }, ]' parameters transaction id price list name price dimension code extension quantity active price client code agreement code departure date revenue type string , default unknown , required unique identifier type string , default unknown , optional name of the price list linked to the transaction type string , default unknown , optional price dimension type string , default unknown , required product code type string , default unknown , required extension type string , default unknown , required quantity sold type string , default unknown , required transaction price type string , default unknown , optional client code type string , default unknown , optional agreement code type string , default unknown , optional departure date type string , default unknown , required transaction revenue example upon success, the response is 201 ok and returns \[ 1,2,3 // ids created ]