CustomVersion 1.0.0
Query Declare ID
https://pay.globepay.co/api/v1.0/customs/partners/{partner_code}/declare/query/{client_report_id}Used by the merchant to check the status of the customs declaration number.
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 |
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 |
|---|---|---|
return_code | String | Execution result |
report_status | String | Result status: PROCCESSING,SUBMITED,FAILED,SUCCESS |
report_id | String | GlobePay declare ID |
client_report_id | String | Client declare ID |
return_msg | String | Error Description |
order_id | String | GlobePay Order ID |
partner_order_id | String | Partner Order ID |
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 |
