Order Messages
Get Order Messages
GET https://api.bigcommerce.com/stores/{store_hash}/v2/orders/{order_id}/messagesRequest
Gets the messages associated with an order.
Authentication
- X-Auth-Token in header
Parameters
- store_hash in path - string
- Accept in header with default of application/json - stringrequiredThe MIME type of the response body.
- order_id in path - integerrequiredID of the order.
- min_id in query - integerThe minimum order ID.
- max_id in query - integerThe maximum order ID.
- customer_id in query - integerCustomer ID.
- min_date_created in query - string
Minimum date the order was created in RFC-2822 or ISO-8601.
RFC-2822:
Thu, 20 Apr 2017 11:32:00 -0400
ISO-8601:
2017-04-20T11:32:00.000-04:00
- max_date_created in query - string
Maximum date the order was created in RFC-2822 or ISO-8601.
RFC-2822:
Thu, 20 Apr 2017 11:32:00 -0400
ISO-8601:
2017-04-20T11:32:00.000-04:00
- is_flagged in query - booleanWhether the message is flagged.
- status in query - stringStatus of the order message.
Allowed: read | unread
- page in query with default of 1 - numberThe page to return in the response.
- limit in query with default of 50 - numberNumber of results to return.
example
curl --request GET \
--url 'https://api.bigcommerce.com/stores/[store_hash]/v2/orders/[order_id]/messages' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'X-Auth-Token: {{token}}'
Response
Body
array | application/json
idinteger
order_idinteger
staff_idinteger
customer_idinteger
typestring
subjectstring
statusstring
is_flaggedboolean
date_createdstring
customerobject
response
[
{
"id": 2,
"order_id": 181,
"staff_id": 1,
"customer_id": 11,
"type": "admin",
"subject": "Re: Order #181",
"message": "Thank you again!",
"status": "unread",
"is_flagged": false,
"date_created": "Wed, 26 Sep 2018 15:52:03 +0000",
"customer": {}
}
]
Did you find what you were looking for?