Get all offer items for an offer

GET /company/offers/@id/offer-items

Get all offer items for an offer

Request

Authentication

This endpoint requires authentication.

Header Value
Authorization Set the value to Bearer + + access_token

Example request 1

GET /company/offers/@id/offer-items HTTP/1.1
Host: api.bakeronline.be
X-VERSION: 1.9.0
Accept-Language: en-US,en;q=0.5

Response

Array of OfferItem: [OfferItem]

OfferItem

Specifies where an offer should get applied. An offer can be applied to a category, a product or a product price.

Field Type Description
applies_to String String enumarion of 'category', 'product', 'product-price'
item_id Int ID of the category, product or product price where the offer applies to.
type String String enumarion of 'percentage', 'volume'
id Int An integer value
percentage Int? Optional. Nullable. Only required when "type" is percentage. e.g. 10,53% = 1053
minimum_amount Int? Optional. Nullable. Minimum amount required for the offer to apply.
free_amount Int? Optional. Nullable. Only required when "type" is volume.

Example response 1

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

[
    {
        "applies_to": "category",
        "item_id": 16,
        "type": "percentage",
        "id": 14,
        "percentage": 10,
        "minimum_amount": 15,
        "free_amount": 16
    },
    {
        "applies_to": "category",
        "item_id": 19,
        "type": "percentage",
        "id": 15,
        "percentage": 15,
        "minimum_amount": 17,
        "free_amount": 14
    },
    {
        "applies_to": "category",
        "item_id": 12,
        "type": "percentage",
        "id": 17,
        "percentage": 12,
        "minimum_amount": 17,
        "free_amount": 12
    }
]
1.9.0 stable