1. Interface for querying up and down order status information
Query Up Interface Path:{host}/api/v2/merch/user/checkUpOrder
Query Down Interface Path:{host}/api/v2/merch/user/checkDownOrder
Request method:GET/POST form
field | type | nickname | description |
---|---|---|---|
merchId | Integer | merchant ID | |
body | String | Encryption parameters | See Table 8 for details |
t | Integer | current timestamp | |
key | String | sign | Md5(merchId+body+t+md5key) |
parameters: Table 8:
field | type | nickname | description |
---|---|---|---|
merchOrderId | String | Merchant up- or down-order number |
body generation rules:
`1. base64Decode public key
`2. Convert the parameters in Table 8 to jsonString
3. Use public key to encrypt jsonString with RSA (ECB mode, OAEP SHA256 pair, MGF1 padding)
4. The encryption result base64 Encode is the string body
Interface Response Results:
field | type | nickname | description |
---|---|---|---|
code | Integer | status code | 0 means the request is normal, see the attached table for details. |
message | String | message | |
data | Return object |
data:
field | type | nickname | description |
---|---|---|---|
merchOrderId | String | order number | |
amount | Integer | Amount | |
userPayAddress | String | User wallet address | |
merchId | Integer | merchant ID | |
createTime | String | Create time | |
status | String | status | “finish”:Completed “pending”:in progress “fail”:fail |