Table of contents

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:

  1. Create a PG Link using this API.
  2. Redirect your payer to the link in a browser.
  3. The payer completes the payment.
  4. Receive a webhook from Bulkpe with the collection status.

Set up Webhook from the Bulkpe Web App - learn more.

Overall Payment Collection flow
Overall Payment Collection flow

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": "BPTR003533382", //Bulkpe specific transaction ID "reference_id": "", // "order_id": "BPPG0010", "isSubMerchant": false, "merchant_id": "", "merchant_reference": "", "account_number": "NA", "ifsc": "", "upi": "heysathya@axisb", "amount": 1, "payment_mode": "UPI", "payment_remark": "", "statusDescription": "APPROVED OR COMPLETED SUCCESSFULLY", "status": "SUCCESS", "utr": "428336561596", "holderName": "Harish", "type": "Credit", "charge": 0.01, "gst": 0, "createdAt": "2024-10-09T12:44:21.286Z", "updatedAt": "2024-10-09T12:44:21.297Z" }, "message": "", "event": "PG_UPI_COLLECTION" }
{ "UPI", "IMPS", "DEBIT CARD", "CREDIT CARD", "NET BANKING", "MOBILE WALLET", "OLA MONEY", "EMI", "PAY LATER", "E CHALAN", "NEFT" }