Authentication

All API endpoints require a JWT (JSON Web Token) for authentication. You must include this token in the header of every API request.

Obtaining a JWT TokenCopied!

Include the token in every API request header as follows:

Authorization: Bearer <your_jwt_token_here>

Note: The token expires in 1 hour. After expiry, call the login API again to obtain a new token. If the token is not yet expired, if you call our API for a new JWT Token, we will reply with the same token.

Service EndpointsCopied!

Endpoint

POST /api/merchant/login

Request Header

Content-Type: application/json

Request ParametersCopied!

Name

Type

Required?

Description

email

string

Yes

Same as the email used for your merchant portal login

password

string

Yes

Same as the password used for your merchant portal login

Response ParametersCopied!

Name

Type

Description

token

string

Token

token_type

string

Token type

expire_in

string

Token expiry time in seconds

Sample RequestCopied!

{
  "email": "merchant1@example.com",
  "password": "password"
}

Sample ResponseCopied!

{
    "token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vMTI3LjAuMC4xOjgwMDAvYXBpL21lcmNoYW50L2xvZ2luIiwiaWF0IjoxNzQxMTczMTg1LCJleHAiOjE3NDExNzY3ODUsIm5iZiI6MTc0MTE3MzE4NSwianRpIjoiYnFSQUczaUhGVGo1VTFJRSIsInN1YiI6IjEiLCJwcnYiOiI5M2JkY2M1OGRkMDFjZTM2ZWM1NmUzMmI1YmI1ODBkODMwMzJmZDE4In0.FVNXmD0mMxKlnXFYexAyaeukKF70MZO0MAPi0Yv5DmQ",
	"token_type": "bearer",
    "expires_in": 3600
}