Create PG Link
Use this API to create a Payment Gateway Link to redirect and collect payments from your customers.
Supported Payment Modes:
UPI | Credit / Prepaid Card | Debit Card |
Net Banking | Wallets | Bank EMI |
Payment Flow:
- Create a PG Link using this API.
- Redirect your payer to the link in a browser.
- The payer completes the payment.
- Receive a webhook from Bulkpe with the collection status.
Set up Webhook from the Bulkpe Web App - learn more.
API URL: https://api.bulkpe.in/client/createPGCollection
Method: POST
Auth: Please refer to the Authorization page.
{
"reference_id": "REF0028", //should be an unique value
"amount": 50000,
"name": "Sathya", //payer name
"phone": "9999888899", //payer phoe
"email": "[email protected]", //payer email
"success_url": "https://app.bulkpe.in/app/dashboard", //payment success redirection
"failure_url": "https://bulkpe.in/" //payment failed redirection
}
Note: All body params are mandatory
{
"status": true,
"statusCode": 200,
"data": {
"reference_id": "REF0028",
"pg_order_id": "BPPG007",
"redirectUrl": "https://app.bulkpe.in/v2/pay/d73759329dac621cbcee176fe8c4",
"amount": 50000,
"name": "Sathya",
"phone": "9999888899",
"email": "[email protected]",
"success_url": "https://app.bulkpe.in/app/dashboard",
"failure_url": "https://bulkpe.in/"
},
"message": ""
}
Once payment is collected, you will receive a callback. Setup callback from Bulkpe Web App, learn more on How to Setup from here.
{
"status": true,
"statusCode": 200,
"data": {
"transaction_id": "TEBPTR00321443", //Bulkpe specific transaction ID
"reference_id": "REF001755076992", //client reference id
"pg_order_id": "TEBPPG00225",
"isSubMerchant": false,
"merchant_id": "",
"merchant_reference": "",
"account_number": "",
"ifsc": "",
"upi": "",
"amount": 1,
"payment_mode": "CREDIT CARD", //Refer below for possible values
"card_network": "RUPAY", //MASTER, VISA, RUPAY
"card_masked_number": "0969",
"card_issuer": "STATE BANK OF MAURITIUS",
"payment_remark": "",
"statusDescription": "SUCCESS",
"status": "SUCCESS",
"utr": "122114516166",
"holderName": "Harish", //holder name as per bank, only for non-card transactions
"type": "Credit",
"charge": 1.00,
"gst": 0.18,
"createdAt": "2025-07-13T09:24:24.526Z",
"updatedAt": "2025-07-13T09:24:25.186Z"
},
"message": "",
"event": "PG_LINK_COLLECTION"
}
{
"UPI",
"IMPS",
"DEBIT CARD",
"CREDIT CARD",
"NET BANKING",
"MOBILE WALLET",
"OLA MONEY",
"EMI",
"PAY LATER",
"E CHALAN",
"NEFT"
}