Create Token
You can generate an API token from Create Token at any time. Endpoint - https://server.paygic.in/api/v3/createMerchantToken Method - POST We used here axios node library. You can use any http module
// Some code
await axios.post(
"https://server.paygic.in/api/v3/createMerchantToken",
{
mid: "Your Merchant ID", //Example - PAYGIC
password: "Your Account Password";
expiry: false, // true → Token expires in 30 days
// false → Token never expires
},
);
//Response
{
"status": true,
"statusCode": 200,
"msg": "Token generated successfully. Previous token is invalidated",
"data": {
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJtaWQiOiJQQVlHSUMiLCJfaWQiOiI2NWY5NTJkZDY1ZjlhNTkxZjM2ZGJlODIiLCJpYXQiOjE3NDgzNDcwOTB9...",
"expires": "Never"
}
}
Last updated