# OR42 - Post a message on an order (deprecated) Maximum of 1000 messages on a threadCall FrequencyRecommended usage: At each new message posted on an orderMaximum usage: At each new message posted on an orderRead MoreMore context Endpoint: POST /api/orders/{order_id}/messages ## Path parameters: - `order_id` (string, required) Order identifier ## Query parameters: - `shop_id` (integer) Use this parameter when your user has access to several shops. If not specified, the shop_id from your default shop will be used. ## Request fields (application/json): - `body` (string, required) Body of the message - `document_ids` (array) Message's attachments. List of document ids already linked to the order. Use OR74 to upload new documents and OR72 to retrieve their ids. NB: If one of those document_id have already been linked to a previous message, it will be ignored. - `subject` (string, required) Subject of the message - `to_customer` (boolean, required) Boolean to indicate the message will be sent to the customer associated with the order. - `to_operator` (boolean, required) Boolean to indicate the message will be sent to the operator. - `to_shop` (boolean, required) Boolean to indicate the message will be sent to the shop associated with the order ## Response 201 fields (application/json): - `id` (integer, required) Identifier of the message created