自动跟价
为指定出价单开启或设置自动跟价。
一、接口名称
- 接口名称:得物自动跟价
- 接口地址:
https://kf.fw199.com/gateway/dewu/bidding/addautobidding - 请求方式:
POST - Content-Type:
application/x-www-form-urlencoded
二、请求参数
公共参数
| 参数名 | 类型 | 是否必需 | 说明 |
|---|---|---|---|
| appid | string | 必需 | 开发者 appid |
| timestamp | string | 必需 | 时间戳(秒) |
| sign | string | 必需 | 参数签名 |
业务参数
| 参数名 | 类型 | 是否必需 | 说明 |
|---|---|---|---|
| seller_nick | string | 必需 | 得物店铺标识(授权回调中的 seller_nick) |
| bidding_no | string | 必需 | 出价单号 |
| min_price | number | 必需 | 跟价最低价,单位:分 |
| type | number | 必需 | 跟价类型 |
| auto_switch | string | 必需 | 是否开启自动跟价,true / false |
| custom_biz_attr | string | 否 | 自定义业务属性,JSON 对象字符串 |
| sysid | string | 否 | 应用标识 |
custom_biz_attr 示例:
{"key":"value"}三、请求示例代码(Java)
@Test
public void dewuBiddingAddAutoBidding() throws Exception {
String apiUrl = "https://kf.fw199.com/gateway/dewu/bidding/addautobidding";
Map<String, String> data = new HashMap<>();
data.put("appid", Config.AppId);
data.put("timestamp", String.valueOf(System.currentTimeMillis() / 1000));
data.put("seller_nick", "your_dewu_seller_nick");
data.put("sysid", "580");
data.put("bidding_no", "101220045285573273");
data.put("min_price", "52000"); // 单位:分
data.put("type", "1");
data.put("auto_switch", "true");
data.put("sign", Utils.Sign(data, Config.AppSecret));
String result = doHttpRequest(apiUrl, data);
System.out.println("result:" + result);
}四、响应说明
HTTP 状态码始终为 200,业务成败看 JSON 中的 code 字段(0 表示成功)。
4.1 成功示例
{
"code": 0,
"message": "ok",
"data": true,
"trace_id": "54ebb112-3541-41cc-82b7-7ab92916357f"
}4.2 data 说明
| 参数名 | 类型 | 说明 |
|---|---|---|
| data | boolean | 上游操作结果,true 表示设置成功 |
完整字段以上游得物开放平台返回为准;蜂巢将上游
data原样放入响应data。
4.3 失败示例
参数错误:
{
"code": 1,
"message": "参数auto_switch无效(仅支持 true/false)"
}文档更新时间: 2026-09-30 15:08 作者:admin