报关重推
如果订单附加信息已请求报送海关,但电子口岸丢单,则可以使用报关重推接口重新向海关推送(订单附加信息的state必须为SUCCESS或者EXCEPT)。
请求参数 | 类型 | 描述 |
---|---|---|
base_uri | string | 声明接入点https://apihk.mch.weixin.qq.com/global/ (香港接入) |
json | object | 声明请求的JSON 数据结构 |
appid | string | 机构APPID |
mchid | string | 商户号 |
out_trade_no | string | 商户订单号 |
transaction_id | string | 微信订单号 |
sub_order_no | string | 商户子单号 |
sub_order_id | string | 微信子单号 |
customs | string | 海关编码 |
merchant_customs_no | string | 商户海关备案号 |
php
$instance->v3->customs->redeclare->postAsync([
'base_uri' => 'https://apihk.mch.weixin.qq.com/global/', // 接入点(香港接入)
'json' => [
'appid' => 'wxd678efh567hg6787',
'mchid' => '1230000109',
'out_trade_no' => '20150806125346',
'transaction_id' => '1000320306201511078440737890',
'sub_order_no' => '20150806125346',
'sub_order_id' => '1000320306201511078440737891',
'customs' => 'SHANGHAI_ZS',
'merchant_customs_no' => '123456',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/customs/redeclare')->postAsync([
'base_uri' => 'https://apihk.mch.weixin.qq.com/global/', // 接入点(香港接入)
'json' => [
'appid' => 'wxd678efh567hg6787',
'mchid' => '1230000109',
'out_trade_no' => '20150806125346',
'transaction_id' => '1000320306201511078440737890',
'sub_order_no' => '20150806125346',
'sub_order_id' => '1000320306201511078440737891',
'customs' => 'SHANGHAI_ZS',
'merchant_customs_no' => '123456',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/customs/redeclare']->postAsync([
'base_uri' => 'https://apihk.mch.weixin.qq.com/global/', // 接入点(香港接入)
'json' => [
'appid' => 'wxd678efh567hg6787',
'mchid' => '1230000109',
'out_trade_no' => '20150806125346',
'transaction_id' => '1000320306201511078440737890',
'sub_order_no' => '20150806125346',
'sub_order_id' => '1000320306201511078440737891',
'customs' => 'SHANGHAI_ZS',
'merchant_customs_no' => '123456',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->customs->redeclare->post([
'base_uri' => 'https://apihk.mch.weixin.qq.com/global/', // 接入点(香港接入)
'json' => [
'appid' => 'wxd678efh567hg6787',
'mchid' => '1230000109',
'out_trade_no' => '20150806125346',
'transaction_id' => '1000320306201511078440737890',
'sub_order_no' => '20150806125346',
'sub_order_id' => '1000320306201511078440737891',
'customs' => 'SHANGHAI_ZS',
'merchant_customs_no' => '123456',
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/customs/redeclare')->post([
'base_uri' => 'https://apihk.mch.weixin.qq.com/global/', // 接入点(香港接入)
'json' => [
'appid' => 'wxd678efh567hg6787',
'mchid' => '1230000109',
'out_trade_no' => '20150806125346',
'transaction_id' => '1000320306201511078440737890',
'sub_order_no' => '20150806125346',
'sub_order_id' => '1000320306201511078440737891',
'customs' => 'SHANGHAI_ZS',
'merchant_customs_no' => '123456',
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/customs/redeclare']->post([
'base_uri' => 'https://apihk.mch.weixin.qq.com/global/', // 接入点(香港接入)
'json' => [
'appid' => 'wxd678efh567hg6787',
'mchid' => '1230000109',
'out_trade_no' => '20150806125346',
'transaction_id' => '1000320306201511078440737890',
'sub_order_no' => '20150806125346',
'sub_order_id' => '1000320306201511078440737891',
'customs' => 'SHANGHAI_ZS',
'merchant_customs_no' => '123456',
],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典 | 类型 | 描述 |
---|---|---|
appid | string | 机构APPID |
mchid | string | 商户号 |
state | string | 报关状态 |
out_trade_no | string | 商户订单号 |
transaction_id | string | 微信订单号 |
sub_order_no | string | 商户子订单号 |
sub_order_id | string | 微信子订单号 |
modify_time | string | 最后更新时间 |
explanation | string | 申报结果说明 |
参阅 官方文档