Get all the product prices that belong to a product

GET /company/products/@id/prices

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 Get all product prices for the given product

Example request 1 Retrieve prices

GET /company/products/423/prices HTTP/1.1
Host: api.bakeronline.be
Authorization: Bearer 476185b6159dbbd7ee700fdcc64cc215a72a83eb73b89af8928fa4fd23817c7b2d37840e24d8b082a3773bff28042b29f6c933214431fe186fcb1758d2065a09426e065ffceb882ce68c899e2a374158c7247fb4c03694ebcdf87ce525ff9ccd7e205ce5
X-VERSION: 1.5.0
Accept-Language: en-US,en;q=0.5

Response

Array of company.ProductPrice: [company.ProductPrice]

company.ProductPrice

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: 976

[
    {
        "id": 244,
        "name": {
            "nl": "2 persons"
        },
        "price": 8709,
        "order": 1,
        "price_look_up_code": "2851",
        "code": "8229"
    },
    {
        "id": 245,
        "name": {
            "nl": "8 persons"
        },
        "price": 8223,
        "order": 2,
        "price_look_up_code": "2857",
        "code": "2534"
    },
    {
        "id": 246,
        "name": {
            "nl": "2 persons"
        },
        "price": 4290,
        "order": 3,
        "price_look_up_code": "688",
        "code": "6409"
    },
    {
        "id": 247,
        "name": {
            "nl": "6 persons"
        },
        "price": 8106,
        "order": 4,
        "price_look_up_code": "6694",
        "code": "5814"
    },
    {
        "id": 248,
        "name": {
            "nl": "8 persons"
        },
        "price": 4202,
        "order": 5,
        "price_look_up_code": "9980",
        "code": "4756"
    }
]
1.5.0 stable