Overview
All e-CROSS APIs are private and require authentication. You must authenticate through the authentication endpoint using your client credentials to generate an access token. This token must be included in theAuthorization header of all subsequent API requests.
Authenticate
Generate a new JWT authentication token to use across all API resources.Request Parameters
The client ID provided to identify your merchant account (username).
The client secret to authenticate your merchant account (password).
Response Fields
The access token required for the
Authorization header in all subsequent requests. Use the format: Authorization: Bearer {token}The token schema type. Always returns
Bearer.Time duration until token expiration in seconds. Default value is 8 hours (28,800 seconds).
Using the Token
Include the token in theAuthorization header of all API requests:
Token Expiration
The access token has a limited validity period indicated by theexpiresIn value in the response. Once the token expires, you must repeat the authentication flow to obtain a new access token using your client credentials.
Performance Considerations
Security Considerations
- Keep your client credentials (
clientIdandclientSecret) secure and never expose them publicly - Implement proper token management and storage mechanisms to protect sensitive information
- Use secure storage for cached tokens
- Never commit credentials or tokens to version control
Catalog Integration
Next: Learn how to integrate your product catalog
