B2B询盘-详细
获取单条 B2B 店铺询盘的详细信息,包含询盘基础字段、关联商品数据以及顾客浏览器/地域等来源信息。
接口信息
- 接口地址:
/apimanager666/api/skill/shopb2b/info
- 请求方式:
GET
- 使用流程:从 B2B询盘-列表 获取
id → 调用本接口查看详情。
相关接口
认证
请求头需携带 skill-access-token:
| 请求头 |
必填 |
说明 |
skill-access-token |
是 |
技能访问令牌 |
Content-Type |
是 |
固定为 application/json |
请求参数
以 GET Query 形式传递。
| 参数 |
类型 |
必填 |
说明 |
id |
int |
是 |
询盘记录 ID |
请求示例
cURL
curl --location --request GET 'http://birox.fecmall.cn/apimanager666/api/skill/shopb2b/info?id=216' \
--header 'skill-access-token: 24d165ae6d71ca48b0365e25a0d23f79d043e0c1d41b5bada52d54e7ef92a073' \
--header 'Content-Type: application/json' \
--data-raw ''
返回结果
{
"code": 200,
"data": {
"info": {
"id": 216,
"shop_id": 346,
"status": 1,
"customer_id": 592,
"product_ids": [
"6984"
],
"name": "Terry zhao",
"email": "fecify@126.com",
"phone": "8632132",
"message": "5464565",
"remark": "",
"created_at": "2026-07-02 12:25:13",
"updated_at": "2026-07-02 12:25:13",
"is_deleted": 2,
"deleted_at": 0,
"products": [
{
"id": 6984,
"shop_id": 346,
"handle": "denim-bag-with-fringing-2jgj12k0",
"title": "Denim bag with fringing",
"type": 2,
"created_at": "2026-05-20 13:17:14",
"updated_at": "2026-05-20 13:17:14",
"status": 1,
"qty": 999,
"image": {
"id": 40687,
"product_id": 6984,
"src": "/product/346/image/2026/05/20/e01ddd59f71fac85b1a3b007644c3c55.jpg",
"width": 1000,
"height": 1334,
"ratio": "0.75",
"alt": "",
"position": 1,
"created_at": 1779254234,
"updated_at": 1779254234
}
}
]
},
"client_details": {
"id": 107,
"inquiry_id": 216,
"shop_id": 346,
"country_code": "",
"region_code": "",
"region_name": "",
"city": "",
"timezone": "",
"longitude": "",
"latitude": "",
"client_type": 1,
"browser_ip": "119.166.179.91",
"browser_lang": "en-US",
"browser_height": "945",
"browser_width": "1905",
"user_agent": "Chrome",
"referring_site": "http://birox.fecmall.cn/apimanager666/products/category/list",
"fist_loading_url": "http://birox.fecmall.cn/collections/%E5%95%86%E5%93%81%E4%B8%93%E8%BE%911",
"created_at": "2026-07-02 12:25:13",
"updated_at": "2026-07-02 12:25:13",
"country_name": {
"name": "",
"cn_name": ""
}
}
},
"message": "success"
}
返回字段说明
| 字段 |
类型 |
说明 |
code |
int |
状态码,200 表示成功 |
message |
string |
提示信息 |
data.info |
object |
询盘详情对象 |
data.client_details |
object |
顾客来源信息(浏览器、IP、国家地域等) |
info 字段(询盘基础信息)
| 字段 |
类型 |
说明 |
id |
int |
询盘记录 ID |
shop_id |
int |
所属店铺 ID |
status |
int |
处理状态:1 未处理,2 已处理 |
customer_id |
int |
顾客账号 ID,0 表示游客提交 |
product_ids |
array |
询盘中的商品 ID 数组,可能为空 |
name |
string |
顾客姓名 |
email |
string |
顾客电子邮箱 |
phone |
string |
顾客电话 |
message |
string |
顾客留言内容 |
remark |
string |
后台客服对该询盘添加的备注信息 |
created_at |
string |
创建时间 |
updated_at |
string |
更新时间 |
is_deleted |
int |
软删除字段:2 正常询盘,1 回收站 |
deleted_at |
int |
软删除时间戳,0 表示未删除 |
products |
array |
询盘中的商品数据数组(详见下方) |
info.products 字段(询盘关联商品)
| 字段 |
类型 |
说明 |
id |
int |
商品 ID |
shop_id |
int |
所属店铺 ID |
handle |
string |
商品 URL 别名(handle) |
title |
string |
商品标题 |
type |
int |
商品类型 |
status |
int |
商品状态:1 上架/正常,2 下架 |
qty |
int |
库存数量 |
created_at |
string |
商品创建时间 |
updated_at |
string |
商品更新时间 |
image |
object |
商品主图对象 |
image.id |
int |
图片 ID |
image.product_id |
int |
所属商品 ID |
image.src |
string |
图片路径 |
image.width |
int |
图片宽度(px) |
image.height |
int |
图片高度(px) |
image.ratio |
string |
宽高比 |
image.alt |
string |
图片替代文本 |
image.position |
int |
图片排序位置 |
image.created_at |
int |
图片创建时间戳 |
image.updated_at |
int |
图片更新时间戳 |
client_details 字段(顾客来源信息)
| 字段 |
类型 |
说明 |
id |
int |
来源记录 ID |
inquiry_id |
int |
关联的询盘 ID |
shop_id |
int |
所属店铺 ID |
country_code |
string |
国家代码 |
region_code |
string |
地区/省州代码 |
region_name |
string |
地区/省州名称 |
city |
string |
城市 |
timezone |
string |
时区 |
longitude |
string |
经度 |
latitude |
string |
纬度 |
client_type |
int |
客户端类型 |
browser_ip |
string |
顾客浏览器 IP |
browser_lang |
string |
浏览器语言,如 en-US |
browser_height |
string |
浏览器视口高度(px) |
browser_width |
string |
浏览器视口宽度(px) |
user_agent |
string |
浏览器 UA 标识,如 Chrome |
referring_site |
string |
来源页面 URL |
fist_loading_url |
string |
首次访问加载的 URL |
created_at |
string |
记录创建时间 |
updated_at |
string |
记录更新时间 |
country_name |
object |
国家名称对象 |
country_name.name |
string |
国家英文名称 |
country_name.cn_name |
string |
国家中文名称 |
注意事项
info.products 为询盘中关联的商品数据;若 product_ids 为空数组,则 products 也为空。
client_details 记录顾客提交询盘时的浏览器、IP、地域等来源信息,地域字段可能因未解析而为空字符串。
image.created_at / image.updated_at 为 Unix 时间戳,与询盘的 created_at(日期时间字符串)格式不同。
fist_loading_url 为接口原始字段名(拼写沿用系统返回),表示首次加载页面地址。