πŸ’‡Authentication Method

1. Create API Key

API Key (Application Programming Interface Key) is a unique identifier used for recognizing and validating the identity of an application or user. It is a string of characters provided by the platform, consisting of letters, numbers, or special characters. The primary purpose of an API Key is to control access permissions, ensuring that only authorized users or developers can utilize the data or services provided by the API.

Merchant can log in to the management system and click on the menu to enter "Security Settings > API Access" to manage the API Key. Here, apiUsername and apiPassword are used for Bearer Token authentication (see step 2).

2. Bearer Token Authentication

Bearer Token is an access token used for authentication, granting the bearer permission to access resources. When you send a request to the server, you can include Bearer Token in the request header. The server will use this Bearer Token to verify your identity and authorize the operation you are requesting.

- How to obtain a Bearer Token?

Retrieve the token via apiUsername and apiPassword , see details at:

πŸ”‘Get temporary access tokenchevron-right

3. How to use Bearer Token?

When sending a request, carry it in the Authorization field of the request header (Header), with the field value being the "Bearer" keyword followed by the token itself, for example:

POST / HTTP/1.1
Host: {HOST}
Authorization: Bearer {TOKEN}

4. Notes

  1. Bearer Token is a form of temporary access authorization with expiration. When integrating into your business system, it is imperative to consider and refine your renewal strategy to prevent expiration during actual business operations, thus avoiding disruptions to your business.

  2. Get Temporary Access Token API call rate support is 1 per second, please guard against possible concurrent access.

Last updated