---
title: "Create Order Message"
method: POST
path: "/orders/{id}/messages"
tags: ["Conversations"]
---

# Create Order Message

`POST /orders/{id}/messages`

To create an order reply<br>創建訂單留言

## Path parameters

- `id` string, required

## Request body

- object
  - `text` string — The message of the comment<br>該訂單通訊的訊息內容
  - `media_id` string — The id of the media<br>該訂單通訊的媒體id
  - `is_private` boolean — The type of the comment. <br> If true, the message can only be viewed by the shop admin.<br> If false, the message can also be viewed by the customer.<br> 訂單通訊的類型。若為true，則該訂單通訊只能被網店管理查看。<br> 若為false，則顧客也可查看。
  - `send_by` 'merchant' | 'customer' — The message sender<br>該訂單通訊的發送者
  - `trackable_type` string
  - `trackable_id` string
  - `custom_data` object

## Response `201`

Created

- OrderComment
  - `id` string — ID of the comment<br>訂單通訊的id
  - `created_at` string — Created Time<br>創建時間
  - `updated_at` string — Updated Time<br>更新時間
  - `text` string — The message of the comment<br>該訂單通訊的訊息內容
  - `owner_id` string — The owner id of the comment<br>該訂單通訊發出者的id
  - `owner_type` string — The owner id of the comment<br>該訂單通訊發出者的類型
  - `trackable_id` string
  - `trackable_type` string
  - `is_private` boolean — The type of the comment. If true, the message can only be viewed by the shop admin.<br> If false, the message can also be viewed by the customer.<br> 訂單通訊的類型。若為true，則該訂單通訊只能被網店管理查看。<br> 若為false，則顧客也可查看。
  - `media` object — Media Data<br>媒體(照片)資訊
    - `id` string — Media ID
    - `alt_translations` object — Content to display on ALT attribute<br>在圖片ALT上展示的內容
      - `en` string — Merchant defined English name<br>店家定義英文名稱
      - `zh-hant` string — Merchant defined Traditional Chinese name<br>店家定義繁體中文名稱
      - `zh-cn` string — Merchant defined Simplified Chinese name<br>店家定義簡體中文名稱
      - `vi` string — Merchant defined Vietnamese name<br>店家定義越南文名稱
      - `ms` string — Merchant defined Malaysian name<br>店家定義馬來西亞文名稱
      - `ja` string — Merchant defined Japanese name<br>店家定義日文名稱
      - `th` string — Merchant defined Thai name<br>店家定義泰文名稱
      - `id` string — Merchant defined Indian name<br>店家定義印度文名稱
      - `de` string — Merchant defined Deutsch name<br>店家定義德文名稱
      - `fr` string — Merchant defined France name<br>店家定義法文名稱
    - `images` object — Object contains url of image in different dimensions<br>包含不同大小圖片的連絡

## Other responses

- `404` — Not Found
- `422` — Unprocessable Entity
- `500` — Server error

---

[API](https://skmtc.net/shoplineapp/apis/shopline-open-api.md) · [All operations](https://skmtc.net/shoplineapp/apis/shopline-open-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/shoplineapp/shopline-open-api/versions/1675ac12cde7/schema)
