Dashboard

PG Collection (Scale UPI)

Create PG Link

Use this API to create a Payment Gateway Link to redirect and collect payments from your customers.

POSThttps://api.bulkpe.in/client/createPGCollection

Send your API key as Authorization: Bearer <key>. See Authorization.

Supported Payment Modes:

UPICredit / Prepaid CardDebit Card
Net BankingWalletsBank 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 Dashboard -> Setting -> Developer Controls -> Webhook -> PG Collection - learn more.

API Request

Request Body

  • reference_idstringMandatory

    Your unique ID for this payment link.

    Example REF0028

  • amountnumberMandatory

    Amount to collect, in rupees.

    Example 50000

  • namestringMandatory

    Payer’s name.

    Example Richard

  • phonestringMandatory

    Payer’s 10-digit mobile number.

    Example 9999888899

  • emailstringMandatory

    Payer’s email address.

    Example support@bulkpe.in

  • success_urlstringMandatory

    Page the payer is sent to after a successful payment.

    Example https://app.bulkpe.in/app/dashboard

  • failure_urlstringMandatory

    Page the payer is sent to if the payment fails.

    Example https://bulkpe.in/

Note: All body params are mandatory

Response Body

Fields inside data. Full examples are in the response panel.

  • reference_idstring

    Example REF0028

  • pg_order_idstring

    Example BPPG007

  • redirectUrlstring

    Example https://app.bulkpe.in/v2/pay/d73759329dac621cbcee176fe8c4

  • amountnumber

    Example 50000

  • namestring

    Example Richard

  • phonestring

    Example 9999888899

  • emailstring

    Example support@bulkpe.in

  • success_urlstring

    Example https://app.bulkpe.in/app/dashboard

  • failure_urlstring

    Example https://bulkpe.in/

Once payment is collected, you will receive a callback. Setup callback from Bulkpe Web dashboard, learn more on How to Setup from here.

Sample Callback Response

JSON
{
  "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": "1234",
    "card_issuer": "SAMPLE BANK",
    "payment_remark": "",
    "statusDescription": "SUCCESS",
    "status": "SUCCESS",
    "utr": "100000000001",
    "holderName": "Richard Hendricks", //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"
}

Possible values for payment_mode

Possible values for the payment_mode field in the callback are listed below:

JSON
{
    "UPI",
    "IMPS",
    "DEBIT CARD",
    "CREDIT CARD",
    "NET BANKING",
    "MOBILE WALLET",
    "OLA MONEY",
    "EMI",
    "PAY LATER",
    "E CHALAN",
    "NEFT"
}