Order Comment API
Comments are an integral part of the Bolt restaurant orders API.
Each comment instance represents additional information or notes recorded for a specific order in the system.
A Comment model has the following fields:
Field | Description |
---|---|
bolt_comment | The content of the comment to be associated with the specific order. |
Request
The request for adding a comment to an order requires the following fields:
Field | Type | Required | Description |
---|---|---|---|
bolt_comment | string | Yes | The content of the comment to be added to the order. |
Endpoint
The Order Bolt Comment API
allows administrators to add or update comments for a specific order.
Endpoint URL
POST /api/v2/order/{id}/comment
Description
This endpoint is used to add or update a comment for an order identified by its unique id
.
Request Method
POST
URL Parameters
Parameter | Type | Required | Description |
---|---|---|---|
id | integer | Yes | The unique identifier of the order. |
Example Request
URL
POST /api/v2/order/12345/comment
JSON Body
Response
The Order Comment API
returns the following responses based on the result of the request:
Successful Response
Field | Type | Description |
---|---|---|
success | bool | Indicates whether the operation was successful. |
Example Response
Error Response
Field | Type | Description |
---|---|---|
message | string | A message indicating the validation failure. |
errors | object | Details of the fields that failed validation. |
Not Found Response
Field | Type | Description |
---|---|---|
success | bool | Indicates whether the operation was successful. |
message | string | A message indicating that the order was not found. |