Skip to main content

Authentication

All API endpoints require a JWT Bearer token obtained via login. The token must be included in the Authorization header of every request.

Login

PropertyValue
Endpoint/auth/login
MethodPOST
Content-Typeapplication/json
AuthorizationNone (initial access)

Request body

{
"apiKey": "YOUR_API_KEY",
"email": "user@company.com",
"password": "your_password"
}
FieldTypeRequiredDescription
apiKeyStringYes*API key from Settings → ERP Management → API Management
emailStringYesRegistered email address
passwordStringYesAccount password

* apiKey is used for machine-to-machine authentication. When using Method B (single partner key), provide the partner API key here.

Responses

CodeDescription
200Login successful — returns accessToken and refreshToken
401Unauthorized — invalid credentials
403MFA required
429Too many requests

Example response

{
"accessToken": "eyJhbGciOiJIUzI1NiJ9...",
"refreshToken": "eyJhbGciOiJIUzI1NiJ9...",
"tokenType": "Bearer"
}

Token refresh

PropertyValue
Endpoint/auth/token-refresh
MethodPOST
{
"refreshToken": "eyJhbGciOiJIUzI1NiJ9..."
}