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

GET /company/products/18/prices HTTP/1.1
Host: api.bakeronline.be
X-VERSION: 0.2.2
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.

Example response 1

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

[
    {
        "name": {
            "nl": "...",
            "en": "...",
            "fr": "..."
        },
        "price": 18,
        "id": 16,
        "order": 19
    },
    {
        "name": {
            "nl": "...",
            "en": "...",
            "fr": "..."
        },
        "price": 14,
        "id": 17,
        "order": 14
    },
    {
        "name": {
            "nl": "...",
            "en": "...",
            "fr": "..."
        },
        "price": 18,
        "id": 11,
        "order": 13
    }
]
Version update available Please adjust your integration to the latest stable version (1.9.0)
0.2.2 stable