Endpoint
POST/v1/payments/createOrderRequest
This endpoint is used to:
- Generate a unique order for a payment
- Optionally pass a custom order ID
- Redirect the customer to a success URL after payment
Headers
Name | Value |
---|---|
Content-Type | application/x-www-form-urlencoded |
Authorization | Basic base64(public_key:secret_key) |
Request Body Parameters
Name | Type | Required | Description | Example |
---|---|---|---|---|
mid | string | Yes | Merchant ID assigned by UPITranzact | ABC |
amount | integer | Yes | Payment amount (between 1 - 100000) | 200 |
order_id | string | No | Custom unique order ID | bd79da4cccff1 |
redirect_url | string | Yes | URL to redirect the customer after successful payment | https://example.com/success |
note | string | Yes | Payment remark | Add Money |
customer_name | string | Yes | Full name of the customer | John |
customer_email | string | Yes | Valid email address of the customer | john@example.com |
customer_mobile | string | Yes | Valid 10-digit mobile number | 0123456789 |