- CategoryAPI
- ProductAPI
- Prices&StocksAPI
- Promos
- PricingStrategyAPI
- WarehouseAPI
- PolygonAPI
- FBS&rFBSMarks
- FBS
- ReturnsAPI
- CancellationAPI
- ChatAPI
- ReportAPI
- AnalyticsAPI
- FinanceAPI
将信息标记为已读
POST
/v2/chat/read
ChatAPI
请求参数
Header 参数
Client-Id
string
用户识别号。
示例值:
{{Client-Id}}
Api-Key
string
API-密钥。
示例值:
{{Api-Key}}
Body 参数application/json
chat_id
string
聊天识别码。
from_message_id
integer <uint64>
信息识别码。
示例
{
"chat_id": "99feb3fc-a474-469f-95d5-268b470cc607",
"from_message_id": 3000000000118032000
}
示例代码
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/read' \
--header 'Client-Id: ' \
--header 'Api-Key: ' \
--header 'Content-Type: application/json' \
--data-raw '{
"chat_id": "99feb3fc-a474-469f-95d5-268b470cc607",
"from_message_id": 3000000000118032000
}'
返回响应
🟢200已成功
application/json
Body
unread_count
integer <int64>
可选
示例
{
"unread_count": 0
}
🟠400参数有误
🟠403拒绝访问
🟠404未找到答复
🟠409请求冲突
🔴500内部服务器出错
修改于 2023-11-03 06:04:11