文档
测试

发送文本

POST
https://seller.xiapi.shopee.cn/webchat/api/v1.2/messages?_uid=[UID]&_v=4.7.0

接口描述

发送文本

请求头

参数名
类型
描述
必填
authorization
string
必填
x-s
string
b8ef9c570e0ec966dd02070680ef39cf
必填
x-v
string
4
必填
user-agent
Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36
必填

请求参数

参数名
类型
描述
必填
request_id
string
示例:46aa9165-cdad-4547-8f84-b553627321ba
必填
to_id
int
示例:231156449
必填
type
string
示例:text
必填
content
object
数据字典
必填
text
string
示例:Hello
必填
chat_send_option
object
数据字典
必填
force_send_cancel_order_warning
boolean
示例:false
必填
comply_cancel_order_warning
boolean
示例:false
必填

说明 / 示例

{ "id": "2057057076790001849", "request_id": "46aa9165-cdad-4547-8f84-b553627321ba", "to_id": 231156449, "type": "text", "content": { "text": "Hello", "product_ids": null }, "conversation_id": "650908968319134433", "created_timestamp": 1608889708, "created_at": "2020-12-25T17:48:28+08:00", "source_content": {}, "source_type": "", "message_option": 0 } x-s: str = '/messages?_uid=[UID]&_v=4.7.05702b6f3-62a3-44d2-abe8-fece100a8bf4' MD5加密 md5(str) X-V:4