清关信息回调通知
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
order_clearance_info_request | OrderClearanceInfoRequest | 可选 | 清关信息 | ||
|
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
msg_info | String | 参数不能为空 | 错误原因 |
msg_code | String | PARAM_NOT_NULL | 错误编码 |
msg_success | Boolean | true | 操作是否成功 |
msg_obj | Boolean | true | 接口调用是否成功 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); TmallHkDistributeClearanceInfoSendRequest req = new TmallHkDistributeClearanceInfoSendRequest(); TmallHkDistributeClearanceInfoSendRequest.OrderClearanceInfoRequest obj1 = new TmallHkDistributeClearanceInfoSendRequest.OrderClearanceInfoRequest(); obj1.setClearanceResultCode( "0000" ); obj1.setClearancePortNo( "2991" ); obj1.setClearanceStatus(1L); obj1.setClearanceTime(StringUtils.parseDateTime( "2023-06-20 13:21:54" )); obj1.setOrderId(1234567L); obj1.setCustomsPassNo( "2991071755662" ); obj1.setCustomsReturnReceipt( "订单已放行/..." ); obj1.setIdempotent( "xxe3444k9k9" ); obj1.setClearanceStoreCode( "ZHENGZHONGBEAUTY" ); req.setOrderClearanceInfoRequest(obj1); TmallHkDistributeClearanceInfoSendResponse rsp = client.execute(req); System.out.println(rsp.getBody()); |
1 2 3 4 5 6 | < tmall_hk_distribute_clearance_info_send_response > < msg_info >参数不能为空</ msg_info > < msg_code >PARAM_NOT_NULL</ msg_code > < msg_success >true</ msg_success > < msg_obj >true</ msg_obj > </ tmall_hk_distribute_clearance_info_send_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 > |
错误码 | 错误描述 | 解决方案 |
---|