---
title: "Create Shop Message"
method: POST
path: "/conversations/message"
tags: ["Conversations"]
---

# Create Shop Message

`POST /conversations/message`

To create shop messages<br>創建商店訊息

## Request body

- object
  - `text` string — The text of the message<br>訊息內容
  - `media_id` string — The id of the media<br>訊息媒體id
  - `sender_id` string — The message sender ID<br>訊息發送者ID
  - `sender_email` string — The message sender email<br>訊息發送者email
  - `recipient_id` string — The message recipient ID<br>訊息接收者ID
  - `ref_data` object
    - `path` string
    - `full_path` string

## Response `201`

Created

- ShopConversation
  - `id` string — Conversation ID<br>訊息 ID
  - `type` 'shop_messages' | 'order_messages' — Conversation Type<br>訊息平台
  - `customer_id` string — Customer ID<br>客戶 ID
  - `last_message` object
    - `id` string — Conversation ID<br>對話 ID
    - `sender_id` string — Sender ID<br>留言發送方 ID
    - `sender_type` 'Merchant' | 'User' — Sender Type<br>留言發送方
    - `created_at` string — Created At<br>建立時間
    - `value` string — Content<br>對話內容
    - `type` 'text' | 'image' — Conversation Type<br>對話類別

## Other responses

- `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/revisions/1675ac12cde7/schema)
