Creating price
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
Body
PARAM
Key | Datatype | Required | Description |
HEADERS
Key | Datatype | Required | Description |
X-Version
|
string | The version of the schema that should be used in the request/response payload | |
Content-Type
|
string | ||
Accept
|
string |
RESPONSES
status Created
{
"id": "53ac81fd0cce8b26b36f3492",
"yrn": "urn:yaas:hybris:price:price:puma;53ac81fd0cce8b26b36f3492"
} |