v1

latestOpenAPI 3.0.02026-07-26318168886.7 KB
Conversations

Create Shop Message

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

post/conversations/message

Request body

textstring

The text of the message<br>訊息內容

media_idstring

The id of the media<br>訊息媒體id

sender_idstring

The message sender ID<br>訊息發送者ID

sender_emailstring

The message sender email<br>訊息發送者email

recipient_idstring

The message recipient ID<br>訊息接收者ID

Example request

{
  "text": "Your order will be delivered within a day.",
  "media_id": "612890703dabaa0045eae464",
  "sender_id": "612890703dabaa0045eae464",
  "recipient_id": "6108c0f243cee400443faf4f"
}

Response

Created

idstring

Conversation ID<br>訊息 ID

type'shop_messages' | 'order_messages'

Conversation Type<br>訊息平台

customer_idstring

Customer ID<br>客戶 ID

Example response

{
  "id": "622090c66775a37b9fa60799",
  "customer_id": "622090c67895b5731f2c53c5",
  "last_message": {
    "id": "600ac08191f6530044eaad8a",
    "sender_id": "622090c67895b5731f2c53c5"
  }
}