| Version | Update Time | Status | Author | Description |
|---|---|---|---|---|
1.0.0 | 2022-02-16 10:30 | 创建 | Weasley J | 创建API文档 |
1.0.9 | 2023-06-11 15:36 | 编辑 | Weasley J | 更新API文档 |
1.1.0 | 2023-07-15 15:36 | 编辑 | Weasley J | 补充API文档 |
1. 电子口岸报文加签测试
1.1. 海关总署XML数据加签
Type: GET
Author: lwj
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 非正式调用API,只为了让你看到海关总署XML加密的数据返回格式
Request-headers:
| Header | Value | Type | Required | Description | |
|---|---|---|---|---|---|
x-auth-token-eport-sign | string | true | 客户端加签时携带的请求头,token值必须和配置文件里面配置鉴权token相等 |
Response-fields:
| Field | Type | Description | Since | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
message | string | 返回消息 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
success | boolean | 是否成功 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
timestamp | string | 响应时间戳 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
code | int32 | 状态码 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
data | object | 响应数据 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
└─success | boolean | 本次加签是否成功 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
└─certNo | string | 签名的ukey的卡序列号 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
└─x509Certificate | string | 签名的ukey证书 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
└─digestValue | string | XML报文的数字摘要 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
└─signatureValue | string | 调用ukey获取的签名值 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
└─signatureNode | string | XML报文的签名节点 + 中国电子口岸(海口海关)报文加签API文档
1. 电子口岸报文加签测试1.1. 海关总署XML数据加签Type: GET Author: lwj Content-Type: application/x-www-form-urlencoded;charset=UTF-8 Description: 非正式调用API,只为了让你看到海关总署XML加密的数据返回格式 Request-headers:
Response-fields:
Response-example: Curl-example: |
电子口岸C卡/Key客户端