Create Token
### Create Token
The **Create Token** endpoint generates a **bearer token** that is used to authenticate requests to all other API endpoints. Each bearer token is valid for **up to 60 minutes** (`3600` seconds).
#### Usage Guidelines
- Call this endpoint **no more than once every 55 minutes** to avoid unnecessary requests.
- Store the token using a **secure method** such as in-memory cache (recommended), encrypted local storage, or your system's secure key store.
- The `expires_in` parameter is measured in **seconds**. A value of `3600` means the token is valid for **60 minutes**.
- The token must be used in the **Authorization header** for subsequent requests, using the **Bearer** scheme:
```makefile
Authorization: Bearer <your_token_here>
```
#### Test Credentials
For sandbox/staging, you may use the following credentials:
- **Username:** `test-merchant`
- **Password:** `p@ssw0rd01`
- **Signature Key:** `9XAgVZzU4WhqrXA6jEvMtkF85j8wKZZhQ5RE2hsDPwa5rjPT7RpCmJceu8jNt4Wy`
Headers
X-Server
Query parameters
username
password
Response
OK