流程步骤:
步骤1.商户进入管理后台-数据中心-询盘管理-询盘设置-设置询盘同步到外部系统-使用Webhooks对接,填写webhook url,创建API密钥。
步骤2.当系统收到新的询盘后,会通过配置的webhook url发起 application/x-www-form-urlencoded POST请求,推送询盘数据。
API接口说明
url: 用户配置的webhook url
参数说明
| 变量名 | 类型 | 必填 | 示例值 | 描述 |
| app_key | string(32) | 是 | ddb4851bdc3f7499beeed1a381fb0d13 | 创建API密钥返回的app key |
| data | string | 是 | 询盘数据,JSON字符串,详见'https://www.lifisher.com/helpDetail/146.html'返回参数说明 | |
| nonce_str | string(32) | 是 | ibuaiVcKdpRxkhJA | 随机字符串,长度要求在32位以内 |
| sign | string(32) | 是 | D676748F251C3A28C16D4B95FBB4ED33 | 签名,通过签名算法计算得出的签名值,详见'https://www.lifisher.com/helpDetail/146.html'签名算法 |
data数据示例如下:
{
"id": 15926,
"client_id": 1,
"inquiry_id": 15926,
"contacts": "11 22",
"phone": "13798190341",
"company_name": "",
"content": "sdfsdf",
"create_time": "2025-07-22 20:53:09",
"update_time": "2025-07-22 20:53:09",
"site_id": 1,
"visitor_code": "1735111622528274",
"member_id": 4296,
"sync_platform_id": "",
"language_code": "en",
"type": 1,
"email": "291740904@qq.com",
"ip": "192.168.19.95",
"ip_country": "未知",
"client_account_ids": "",
"page_url": "http://localhost:1901/?url=oybmngpz.dweyes.cn&design=1&language_code=en",
"referrer": "http://localhost:1902/",
"source": 7,
"status": 0,
"inquiry_group_id": 0,
"customer_type": 0,
"is_read": 0,
"is_junk": 0,
"junk_rule": "",
"junk_reason": "",
"junk_time": 0,
"remark": "",
"source_campaign": "",
"keyword": "",
"is_delete": 0,
"confidence": "0.00000000",
"inquiry_email_sending_record_id": 0,
"opearing_system": "Windows",
"access_device": "PC",
"screen": "1920x1080",
"brower": "Chrome",
"custom_config": []
}
响应说明:
1、接收方收到请求后,处理完成后,需要返回 'ok' 作为响应内容,表示接收成功
2、如果请求失败,系统会间隔4、10、10、60、120分钟依次进行重试,如果都重试不成功,系统将不再发起重试