Skip to main content

Pay-In · India

TOPPAY TeamAbout 1 min

Request

The Pay-In API initiates collection transactions from customers. This page covers India (country code in). Request/response fields are the same across markets; use your market’s method codes only.

Request URL

Domain: Prefer unified host openapi.toppayment.com (path unchanged); legacy country domain (e.g. global-in-openapi.toppayment.com) remains available.

EnvironmentURL
Sandboxhttps://openapi.toppayment.com/sandbox/in/pay/prePay
Productionhttps://openapi.toppayment.com/in/pay/prePay

method (Pay-In payment codes for India) is listed in Regional Payment Guide — India.

Request Header

FieldRequiredTypeDescription
Content-TypeMStringFixed value: application/json

Request Body

FieldRequiredTypeDescription
mchNoMString(32)Merchant number
orderNumMString(64)Merchant order number
amountMNumber(32,8)Transaction amount
productDetailMString(100)Product detail
methodMString(16)Payment method (India)
Required. Pass UPI — full list: Regional Payment Guide — India
timestampMString(13)Timestamp in milliseconds
customerNameMString(64)Customer name
customerEmailMString(64)Customer email
customerPhoneMString(32)Customer phone
expiryPeriodONumber(1–9999)Validity in minutes
downNotifyUrlMString(255)Async callback URL
redirectUrlOString(512)Redirect after payment
signMStringSignature — see Signature

Request Body Example

Content-type: application/json

Response

HTTP Response

FieldRequiredTypeDescription
Content-TypeMStringapplication/json

Response Body Parameters

FieldRequiredTypeDescription
successMBooleanSuccess flag
codeMString9999 = success
msgOStringMessage
timeStampMNumberServer time (ms)
dataMObjectPayload
methodMStringPayment method (India) — Regional Payment Guide — India
(Same field list as the Philippines version)
{
    "success": true,
    "code": "9999",
    "msg": null,
    "timeStamp": 1767840272829,
    "data": {
        "orderNum": "IN1234561",
        "platOrderNum": "PRE2009093829059153920",
        "amount": 1000,
        "fee": 20.0,
        "method": "UPI",
        "productDetail": "Product",
        "customerName": "Rajesh Kumar",
        "customerEmail": "[email protected]",
        "customerPhone": "9876543210",
        "validTime": 1767926672819,
        "cashierUrl": "https://example.cashier/pay",
        "payData": "https://example.cashier/pay",
        "payDataType": "CASHIER_URL"
    }
}

Notification

Same callback contract as the Philippines Pay-In: body fields, status string values, and SUCCESS acknowledgment — see Transaction Status Codes.

Example callback (illustrative)

{
    "platOrderNum": "PRE2009165141186183168",
    "version": "v1",
    "orderNum": "IN12345621",
    "amount": 1000,
    "fee": 20,
    "customerName": "Rajesh Kumar",
    "customerEmail": "[email protected]",
    "customerPhone": "9876543210",
    "status": "SUCCESS",
    "sign": "…"
}

Respond with:

SUCCESS