POST /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 | The order where to create a new message |
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 |
POST /orders/12/messages HTTP/1.1
Host: api.bakeronline.be
X-VERSION: 1.8.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"
}
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: 90
{
"message": "...",
"sender": "customer",
"timestamp": "2019-01-31 12:00:00"
}