Creating price for second product

POST {{api-url}}/price/{{tenant}}/prices

Creates a new price for a product.
The endpoint is available in the following versions: v1 and v2.
The second version of the endpoint introduces new fields in the payload. Moreover, some fields known from version v1 become deprecated. In order to check details of changes for version v2 check data schema of the request body.

Required scopes

  • price.price_manage

Request Body

{"itemId"=>{"itemType"=>"PRODUCT", "id"=>"{{productId2}}"}, "itemYrn"=>"{{productYrn2}}", "currency"=>"EUR", "location"=>{"countryCode"=>"DE"}, "salePrice"=>{"discountRate"=>0, "description"=>""}, "restrictions"=>{"validity"=>{"from"=>"2020-08-31T00:07:42.518Z", "to"=>"2026-08-31T00:07:42.518Z"}, "siteCodes"=>["main"]}, "tierValues"=>[{"priceValue"=>10, "id"=>"{{tierBasic}}"}], "priceModelId"=>"{{priceModelId}}"}

HEADERS

KeyDatatypeRequiredDescription
X-VersionstringThe version of the schema that should be used in the request/response payload
Content-Typestring
Acceptstring