Logo
Emporix Digital Commerce Platform API Documentation

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

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 
Content-Type
string
Accept
string
X-Version
string
Content-Language
string




RESPONSES

status





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

ENDPOINTS