Browse Source

更新银联海关,只保留上海、宁波、总署

tao.zhou 2 years ago
parent
commit
6d66d3a9df

+ 9 - 24
AllPay_Customs_Integration_Specification_CH.md

@@ -184,17 +184,15 @@ signature: 51aebe009a06d79c23524ea18fc2f413
 | signType       | String(10)  | 是    | MD5或SHA256                                   |
 | signature      | String(32)  | 是    | 采用 MD5或SHA256 签名                         |
 
-
-
 ### 3.5 申报重推接口
 
-**1. 请求报文格式****
+**1. 请求报文格式**
 
 | 参数          | 类型       | 必填 | 描述                                     |
 | ------------- | ---------- | ---- | ---------------------------------------- |
 | version       | String(12) | 是   | 统一填写为“VER000000005”                 |
 | charSet       | String(6)  | 是   | 统一填写为“UTF-8”                        |
-| transType     | String(4)  | 是   | 查询填写“DECL”                           |
+| transType     | String(4)  | 是   | 交易类型代码:“DECL”                     |
 | orderNum      | String(60) | 是   | 交易ID                                   |
 | merID         | String(15) | 是   | 商户 ID,由GoAllPay 分配                 |
 | acqID         | String(11) | 是   | 收单行 ID "99020344"                     |
@@ -203,8 +201,6 @@ signature: 51aebe009a06d79c23524ea18fc2f413
 | signType      | String(10) | 是   | MD5或SHA256                              |
 | signature     | String(32) | 是   | 采用 MD5或SHA256 签名                    |
 
-
-
 **2. 响应报文格式**
 
 | 参数           | 类型        | 必填 | 描述                              |
@@ -227,10 +223,10 @@ signature: 51aebe009a06d79c23524ea18fc2f413
 | signType       | String(10)  | 是   | MD5或SHA256                       |
 | signature      | String(32)  | 是   | 采用 MD5或SHA256 签名             |
 
-### 
-
 ## 4. 附件 1 海关列表
 
+***注意:海关列表为各渠道支持通过 API 报关的海关,实际支持情况以各渠道更新为准。**
+
 ### 4.1 支付宝海关列表
 
 | 海关名称                                                     | 海关编码               |
@@ -265,22 +261,11 @@ signature: 51aebe009a06d79c23524ea18fc2f413
 
 ### 4.3 银联海关列表
 
-| 海关名称       | 海关编码          |
-| -------------- | ----------------- |
-| 海关总署       | CUSTOMSHEADOFFICE |
-| 上海海关       | SHANGHAI          |
-| 宁波海关       | NINGBO     |
-| 杭州海关总署版 | HANGZHOU |
-| 重庆海关       | CHONGQING |
-| 河南电子口岸       | HENAN |
-| 深圳海关       | SHENZHEN |
-| 福州海关       | FUZHOU |
-| 厦门海关       | XIAMEN |
-| 成都海关       | CHENGDU |
-| 青岛海关       | QINGDAO |
-| 大连综试区     | DALIAN |
-
-以上海关列表为各渠道支持通过 API 报关的海关,实际支持情况以各渠道更新为准。
+| 海关名称       | 海关编码          |备注|
+| -------------- | ----------------- |---|
+| 海关总署       | CUSTOMSHEADOFFICE |除了上海、宁波,其他地区海关统一填写海关总署|
+| 上海海关       | SHANGHAI          ||
+| 宁波海关       | NINGBO     ||
 
 ## 5. 附件 2 应答码
 

+ 51 - 20
AllPay_Customs_Integration_Specification_EN.md

@@ -37,6 +37,7 @@ Supported request methods including POST and GET, supported parameter formats in
 | Declaration | https://testapi.allpayx.com/custom/declare | https://api.allpayx.com/custom/declare |
 | Declaration Query | https://testapi.allpayx.com/custom/query   | https://api.allpayx.com/custom/query |
 | Declaration Update | https://testapi.allpayx.com/custom/update | https://api.allpayx.com/custom/update |
+| Declaration Repush | https://testapi.allpayx.com/custom/repush | https://api.allpayx.com/custom/repush |
 
 ### 3.2 Declaration Interface
 
@@ -178,13 +179,54 @@ Supported request methods including POST and GET, supported parameter formats in
 | schemaTransId  | String(64)  | Yes    | The transaction ID of the payment channel. |
 | merID          | String(15)  | Yes    | Merchant ID. |
 | acqID          | String(11)  | Yes    | Acquiring Bank ID: "99020344" |
