- CategoryAPI
- ProductAPI
- Prices&StocksAPI
- Promos
- PricingStrategyAPI
- WarehouseAPI
- PolygonAPI
- FBS&rFBSMarks
- FBS
- ReturnsAPI
- CancellationAPI
- ChatAPI
- ReportAPI
- AnalyticsAPI
- FinanceAPI
- DeliveryFBS
- DeliveryrFBS
- Pass
- RFBSReturnsAPI
- BetaMethod
- Examples
- ReviewAPI
聊天清单
POST
/v2/chat/list
ChatAPI
请求参数
Header 参数
Client-Id
string
用户识别号。
Api-Key
string
API-密钥。
Body 参数application/json
filter
object (object)
按聊天过滤。
chat_status
string
可选
All
— 所有聊天。Opened
— 开放的聊天。Closed
— 不开放的聊天。All
。unread_only
boolean
可选
limit
integer <int64>
必需
offset
integer <int64>
可选
offset=10
,回答将从找到的第11个元素开始。示例
{
"filter": {
"chat_status": "Opened",
"unread_only": true
},
"limit": 1,
"offset": 0
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api-seller.ozon.ru/v2/chat/list' \
--header 'Client-Id;' \
--header 'Api-Key;' \
--header 'Content-Type: application/json' \
--data-raw '{
"filter": {
"chat_status": "Opened",
"unread_only": true
},
"limit": 1,
"offset": 0
}'
返回响应
🟢200成功
application/json
Body
chats
array[object (object) {7}]
聊天数据。
chat_id
string
聊天识别码。
chat_status
string
可选
All
— 所有聊天。Opened
— 开放的聊天。Closed
— 不开放的聊天。chat_type
string
可选
Seller_Support
— 与帮助中心聊天。Buyer_Sueller
— 与买家聊天。created_at
string <date-time>
聊天的创建日期。
first_unread_message_id
integer <uint64>
可选
last_message_id
integer <uint64>
可选
unread_count
integer <int64>
可选
total_chats_count
integer <int64>
聊天总数。
total_unread_count
integer <int64>
未读信息总数。
示例
{
"chats": [
{
"chat": {
"created_at": "2022-07-22T08:07:19.581Z",
"chat_id": "5e767w03-b400-4y1b-a841-75319ca8a5c8",
"chat_status": "Opened",
"chat_type": "Seller_Support"
},
"first_unread_message_id": "3000000000118021931",
"last_message_id": "30000000001280042740",
"unread_count": 1
}
],
"total_chats_count": 25,
"total_unread_count": 5
}
🟠400请求有误
🟠403禁止访问
🟠404记录不存在
🟠409409
🔴500服务器错误
修改于 2025-06-10 08:30:17