Paygic Docs
  • Introduction
  • Create Token
  • Payment Page - Beta
  • UPI Intent
  • UPI Collect
  • Status and CallBack
  • Wordpress Plugin
  • Reseller
    • Onboard Merchant
    • Onboard Static Merchant
    • Payment APIs
  • Get Fee Data
  • Merchant Balance
Powered by GitBook
On this page

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"
              }
            }
PreviousIntroductionNextPayment Page - Beta

Last updated 3 days ago