跳转到内容
返回官网

查询图书SPU审核记录

一、请求参数

使用场景: 1、使用【/spu/createSpu】创建spuid创建成功后,可以使用spu_id查询审核状态;建议场景成功后间隔1小时后再查询审核结果; 2、当前支持支持图书spuid查询

请求URL:

POST https://kf.fw199.com/gateway/dd/spu/getauditinfo

公共参数

参数名称参数类型是否必须示例值参数描述
appidString合作伙伴AppId
timestampString1657525936当前Unix时间戳,秒
seller_nickString38173182抖店的账号,对应蜂巢授权返回doudianseller字段
signString

业务参数

参数名称参数类型是否必须示例值参数描述
spu_idInt647166887849936109828SPU编号;使用【/spu/createSpu】创建spuid创建成功后,可以使用spu_id查询审核状态;建议场景成功后间隔1小时后再查询审核结果;

二、请求示例代码

Java

请求示例代码

@Test
public void DDSpuGetauditInfo() throws Exception {
Map<String, Object> data = new HashMap<String, Object>();
data.put("appid", Config.AppId);
Long timestamp = System.currentTimeMillis() / 1000;
data.put("timestamp", timestamp.toString());
data.put("seller_nick", Config.DDSellerNick);
data.put("spu_id","7166887849936109828" );
data.put("sign", Sign(data,Config.AppSecret));
// 调用服务API
String resp = doHttpRequest(Config.DDSpuGetAuditInfo, data);
System.out.println(resp);
}

三、返回结果

{
"code": 0,
"message": "ok",
"data": {
"create_time": null,
"reject_reason": null,
"spu_id": 7166887849936109828,
"spu_status": 4,
"update_time": null
}
}

说明: code为0表示成功,非0为失败,message会包含失败原因。返回字段说明见文档 https://op.jinritemai.com/docs/api-docs/14/2758