通用取消出价
取消指定出价单的通用出价。
一、接口名称
- 接口名称:得物通用取消出价
- 接口地址:
https://kf.fw199.com/gateway/dewu/bidding/general/cancel - 请求方式:
POST - Content-Type:
application/x-www-form-urlencoded
二、请求参数
公共参数
| 参数名 | 类型 | 是否必需 | 说明 |
|---|---|---|---|
| appid | string | 必需 | 开发者 appid |
| timestamp | string | 必需 | 时间戳(秒) |
| sign | string | 必需 | 参数签名 |
业务参数
| 参数名 | 类型 | 是否必需 | 说明 |
|---|---|---|---|
| seller_nick | string | 必需 | 得物店铺标识(授权回调中的 seller_nick) |
| bidding_no | string | 必需 | 出价单号(创建出价返回的 bidding_no) |
| sysid | string | 否 | 应用标识,默认 580(千里马得物) |
三、请求示例代码(Java)
@Test
public void dewuBiddingGeneralCancel() throws Exception {
String apiUrl = "https://kf.fw199.com/gateway/dewu/bidding/general/cancel";
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", "101220045273335414");
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": {
"spu_id": 1124090,
"bidding_time": "2026-09-29 16:29:39",
"bidding_no": "101220045273335414",
"sku_id": 600874591,
"bidding_type": 0,
"price": 75800,
"qty": 1,
"qty_sold": 0,
"qty_cancel": 1,
"status": 2
},
"trace_id": "37e7c0b6-77f0-49e0-8b0f-d666e51fc8e4"
}4.2 data 主要字段
| 参数名 | 类型 | 说明 |
|---|---|---|
| spu_id | number | 得物 SPU ID |
| bidding_time | string | 出价时间 |
| bidding_no | string | 出价单号 |
| sku_id | number | 得物 SKU ID |
| bidding_type | number | 出价类型 |
| price | number | 出价金额,单位:分 |
| qty | number | 出价数量 |
| qty_sold | number | 已售数量 |
| qty_cancel | number | 已取消数量 |
| status | number | 出价状态(取消成功后常见为 2) |
完整字段以上游得物开放平台返回为准;蜂巢将上游
data对象原样放入响应data。
4.3 失败示例
参数错误:
{
"code": 1,
"message": "参数bidding_no不能为空"
}重复取消:
{
"code": 1,
"message": "得物通用取消出价失败: 得物业务错误: code=20900020 msg=出价已取消,请不要重复操作"
}文档更新时间: 2026-09-30 14:46 作者:admin