Login with username/password (v2)
Authenticates the user by login name and password and returns a JWT access/refresh token pair.
If the login has access to multiple databases the resulting token is a multi-db token; use the
SwitchCompany/SwitchStore endpoints to select a specific database/store afterwards.
This is the v2 shape of the login response; new integrations should prefer GenerateToken (v3).
Permissions: All users.
Headers
- Type: stringD
C Key The Integration Key generated for API Authentication by the PAR OPS support team as part of the integration/partnership process.
Body·
Login credentials (user name and password).
Responses
Request Example for post/v2/Account/Token
curl /v2/Account/Token \
--request POST \
--header 'Content-Type: application/json-patch+json' \
--header 'DCKey: YOUR_SECRET_TOKEN' \
--data '{}'
{
"AccessToken": "string",
"RefreshToken": "string"
}