GET /orders/@id/messages
This endpoint requires authentication.
Header | Value |
---|---|
Authorization | Set the value to Bearer + + access_token |
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 |
GET /orders/13/messages HTTP/1.1
Host: api.bakeronline.be
X-VERSION: 1.8.0
Accept-Language: en-US,en;q=0.5
Array of 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 |
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"
}
]