Fecify-B2B店铺询盘-详情
接口信息
- 接口地址:
{your-site-url}/api/skill/customer/get-b2b-inquire-info
- 基础 URL:
{your-site-url} 需替换为你自己的独立站 URL 地址,如 https://your-domain.com/admin
- 请求方式:
GET
- Content-Type:
application/json
- 说明: 获取单条 B2B 询盘的详细信息,包括询盘基本信息、关联商品详情以及客户浏览器环境信息。
认证
请求头中需要携带 skill-access-token:
| Header |
值 |
skill-access-token |
{your-skill-access-token} (请替换为你自己的 token) |
请求参数
请求示例
cURL
curl --location --request GET '{your-site-url}/api/skill/customer/get-b2b-inquire-info?id=207' \
--header 'skill-access-token: {your-skill-access-token}' \
--header 'Content-Type: application/json'
返回结果
code 为 200 表示成功;code 不为 200 表示失败。
成功响应
{
"code": 200,
"data": {
"info": {
"id": 207,
"shop_id": 346,
"status": 1,
"customer_id": 586,
"product_ids": ["6982"],
"name": "Terry zhao",
"email": "fecify@126.com",
"phone": "8632132",
"message": "111111111111111111",
"remark": "",
"created_at": "2026-07-01 13:56:31",
"updated_at": "2026-07-01 13:56:31",
"is_deleted": 2,
"deleted_at": 0,
"products": [
{
"id": 6982,
"shop_id": 346,
"handle": "diamond-detail-in-gold-vermeil",
"title": "Diamond Detail In Gold Vermeil",
"type": 1,
"status": 1,
"qty": 999,
"image": {
"id": 40681,
"product_id": 6982,
"src": "/product/346/image/2026/05/20/d62202d4f0dc87afa29e71229cfef950.jpg",
"width": 840,
"height": 1100,
"ratio": "0.76",
"alt": "",
"position": 1,
"created_at": 1779254230,
"updated_at": 1779254230
}
}
]
},
"client_details": {
"id": 98,
"inquiry_id": 207,
"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": "1920",
"user_agent": "Chrome",
"referring_site": "http://birox.fecmall.cn/apimanager666/products/list",
"fist_loading_url": "http://birox.fecmall.cn/?preview_theme_id=929",
"created_at": "2026-07-01 13:56:31",
"updated_at": "2026-07-01 13:56:31",
"country_name": {
"name": "",
"cn_name": ""
}
}
},
"message": "success"
}
返回字段说明
data.info — 询盘信息
| 字段 |
类型 |
说明 |
id |
Number |
询盘记录 ID |
shop_id |
Number |
所属店铺 ID |
status |
Number |
处理状态:1 = 未处理,2 = 已处理 |
customer_id |
Number |
顾客账号 ID,0 = 游客提交 |
product_ids |
Array |
询盘中的商品 ID 列表 |
name |
String |
顾客姓名 |
email |
String |
顾客邮箱 |
phone |
String |
顾客电话 |
message |
String |
顾客留言内容 |
remark |
String |
后台备注 |
created_at |
String |
创建时间 |
updated_at |
String |
更新时间 |
is_deleted |
Number |
软删除标记:1 = 回收站,2 = 正常 |
deleted_at |
Number |
软删除时间戳,0 = 未删除 |
products |
Array |
询盘关联商品详情 |
info.products — 关联商品
| 字段 |
类型 |
说明 |
id |
Number |
商品 ID |
shop_id |
Number |
所属店铺 ID |
handle |
String |
商品 URL handle |
title |
String |
商品标题 |
type |
Number |
商品类型 |
status |
Number |
商品状态:1 = 上架,2 = 下架 |
qty |
Number |
库存数量 |
image |
Object |
商品主图信息 |
image.id |
Number |
图片 ID |
image.product_id |
Number |
所属商品 ID |
image.src |
String |
图片相对路径 |
image.width |
Number |
图片宽度(px) |
image.height |
Number |
图片高度(px) |
image.ratio |
String |
宽高比 |
image.alt |
String |
图片 alt 文本 |
image.position |
Number |
排序位置 |
data.client_details — 客户环境信息
| 字段 |
类型 |
说明 |
id |
Number |
记录 ID |
inquiry_id |
Number |
关联询盘 ID |
browser_ip |
String |
浏览器 IP |
browser_lang |
String |
浏览器语言,如 en-US |
browser_height |
String |
浏览器视口高度(px) |
browser_width |
String |
浏览器视口宽度(px) |
user_agent |
String |
浏览器 UA |
referring_site |
String |
来源页面 URL |
fist_loading_url |
String |
首次加载 URL |
country_code |
String |
国家代码 |
region_code |
String |
地区代码 |
region_name |
String |
地区名称 |
city |
String |
城市 |
timezone |
String |
时区 |
longitude |
String |
经度 |
latitude |
String |
纬度 |
client_type |
Number |
客户端类型 |
country_name.name |
String |
国家名称 |
country_name.cn_name |
String |
国家中文名称 |
注意事项
id 通过 B2B店铺询盘-列表 获取。
products[].image.src 为相对路径,完整 URL 通过 获取基本信息 获取 base_image_url 后拼接(base_image_url + src)。
client_details 记录了询盘发起时的浏览器环境,用于判断客户地区等。