Skip to main content

Endpoint

POS/v1/partner/createMerchant This endpoint is used to:
  • Create Merchant
  • Generate Merchant ID

Headers

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

Request Body Parameters

NameTypeRequiredDescriptionExample
pidstringYesPartner ID given by UPITranzactABC
firstNameintegerYesFirst name of the merchantPankaj
lastNamestringYesLast name of the merchantKumar
emailstringYesValid email id of the merchant[email protected]
merchantTypestringYesMerchant typestatic OR dynamic
phonestringYesValid phone number of the merchant91823452XX
businessNamestringYesBusiness Name of the merchantABC Private Limited

Code Example

await axios.post(
  "https://api.upitranzact.com/v1/partner/createMerchant",
  {
    pid: "Your Partner ID", // Example: ABC
    firstName: "Pankaj",
    lastName: "Kumar",
    email: "[email protected]",
    merchantType: "dynamic", // static OR dynamic
    phone: "91823452XX",
    businessName: "ABC Private Limited",
  },
  {
    headers: {
      Authorization: "Basic eW91cl9wdWJsaWNfa2V5OnlvdXJfc2VjcmV0X2tleQ==",
    },
  }
);

Response Body

{
    "success": true,
    "message": "Merchant account created successfully",
    "merchant": {
        "id": "ca6e0c79-xxxx-4f5b-xxxx-xxxxxxxx",
        "merchantId": "ABC77xxxx",
        "firstName": "Pankaj",
        "lastName": "Kumar",
        "email": "[email protected]",
        "phone": "91823452xx",
        "merchantType": "dynamic",
        "businessName": "ABC Private Limited",
        "businessReference": "229xxx",
        "emailVerified": false
    }
}