Check the developer configuration information on the merchant side, get appId and appSecret, and download RSA public key.
Headers Add
Z-AUTHfield, the value is the obtainedAccessToken. See GET Token document
Headers adds the
Content-Typefield, the value isapplication/json; the specified request body isjsonformat.
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-Languagefield 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,
codeis the status code,messageis the prompt message, anddatais the return data.