API Interface
Overview
I. Common Request Parameters
Param | Description |
---|---|
domain | Production domain name (https://openapi.gasstation.ai/ ),Not supported in the test environment |
app_id: | Please create the API first, then retrieve it |
secrect: | Please create the API first, then retrieve it |
AES Encryption Method
Operation Mode:ECB
Cryptography:PKCS7
Output Format: Base64 UrlSafe
II. Interface Rules
Param | Description |
---|---|
Transmission Method: | https |
Response Status Code: | 0 indicates processing success , non-0 indicates request error or system exception |
Request Address: | Domain + Interface Address |
Encryption Algorithm: | AES |
III. Common Response Parameters
Param | Type | Required | Description |
---|---|---|---|
app_id | String | Required | Merchant unique identifier |
data | String | Required | Data in JSON format Encrypted string; encrypted with the Client’s AES key, specific encryption information is described in the Request Parameter Data Structure of each interface |
Example Request Parameters:
{ "time": "1600128590"}
Encrypted data:
UJ3SABwJnabqiDf0WMSANU5L99g29LQDOcSsdTrUXXU=
cURL
Response Parameter Format
Param | Type | Required | Description |
---|---|---|---|
code | String | Yes | Status code, e.g., 100002 |
msg | String | Yes | Explanation of the response result, e.g., Request parameter error |
data | String | No | Specific response data; data structure defined in the Response Parameter Data Structure of each interface |