Login
Login to the AuthAPI to get a JWT token.
- Endpoint
/login
- Method
POST
Request
Parameter | Required | Type | Description |
---|---|---|---|
username | yes | string | Username |
password | yes | string | Password |
password_hashed_encrypted | no | string | Hashed and encrypted password |
Merchant | no | object | Merchant object |
Merchant object
Parameter | Required | Type | Description |
---|---|---|---|
id | yes | int | Merchant id |
Request example
{
"username": "test",
"password": "test",
}
Response
Parameter | Type | Description |
---|---|---|
token | string | JWT token |
Response example
{
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0aGlzIjoiaXMiLCJub3QiOiJhIiwicHJvcGVyIjoiSldUIiwidG9rZW4iOiJ0aGF0IiwiY2FuIjoiYmUiLCJ1c2VkIjoiZm9yIiwidGhlIjoiQXV0aEFQSSJ9.GwHMQeIZjg76zweuLLvPeZBKHwOzB3kxdH7ojyxFehk"
}
For an example see here
Last modified: 13 September 2024