Reseller Payment APIs Access reseller's create token, create payment request, etc apis here.
Create Token
You can generate an API token from Create Token at any time. Endpoint - https://server.paygic.in/api/v2/reseller/createResellerAuthToken Method - POST We used here axios node library. You can use any http module
Copy
await axios.post(
"https://server.paygic.in/api/v2/reseller/createResellerAuthToken",
{
rid: "Your Reseller ID", //Example - PAYGIC
password: "Your Account Password";
},
);
//Response
{
status: true,
statusCode: 200,
msg: "Token generated successfully",
data: { token, expires: "30 Days" },
}
Create UPI Order Request
Your API requests are authenticated using API keys. Any request that doesn't include an API key will return an error.
You can generate an API token from Create Token at any time.
Endpoint - https://server.paygic.in/api/v2/reseller/createPaymentRequest
Method - POST
We used here axios node library. You can use any http module like Fetch, Plain HTTP request and more.
Copy // Some code
await axios.post(
"https://server.paygic.in/api/v2/reseller/createPaymentRequest",
{
rid: "Your Reseller ID",//Example - PAYGIC
mid: "Your Merchant ID", //Example - PAYGIC
amount: "Amount should be between 1-100000 and numeric",//Example - 200
merchantReferenceId: "Your reference ID unique and a string",//Example- bd79da4cc3ff1
customer_name: "Your Customer Name",
customer_email: "Your Customer Email",
customer_mobile: "Your Customer Name",
},{
headers: {
token: "Your Auth Key created by create token api"
}
}
);
//Response
{
status: true,
statusCode: 200,
msg: "Payment request created successfully",
data: {
intent: "Link starts with upi://",
phonePe: "Payment Link to complete payment on phonepe App",
paytm: "Payment Link to complete payment on paytm App",
gpay: "Payment Link to complete payment on google pay App",
dynamicQR: "Create Qr with this link",
expiry: "5 minutes expiry",
amount: 200,
paygicReferenceId: "orderId",
merchantReferenceId: "mref",
},
}
Create UPI Collect Request
Your API requests are authenticated using API keys. Any request that doesn't include an API key will return an error.
You can generate an API token from Create Token at any time.
Endpoint - https://server.paygic.in/api/v2/reseller/createCollectRequest
Method - POST
We used here axios node library. You can use any http module like Fetch, Plain HTTP request and more.
Copy await axios.post(
"https://server.paygic.in/api/v2/reseller/createCollectRequest",
{
rid: "Your Reseller ID", //Example - PAYGIC
mid: "Your Merchant ID", //Example - PAYGIC
amount: "Amount should be between 1-100000 and numeric",//Example - 200
merchantReferenceId: "Your reference ID unique and a string",//Example- bd79da4cc3ff1
customer_name: "Your Customer Name",
customer_email: "Your Customer Email",
customer_mobile: "Your Customer Name",
"vpa": "upiId@ptaxis",
"remark": "Collection Payment"
},{
headers: {
token: "Your Auth Key provided by us"
}
}
);
//Response
{
"status": true,
"statusCode": 200,
"msg": "Collect request created successfully",
"data": {
"expiry": "2024-10-23T17:13:21+05:30",
"amount": "10",
"merchantReferenceId": "bd79da4ccff46"
}
}
Check Status
Endpoint - https://server.paygic.in/api/v2/reseller/checkPaymentStatus
Method - POST
We used here axios node library. You can use any http module like Fetch, Plain HTTP request and more.
Copy await axios.post(
"https://server.paygic.in/api/v2/reseller/checkPaymentStatus",
{
rid: "Your Reseller ID",
mid: "Your Merchant ID", //Example - PAYGIC
merchantReferenceId: "Your reference ID unique and a string",//Example- bd79da4cc3ff1
},
{
headers: {
token: "Your Auth Key provided by us"
}
}
);
//Response
{
status: true,
statusCode: 200,
txnStatus: "SUCCESS",
msg: "Transaction is successful",
data: {
rid: "Reseller ID",
amount: 10,
mid: ”PAYGIC”,
paygicReferenceId: “PAYGIC1729183960695592E9”,
merchantReferenceId: “5c5a5f8af5397”,
successDate: 1729247938098,
}
}
Callback or Web-hook
You will recieve a instant callback carrying transaction status and data.
You can use this data to update your transaction status at your end or anything you implement.
Note: Callback URL is needed from your side. You have to create it on your server. Example your callback url is - https://yourdomain.com/callback. This route should be resolve by POST method request.
Method - POST
Response
Copy //Callback for merchant transaction
{
"status": true,
"statusCode": 200,
"txnStatus": "SUCCESS",
"type": "TRANSACTION",
"msg": "Transaction is successful",
"data": {
"paymentType": "Dynamic", //Static for Static-Qr Payments
"rid": "RESELLER123",
"amount": "500.00",
"mid": "MERCHANT123",
"paygicReferenceId": "PAYGIC123",
"merchantReferenceId": "MREF123",
"successDate": "2023-12-31T23:59:59Z",
"UTR": "UTR123456",
"payerName": "John Doe",
"payeeUPI": "john@upi"
}
}
//Callback for merchant settlement
{
"status": true,
"statusCode": 200,
"txnStatus": "SUCCESS",
"type": "SETTLEMENT",
"msg": "Settlement is successful",
"data": {
"mid": "MERCHANT123",
"rid": "RESELLER123",
"date": "2023-12-31T23:59:59Z",
"amount": "1000.00",
"utr": "UTR123456",
"txnStatus": "SUCCESS",
"paygicReferenceNumber": "PAYGIC123",
"bankReferenceNumber": "BANK123",
"mode": "NEFT",
"initiationDate": "2023-12-31T12:00:00Z",
}
}
Last updated 2 months ago