卖家收到货物回填物流信息,如果买家已经回填物流信息,则接口报错,目前仅支持天猫订单。
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
refund_id | Number | 必须 | 123456 | 退款单编号 | |
refund_phase | String | 必须 | onsale | 退款阶段,可选值:售中:onsale,售后:aftersale | |
logistics_waybill_no | String | 必须 | EG893082275CS | 物流公司运单号 | |
logistics_company_code | String | 必须 | EMS | 物流公司编号 |
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
is_success | Boolean | true | 验货操作是否成功 |
1 2 3 4 5 6 7 8 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); RpReturngoodsRefillRequest req = new RpReturngoodsRefillRequest(); req.setRefundId(123456L); req.setRefundPhase( "onsale" ); req.setLogisticsWaybillNo( "EG893082275CS" ); req.setLogisticsCompanyCode( "EMS" ); RpReturngoodsRefillResponse rsp = client.execute(req, sessionKey); System.out.println(rsp.getBody()); |
1 2 3 | < rp_returngoods_refill_response > < is_success >true</ is_success > </ rp_returngoods_refill_response > |
1 2 3 4 5 6 | < error_response > < code >50</ code > < msg >Remote service error</ msg > < sub_code >isv.invalid-parameter</ sub_code > < sub_msg >非法参数</ sub_msg > </ error_response > |
错误码 | 错误描述 | 解决方案 |
---|---|---|
isv.invalid-parameter | 参数错误 | 按提示的错误参数修改后重试 |