Your API requests are authenticated using API keys. Any request that doesn't include an API key will return an error.
await axios.post(
"https://server.paygic.in/api/v2/reseller/offline/createMerchant",
{
"rid": "string", // Reseller ID
"bname": "string", // Business name
"lname": "string", // Legal name
"phone": "string", // Phone number
"mcc": "string", //contact us for merchant category code list
"type": "string", // Business type (Should be one of - PROPRIETARY,PARTNERSHIP, PRIVATE, LLP, PUBLIC )
"city": "string", // City
"district": "string", // District
"stateCode": "string", //State Code Eg - 23 for Madhya Pradesh
"pincode": "string", // Pincode
"bpan": "string", //PAN Number
"turnoverType": "string", //Either SMALL or LARGE
"gst": "string", // GST number
"account": "string", // Bank account number
"ifsc": "string", // IFSC code
"address1": "string", // Address line 1
"address2": "string", // Address line 2
"cin": "string", // CIN number (for PRIVATE, LLP, PUBLIC)
"msme": "string", // MSME number.
"dob": "string", // Date of birth (only for PROPRIETARY)
"doi": "string", // Date of incorporation (for PARTNERSHIP, PRIVATE, LLP, PUBLIC)
},
{
headers: {
token: "Your Auth Key created by create token api"
}
}
);
//Response - Success
{
"status": true,
"code": 200,
"msg": "Merchant created successfully",
"data": {
"staticQR": "string", // Static QR code URL
"mid": "string", // Merchant ID
"phone": "string", // Phone number
"name": "string" // Business name
}
}
//Response - Error
{
"status": false,
"code": 400,
"msg": "Error message"
}