Skip to main content

Endpoint

POS/v1/partner/createPaymentRequest This endpoint is used to:
  • Create Payment Request
  • Generate Dynamic QR Code

Headers

NameValue
Content-Typeapplication/x-www-form-urlencoded
AuthorizationBasic base64(public_key:secret_key)

Request Body Parameters

NameTypeRequiredDescriptionExample
pidstringYesPartner ID given by UPITranzactPABC
midstringYesUPITranzact merchant idABC
amountintegerYesPayment amount (between 1 - 100000)100
merchantReferenceIdstringYesCustom merchant ref IDORD123
customer_namestringYesCustomer namePankaj kumar
customer_emailstringYesValid email address[email protected]
customer_mobilestringYesValid phone number of the merchant91823452XX

Code Example

await axios.post(
  "https://api.upitranzact.com/v1/partner/createPaymentRequest",
  {
	pid: "Your Partner ID", //PABC
    mid: "Your Merchant ID", // Example: ABC
    amount: "100",
    merchantReferenceId: "ORD12345",
    customer_name: "John",
    customer_email: "[email protected]",
    customer_mobile: "0123456789",
  },
  {
    headers: {
      Authorization: "Basic eW91cl9wdWJsaWNfa2V5OnlvdXJfc2VjcmV0X2tleQ==",
    },
  }
);

Response Body

{
    "status": true,
    "statusCode": 200,
    "msg": "Payment Intent created successfully",
    "data": {
        "intent": "Link starts with upi://",
        "phonepe": "PhonePe UPI Intent Link",
        "paytm": "Paytm UPI Intent Link",
        "gpay": "Google Pay UPI Intent Link",
        "dynamicQR": "Dynamic QR Link",
        "expiry": "2025-01-20 11:23:10",
        "amount": "100",
        "orderId": "utz_6b3ff790-XXX" // Merchant Reference Id
    }
}