-| paymentSchema   | String(10)  | Yes    | Channel ID. |
-| transTime       | String(14)  | Yes    | Transaction time, format :" yyyyMMddHHmmss" |
-| signType        | String(10)  | Yes    | "MD5" or "SHA256" |
-| signature       | String(32)  | Yes    | MD5 or SHA256 signature |
+| paymentSchema   | String(10)  | Yes   | Channel ID. |
+| transTime       | String(14)  | Yes   | Transaction time, format :" yyyyMMddHHmmss" |
+| signType        | String(10)  | Yes   | "MD5" or "SHA256" |
+| signature       | String(32)  | Yes   | MD5 or SHA256 signature |
+
+### 3.5 Declaration Repush Interface
+
+**1. Request parameters**
+
+| Parameter | Type | Required | Description |
+| ------------- | ---------- | ---- | ---------------------------------------- |
+| version       | String(12) | Yes  | "VER000000005" |
+| charSet       | String(6)  | Yes  | "UTF-8" |
+| transType     | String(4)  | Yes  | Transaction type: "DECL"  |
+| orderNum      | String(60) | Yes  | Transaction ID in the declaration interface. |
+| merID         | String(15) | Yes  | Merchant ID, assigned by GoAllPay |
+| acqID         | String(11) | Yes  | Acquiring Bank ID: "99020344" |
+| paymentSchema | String(10) | Yes  | Channel ID.<br>UnionPay:UP<br>WeChat Pay:WX<br>Alipay:AP |
+| transTime     | String(14) | Yes  | Transaction time, format :" yyyyMMddHHmmss" |
+| signType      | String(10) | Yes  | "MD5" or "SHA256" |
+| signature     | String(32) | Yes  | MD5 or SHA256 signature |
+
+**2. Response parameters**
+
+| Parameter          | Type         | Required | Description          |
+| -------------- | ----------- | ---- | --------------------------------- |
+| version        | String(12)  | Yes  | "VER000000005" |
+| charSet        | String(6)   | Yes  | "UTF-8" |
+| transType      | String(4)   | Yes  | "DECL" |
+| orderNum       | String(60)  | Yes  | Transaction ID |
+| RespCode       | String(2)   | Yes  | Response Code. "00" stands for success. See Annex 2 for details. |
+| RespMsg        | String(128) | Yes  | Response Message. |
+| customs_code   | String(64)  | Yes  | Merchant Customs Record Code |
+| customs_name   | String(128) | Yes  | Merchant Customs Record Name |
+| customs_place  | String(128) | Yes  | Customs code. |
+| allpayOrderNum | String(64)  | Yes  | Conversion merchant order number of GoAllPay system. |
+| schemaTransId  | String(64)  | Yes  | The transaction ID of the payment channel. |
+| merID          | String(15)  | Yes  | Merchant ID. |
+| acqID          | String(11)  | Yes  | Acquiring Bank ID: "99020344" |
+| paymentSchema  | String(10)  | Yes  | Channel ID. |
+| transTime      | String(14)  | Yes  | Transaction time, format :" yyyyMMddHHmmss" |
+| signType       | String(10)  | Yes  | "MD5" or "SHA256" |
+| signature      | String(32)  | Yes  | MD5 or SHA256 signature |
 
 ## 4. Annex 1 Customs List
 
+*** Note: The list of customs is the customs that supports customs declaration through API for each payment channel. The actual support situation is subject to the update of each payment channel.**
+
 ### 4.1 Alipay customs list
 
 | Customs name | Customs code |
@@ -219,22 +261,11 @@ Supported request methods including POST and GET, supported parameter formats in
 
 ### 4.3 UnionPay customs list
 
-| Customs name | Customs code |
-| ----------- | -------- |
-| General Administration of Customs | CUSTOMSHEADOFFICE |
-| Shanghai | SHANGHAI |
-| Ningbo | NINGBO |
-| Hangzhou | HANGZHOU |
-| Chongqing | CHONGQING |
-| Henan Electronic Port | HENAN |
-| Shenzhen | SHENZHEN |
-| Fuzhou | FUZHOU |
-| Xiamen | XIAMEN |
-| Chengdu | CHENGDU |
-| Qingdao | QINGDAO |
-| Dalian | DALIAN |
-
-The above list of customs is the customs that supports customs declaration through API for each payment channel. The actual support situation is subject to the update of each payment channel.
+| Customs name | Customs code |Remark|
+| ----------- | -------- |---|
+| General Administration of Customs | CUSTOMSHEADOFFICE |Except for Shanghai and Ningbo, the customs of other regions shall uniformly fill in the General Administration of Customs.|
+| Shanghai | SHANGHAI ||
+| Ningbo | NINGBO ||
 
 ## 5. Annex 2 Response code