Check the developer configuration information on the merchant side, get appId
and appSecret
, and download RSA public key
.
Headers Add
Z-AUTH
field, the value is the obtainedAccessToken
. See GET Token document
Headers adds the
Content-Type
field, the value isapplication/json
; the specified request body isjson
format.
Some API need to encrypt the request parameters and use encrypted strings.
Data encryption:
The encrypted string is valid for 5 minutes; it becomes invalid after 5 minutes.
The API supports multilingual switching, with Chinese as the default language.
Add the
Accept-Language
field to the request header, and the value iszh-CN
.
Supported languages:
Chinese: zh-CN
or zh
。
English: en-US
or en
。
In the interface return data,
code
is the status code,message
is the prompt message, anddata
is the return data.