CustomVersion 1.0.0
Create Declare ID
https://pay.globepay.co/api/v1.0/customs/partners/{partner_code}/declare/report/{client_report_id}Used to submit the attachment information of the order required by the merchant. WeChat and Alipay are only supported. WeChat only supports payment orders within one month for customs declaration.
Header
| Field | Description |
|---|---|
Accept | application/json |
Content-Type | application/json |
Path Variable
| Field | Type | Description |
|---|---|---|
partner_code | String | Required, Partner code |
client_report_id | String | Required, Client declare ID |
JSON keys
| Field | Type | Description |
|---|---|---|
order_id | String | Required, Partner order id |
custom | String | Required, Customs No. * Customs No. |
mch_custom_id | String | Required, Customs record id |
mch_custom_name | String | Required, Customs record name |
consumer_encrypt_id | String | Optional,System encrypted keyid, View Get Encrypt Public Key |
consumer_encrypt_info | JSONObject | Optional,Consumer user information encryption information |
sub_order | JSON[] | Child orders |
consumer_encrypt_info
| Field | Type | Description |
|---|---|---|
consumer_name | String | |
consumer_id_no | String |
SUB_JSON
| Field | Type | Description |
|---|---|---|
sub_order_no | String | Child order ID |
fee_type | String | Currency |
order_fee | Double | Child Order Amount |
transport_fee | Double | Child Order Logistics Amount |
product_fee | Double | Child Order Product Amount |
Query Params
| Field | Type | Description |
|---|---|---|
time | Long | Required, UTC timestamp in milliseconds |
nonce_str | String | Required, Random string |
sign | String | Required, Sign |
Success 200
| Field | Type | Description |
|---|---|---|
report_id | String | GlobePay declare ID |
client_report_id | String | Client declare ID |
report_status | String | Result status: PROCCESSING,SUBMITED,FAILED,SUCCESS |
channel | String | Channel |
custom | String | Customs No. |
mch_custom_no | String | Customs record ID |
mch_custom_name | String | Customs record name |
order_id | String | GlobePay Order ID |
transaction_id | String | Channel Order ID |
order_currency | String | Currency |
order_amount | Double | Order Amount |
report_time | String | Declare Time |
creation_date | String | Create Time |
last_update_date | String | Update Time |
error_code | String | Error Code |
error_msg | String | Error Description |
Error Code
| Name | Description |
|---|---|
ORDER_MISMATCH | Order is not belong to this partner |
SYSTEMERROR | Exception inside system |
INVALID_SHORT_ID | Partner code is invalid or there is no partner associated with this code |
SIGN_TIMEOUT | Sign expired, the difference between time and the server time is more than 5 minutes |
INVALID_SIGN | Invalid sign |
PARAM_INVALID | Parameters are invalid. See return_msg for more details. |
NOT_PERMITTED | Gateway payment permission has not been enabled for this partner |
INVALID_CHANNEL | Channel name is not available, check the Capitalize |
ERROR
| Name | Description |
|---|---|
return_code | Error Code |
return_msg | Error Description |
