Skip to main content
curl -X POST 'https://auth.api.e-cross.tech/token' \
  -H 'Content-Type: application/json' \
  -d '{
    "clientId": "your-client-id",
    "clientSecret": "your-client-secret"
  }'
{
  "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
  "tokenType": "Bearer",
  "expiresIn": 28800
}
{
  "message": "Incorrect username or password."
}

Request Parameters

clientId
string
required
The client ID provided to identify your merchant account (username).
clientSecret
string
required
The client secret to authenticate your merchant account (password).

Response Fields

token
string
required
The access token required for the Authorization header in all subsequent requests. Use the format: Authorization: Bearer {token}
tokenType
string
required
The token schema type. Always returns Bearer.
expiresIn
integer
required
Time duration until token expiration in seconds. Default value is 8 hours (28,800 seconds).

Using the Token

Include the token in the Authorization header of all API requests:
curl -X GET 'https://product.api.e-cross.tech/ext/merchant/skus' \
  -H 'Authorization: Bearer YOUR_TOKEN_HERE'