add prices for Product

POST {{api_url}}/price/{{tenant}}/prices/

Create new price for a product. The caller must have the hybris.price_manage scope assigned.

Parameters:

tenant: Stands for the project that requests this resource. Must match the project that is associated with the access token in the Authorization header.

Request Body

{"itemId"=>{"itemType"=>"PRODUCT", "id"=>"{{product_id_1}}"}, "restrictions"=>{"siteCodes"=>["main"]}, "currency"=>"EUR", "location"=>{"countryCode"=>"DE"}, "salePrice"=>{"discountAmount"=>2}, "tierValues"=>[{"priceValue"=>2.75}]}

HEADERS

KeyDatatypeRequiredDescription
siteCodestring
hybris-clientstring
hybris-client-idstring
hybris-external-pathstring
hybris-external-urlstring
hybris-userstring
saas-tokenstring
hybris-user-idstring
hybris-scopesstring
hybris-request-idstring
hybris-hopnumber
hybris-orgstring
hybris-target-urlstring
Authorizationstring
Content-Typestring
X-Versionstring