Custom版本 1.0.0

创建报关单

PUThttps://pay.globepay.co/api/v1.0/customs/partners/{partner_code}/declare/report/{client_report_id}

用于商户提交海关需要的订单附件信息。仅支持微信和支付宝,微信只支持一个月内的支付订单进行报关申请。

字段描述
Accept

application/json

Content-Type

application/json

Path Variable

字段类型描述
partner_codeString

必填,商户编码,由4-6位大写字母或数字构成

client_report_idString

必填,商户申请报关单号,要求同一商户唯一(建议长度8-25位)

JSON字段

字段类型描述
order_idString

必填,商户支付订单号(建议长度8-25位),要求同一商户唯一

customString

必填,海关编号 * 渠道海关编号

mch_custom_idString

必填,商户在海关备案的编号

mch_custom_nameString

必填,商户海关备案名称

consumer_encrypt_idString

选填,系统加密keyid,查看 获取加密密钥

consumer_encrypt_infoJSONObject

选填,消费者用户信息加密信息

sub_orderJSON[]

子订单(拆单)

consumer_encrypt_info

字段类型描述
consumer_nameString

消费者姓名

consumer_id_noString

消费者身份证号

SUB_JSON

字段类型描述
sub_order_noString

商户子订单号(建议长度8-25位)

fee_typeString

币种代码

默认值: CNY

允许值: CNY

order_feeDouble

子订单金额

transport_feeDouble

子订单物流金额

product_feeDouble

子订单商品金额

Query Params

字段类型描述
timeLong

必填,UTC毫秒时间戳

nonce_strString

必填,随机字符串

signString

必填,签名

Success 200

字段类型描述
report_idString

GlobePay海关单号

client_report_idString

商户申请报关单号

report_statusString

报关单状态: PROCCESSING,SUBMITED,FAILED,SUCCESS

channelString

支付渠道

customString

海关编号

mch_custom_noString

商户在海关备案的编号

mch_custom_nameString

商户海关备案名称

order_idString

GlobePay订单号

transaction_idString

支付渠道订单号

order_currencyString

币种

order_amountDouble

订单金额

report_timeString

报关时间

creation_dateString

报关单创建时间

last_update_dateString

更新时间

error_codeString

错误代码

error_msgString

错误返回的信息描述

错误码

名称描述
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

PCI DSS Compliant

安全与合规

  • PCI DSS符合支付卡行业数据安全标准
  • TLS 1.2+API 仅接受 TLS 1.2 / 1.3 加密连接
  • SHA-256每个 API 请求均须附带 SHA-256 签名

京ICP备18003250号-3

本页目录