Endpoint
Example: Axios POST Request
Key Parameters
mid
: Your merchant identifier assigned by UPITranzact.amount
: Numeric value between 1 and 100000.order_id
: Optional unique ID to track transaction.redirect_url
: URL to which the user will be redirected after payment.note
: Description or remark for the payment.customer_name
: Name of the customer.customer_email
: Valid email address of the customer.customer_mobile
: Customer’s valid mobile number.Authorization
: Header in the formatBasic base64(public_key:secret_key)
.
Replace all placeholders with your actual values before executing.
Headers
Name | Value |
---|---|
Content-Type | application/x-www-form-urlencoded |
Authorization | Basic base64(public_key:secret_key) |
Request Body Parameters
Name | Type | Description | Example | Required |
---|---|---|---|---|
mid | string | Merchant ID assigned by UPITranzact | ABC | Yes |
amount | integer | Total transaction amount | 200 | Yes |
order_id | string | Unique order identifier for tracking | bd79da4cc3ff1 | No |
redirect_url | string | URL to redirect customer after successful payment | https://example.com/success | Yes |
note | string | Payment remark or purpose | Add Money | Yes |
customer_name | string | Customer’s full name | John | Yes |
customer_email | string | Customer’s email address | john@example.com | Yes |
customer_mobile | string | Customer’s 10-digit mobile number | 0123456789 | Yes |
Authorization
Provide the Authorization header using the Base64 encoding ofpublic_key:secret_key
.
Example Format: