-
Notifications
You must be signed in to change notification settings - Fork 6
Zalo webhook
zjc1750514326 edited this page Mar 26, 2025
·
20 revisions
对提供的webhook地址,进行Zalo业务相关的推送信息(目前支持推送消息回执)
下发Zalo消息后,对消息状态进行回执推送
- URL:
dr_webhook
- Method:
POST
- Content-Type:
application/json
- body 参数:
参数名 | 类型 | 说明 |
---|---|---|
status | String | 回执状态(success,failed,delivered,journey_acknowledged,journey_time_out) |
requestId | String | 消息发送请求标识 |
code | Number | 状态码(状态码说明) |
message | String | 状态码信息 |
sendTime | String | 发送时间 |
cost | Object | 费用信息(success,delivered,journey_acknowledged,journey_time_out显示) |
ext | String | 透传字段,该字段为发送接口中的非必填字段,填写后在回执success,failed,delivered,journey_acknowledged中会原样返回 |
- cost json obj:
参数名 | 类型 | 说明 |
---|---|---|
currency | String | 币种 |
originalPrice | Number | 原币价格 |
{
"status": "success",
"requestId": "zalomid.a941ccf8dd374dafxxxxxxacbe7a6ea5",
"code": 0,
"message": "Successfully sent.",
"sendTime": "2024-05-01 10:12:39",
"ext": "ext info",
"cost": {
"currency": "USD",
"originalPrice": 4.1234
},
"zaloRes": {
"sysMsg": "Successfully sent.",
"cusMsg": "Successfully sent.",
"error": 0,
"message": "Success",
"data": {
"sent_time": "1714529559833",
"sending_mode": "1",
"msg_id": "5c4ee6axxxxxx9692026",
"quota": {
"remainingQuota": "4999",
"dailyQuota": "5000"
}
}
}
}
{
"status": "failed",
"requestId": "zalomid.68d9cc28ba9546f797exxxxxx9333e23",
"code": 17004,
"message": "Zalo send error(Zalo account not existed)",
"sendTime": "2024-10-30 10:34:40",
"ext": "ext info",
"zaloRes": {
"sysMsg": "Zalo send error(Zalo account not existed)",
"cusMsg": "Zalo send error(Zalo account not existed)",
"error": -118,
"message": "Zalo account not existed",
"data": null
}
}
{
"status": "delivered",
"requestId": "zalomid.a941ccf8dd374dafxxxxxxacbe7a6ea5",
"code": 17003,
"message": "Zalo message has delivered",
"sendTime": "2023-07-13 15:12:11",
"ext": "ext info"
}
{
"status": "journey_acknowledged",
"requestId": "zalomid.a941ccf8dd374dafxxxxxxacbe7a6ea5",
"code": 17006,
"message": "The journey begins to be charged",
"oaId": "30418xxxxxx05770721",
"journeyId": "126052xxxx58967296",
"appId": "33101xxxx80048",
"timestamp": "1720602861913",
"ext": "ext info",
"cost": {
"currency": "EUR",
"originalPrice": 130
}
}
{
"status": "journey_time_out",
"code": 17007,
"message": "Journey expires and has never been used",
"journeyId": "126051xxxxxx4045952",
"appId": "33101xxxxxx45180048",
"oaId": "30418xxxxxx05770721",
"timestamp": "1721206920581"
}
code | message | 解决办法 |
---|---|---|
0 | Successfully sent. | 消息提交成功提交zalo |
1100 | Customer does not exist / Status is unavailable | 账号状态异常,联系业务人员处理账号问题 |
1102 | Insufficient balance | 账号余额不足,请联系业务人员充值 |
9000 | Request parameter error | 参数缺失,请检查必须的参数 |
9001 | System business error | 系统业务错误,请联系技术人员排除问题 |
9002 | Phone number error | 非法号码,请检查号码正确性 |
9003 | Customer APP does not exist / Status is unavailable | 应用状态异常,联系业务人员处理云平台应用创建/禁用问题 |
9004 | Customer APP does not have quotation | 应用报价缺失,联系业务人员处理应用报价问题 |
9005 | Missing customer APP routes | 应用路由缺失,请联系技术人员排查路由 |
9999 | Unknown error | 请联系技术人员排除问题 |
17003 | Zalo message has delivered | 消息已送达 |
17004 | Zalo send error | Zalo官方发送失败错误信息 |
17005 | Zalo engine api timeout | Zalo发送超时 |
17006 | The journey begins to be charged | Zalo Journey Token 计费确认 |
简介
短信
语音
- 上传语音录音文件
- 上传语音录音文件_v1
- 已上传录音文件查询
- 发送语音群呼
- 发送语音通知
- 发送语音验证码
- 语音验证码回填上报
- 语音回执回调
- 语音记录查询
- 上传语音录音文件-旧版本已废弃
- 发送语音群呼‐旧版已废弃
- 发送语音通知‐旧版已废弃
- 发送语音验证码‐旧版已废弃
- 语音回执回调‐旧版已废弃
云呼叫中心(NXLink)
- Web SDK
- Iframe集成
- 手动拨号通话记录查询
- 通过orderId查询
- 手动拨号记录回调
- 坐席信息查询
- 坐席状态查询
- 坐席组查询
- 坐席可用主叫查询
- 坐席组成员查询
- 坐席组更新成员
- 坐席效率统计
- 创建AICC外呼任务
- Webhook-手动外呼
云呼叫中心(AI自动外呼)
- Callbot API概述
- Callbot API鉴权
- Callbot 接口探活
- 创建自动拨号任务
- 批量添加拨打名单
- 创建自动拨号任务并添加拨打名单
- 任务控制(启动/暂停)
- 更新任务
- 获取通话列表
- 获取任务列表
- 获取拨打订单列表
- 停止订单拨打
- 查询订单维度拨打详情
- 通话维度回调
- 订单维度拨打回调
- 任务状态回调
- 批次-导出最新批次数据
- 批次-导入最新批次数据
Flash Call
短链
邮件验证码
DID号码
- DID号码进行短信下行V2
- DID短信结果回调(加签)
- DID短信结果回调(无加签)
- DID号码短信记录查询(新接口,未启用)
- DID号码通话记录查询
- DID呼出并转接到Amazon坐席
- DID呼出前与Connect号码绑定
通用
号码检测
- 发送消息
- webhook
- 标记入站消息已读
- 上传媒体文件
- 获取媒体文件
- 删除媒体文件
- 查询号码信息
- 查询消息模板
- 创建消息模板
- 编辑消息模板
- 删除消息模板
- 上传模板示例文件
- 嵌入式页面登录
- 创建客户应用
- 客户应用的号码列表
- 获取验证码
- 核验验证码
- flows-创建流
- flows-更新流
- flows-根据流ID查询流信息
- flows-根据whatsapp号码查询流列表
- flows-根据流ID查询流预览地址
- flows-查询流JSON
- flows-发布流
- flows-删除流草稿
- flows-废弃已发布的流
- flows-更新流JSON
- flows-上传业务公钥
- ads-根据公共主页ID查询绑定的数据集列表
- ads-根据数据集ID上报CAPI广告数据
Viber
Zalo ZNS
Super Message API
隐私号(旧)
PNS
坐席(旧版)
- NXphone PC 使用说明
- NXphone Android 使用说明
- NXphone Android SDK 接入文档
- 呼叫挂断原因解释
- 话单CDR查询接口
- 话单CDR回调接口说明(V1.0)
- 坐席API调用接口说明(V1.0)
- 根据orderid查询话单CDR接口
- 坐席系统sip链接调用方式(推荐)
- 号码脱敏处理
- 修改话机密码接口
- 查询审批单
- 查询话机
- WebRTC SDK使用说明
AI Agent(对外api)