Get information about one product price

GET /company/prices/@id

Request

Authentication

This endpoint requires authentication.

Header Value
Authorization Set the value to Bearer + + access_token

URL parameters

Replace the @ keywords in the URL with their corresponding value.

A dictionary with fields

Field Type Description
id Int The ID of the product price you want to return

Example request 1 Retrieve prices

GET /company/prices/222 HTTP/1.1
Host: api.bakeronline.be
Authorization: Bearer 24dbd8b308db5bdbd45a09cd0b943cd31458036c9cc06bea11304de5c08637b03ca72056da8895d9fc8e22a50c10e8b847a132a636e50acd949d43cd77f0c390afbd02d4c531a9ffad5ef420607671e5a26ed66effb43ef5fc76a1448403876fd18388c0
X-VERSION: 1.5.0
Accept-Language: en-US,en;q=0.5

Response

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

Example response 1 Retrieve prices

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Content-Length: 153

{
    "id": 222,
    "name": {
        "nl": "5 persons"
    },
    "price": 8231,
    "order": 1,
    "price_look_up_code": "6323",
    "code": "7435"
}
Version update available Please adjust your integration to the latest stable version (1.5.1)
1.5.0 stable