Custom版本 1.0.0
重新提交报关单
PUT
https://pay.globepay.co/api/v1.0/customs/partners/{partner_code}/redeclare/report/{client_report_id}用于重新提交未报关成功的报关单
Header
| 字段 | 描述 |
|---|---|
Accept | application/json |
Content-Type | application/json |
Path Variable
| 字段 | 类型 | 描述 |
|---|---|---|
partner_code | String | 必填,商户编码,由4-6位大写字母或数字构成 |
client_report_id | String | 必填,商户申请报关单号,要求同一商户唯一(建议长度8-25位) |
Query Params
| 字段 | 类型 | 描述 |
|---|---|---|
time | Long | 必填,UTC毫秒时间戳 |
nonce_str | String | 必填,随机字符串 |
sign | String | 必填,签名 |
Success 200
| 字段 | 类型 | 描述 |
|---|---|---|
report_id | String | GlobePay海关单号 |
client_report_id | String | 商户申请报关单号 |
report_status | String | 报关单状态: PROCCESSING,SUBMITED,FAILED,SUCCESS |
channel | String | 支付渠道 |
custom | String | 海关编号 |
mch_custom_no | String | 商户在海关备案的编号 |
mch_custom_name | String | 商户海关备案名称 |
order_id | String | GlobePay订单号 |
transaction_id | String | 支付渠道订单号 |
order_currency | String | 币种 |
order_amount | Double | 订单金额 |
report_time | String | 报关时间 |
creation_date | String | 报关单创建时间 |
last_update_date | String | 更新时间 |
error_code | String | 错误代码 |
error_msg | String | 错误返回的信息描述 |
错误码
| 名称 | 描述 |
|---|---|
ORDER_MISMATCH | 订单号与商户不匹配 |
SYSTEMERROR | 系统内部异常 |
INVALID_SHORT_ID | 商户编码不合法或没有对应商户 |
SIGN_TIMEOUT | 签名超时,time字段与服务器时间相差超过5分钟 |
INVALID_SIGN | 签名错误 |
PARAM_INVALID | 参数不符合要求,具体细节可参考return_msg字段 |
NOT_PERMITTED | 未开通网关支付权限 |
INVALID_CHANNEL | 不合法的支付渠道名称,请检查大小写 |
ERROR
| 名称 | 描述 |
|---|---|
return_code | Error Code |
return_msg | Error Description |
