Update price model
PUT {{api-url}}/price/{{tenant}}/priceModels/{{priceModelId}}
AVAILABLE for Price Service v2 only
Updates a price model definition.
A Price Model can be defined as a repeatable way to sell products in a market with the intention of making a profit. The price model defines basic structure for prices. Among other things, it allows you to determine whether the prices are gross or net, whether they contain markup, and the structure of tiers.
- If the
Content-Language
is set to*
the request body payload should contain localized fields not as a string, but as a map in format:key:value
, where thekey
is the language code andvalue
is the translation. ***
Request Body
{"includesTax"=>true, "includesMarkup"=>true, "name"=>"Volume price model", "description"=>"Sample description", "tierDefinition"=>{"tierType"=>"VOLUME", "tiers"=>[{"minQuantity"=>{"quantity"=>0, "unitCode"=>"pc"}, "id"=>"46df0974-d54f-48c3-a928-90e3bc5e438a"}, {"minQuantity"=>{"quantity"=>100, "unitCode"=>"pc"}, "id"=>"135828d9-91b9-4f5d-a868-7f44673876f9"}]}, "measurementUnit"=>{"quantity"=>1, "unitCode"=>"pc"}, "metadata"=>{"version"=>1}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string | ||
X-Version | string | ||
Content-Language | string |