Create a message for an order

POST /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 The order where to create a new message

Body

Pass the following properties via application/json or form encoding in the body of the request.

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 request 1

POST /orders/14/messages HTTP/1.1
Host: api.bakeronline.be
X-VERSION: 1.9.0
Accept-Language: en-US,en;q=0.5
Content-Type: application/json
Content-Length: 90
{
    "message": "...",
    "sender": "customer",
    "timestamp": "2019-01-31 12:00:00"
}

Response

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

{
    "message": "...",
    "sender": "customer",
    "timestamp": "2019-01-31 12:00:00"
}
1.9.0 stable