Logo
Emporix Digital Commerce Platform API Documentation

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-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 the key is the language code and value is the translation. ***

 

Body PARAM

Key Datatype Required Description 



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" }

Curl
curl -X POST 'api-url/price/tenant/priceModels' -H 'Content-Language: *' -H 'Content-Type: application/json' -H 'Accept: application/json' -H 'X-Version: v2' -d '{"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"}}'

ENDPOINTS