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
Key | Datatype | Required | Description |
---|---|---|---|
siteCode | string | ||
hybris-client | string | ||
hybris-client-id | string | ||
hybris-external-path | string | ||
hybris-external-url | string | ||
hybris-user | string | ||
saas-token | string | ||
hybris-user-id | string | ||
hybris-scopes | string | ||
hybris-request-id | string | ||
hybris-hop | number | ||
hybris-org | string | ||
hybris-target-url | string | ||
Authorization | string | ||
Content-Type | string | ||
X-Version | string |