Create new price model
POST {{api-url}}/price/{{tenant}}/priceModels
AVAILABLE for Price Service v2 only
Creates a new 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-Languageis set to*the request body payload should contain localized fields not as a string, but as a map in format:key:value, where thekeyis the language code andvalueis the translation. ***
Request Body
{"includesTax"=>false, "includesMarkup"=>true, "name"=>{"en"=>"Volume", "de"=>"Volume"}, "description"=>{"en"=>"Volume price model for testing purposes", "de"=>"De description"}, "tierDefinition"=>{"tierType"=>"VOLUME", "tiers"=>[{"minQuantity"=>{"quantity"=>0, "unitCode"=>"pc"}}, {"minQuantity"=>{"quantity"=>50, "unitCode"=>"pc"}}]}, "measurementUnit"=>{"quantity"=>1, "unitCode"=>"pc"}}
HEADERS
| Key | Datatype | Required | Description |
|---|---|---|---|
Content-Language | string | (Required) The Content-Language request HTTP header defines language(s) of the payload. | |
Content-Type | string | ||
Accept | string | ||
X-Version | string |
RESPONSES
status: Created
{"id":"ullamco tempor officia"}