Get all the messages that belong to an order

GET /orders/@id/messages

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 Return all messages of the given order

Example request 1

GET /orders/13/messages HTTP/1.1
Host: api.bakeronline.be
X-VERSION: 1.8.0
Accept-Language: en-US,en;q=0.5

Response

Array of OrderMessage: [OrderMessage]

OrderMessage

Field Type Description
message String A String value
sender String Optional. String enumarion of 'customer', 'company'
timestamp DateTime Optional. Date and time in YYYY-MM-DD HH:MM:SS format

Example response 1

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

[
    {
        "message": "...",
        "sender": "customer",
        "timestamp": "2019-01-31 12:00:00"
    },
    {
        "message": "...",
        "sender": "customer",
        "timestamp": "2019-01-31 12:00:00"
    },
    {
        "message": "...",
        "sender": "customer",
        "timestamp": "2019-01-31 12:00:00"
    }
]
Version update available Please adjust your integration to the latest stable version (1.9.0)
1.8.0 stable