POST /company/products/@id/prices
This endpoint requires authentication.
Header | Value |
---|---|
Authorization | Set the value to Bearer + + access_token |
Replace the @ keywords in the URL with their corresponding value.
A dictionary with fields
Field | Type | Description |
---|---|---|
id | Int | Product ID. Create a product price for this product |
Pass the following properties via application/json or form encoding in the body of the request.
Field | Type | Description |
---|---|---|
name | [Language: String] | Name of the product price (translated) |
price | UInt | Price of this product price (cents) |
order | Int | The product prices of a product are sorted on the order property (descending). If you specify the same order for multiple product prices, the id of the product price is used. Setting the same order for all product prices is discouraged. |
price_look_up_code | String? | Optional. Nullable. A String value |
code | String? | Optional. Nullable. A custom code. You can set this to your own code and use this field to map your prices to Bakeronline prices |
POST /company/products/19/prices HTTP/1.1
Host: api.bakeronline.be
X-VERSION: 1.5.0
Accept-Language: en-US,en;q=0.5
Content-Type: application/json
Content-Length: 171
{
"name": {
"nl": "...",
"en": "...",
"fr": "..."
},
"price": 13,
"order": 14,
"price_look_up_code": "...",
"code": "..."
}
Field | Type | Description |
---|---|---|
name | [Language: String] | Name of the product price (translated) |
price | UInt | Price of this product price (cents) |
id | Int | Id of the product price |
order | Int | The product prices of a product are sorted on the order property (descending). If you specify the same order for multiple product prices, the id of the product price is used. Setting the same order for all product prices is discouraged. |
price_look_up_code | String? | Optional. Nullable. A String value |
code | String? | Optional. Nullable. A custom code. You can set this to your own code and use this field to map your prices to Bakeronline prices |
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Content-Length: 185
{
"name": {
"nl": "...",
"en": "...",
"fr": "..."
},
"price": 19,
"id": 15,
"order": 14,
"price_look_up_code": "...",
"code": "..."
}