# 1. WebPay Create
# HTTP request info
# URL
{domain}/open-api/webpay/generate
# Request Method
POST
# Content-Type
application/json
# Request Body
| parameter name | required | type of data | length | description |
|---|---|---|---|---|
| timestamp | Yes | long | - | current timestamp |
| channelCode | Yes | string | - | channel code(WebPay ChannelCode List) |
| mchOrderId | Yes | string | 1-32 | merchant order ID, alphanumeric, max length 32 |
| amount | Yes | integer | - | amount, the unit is cent |
| notifyUrl | Yes | string | 1-256 | merchant payment notification URL |
| redirectUrl | Yes | string | 1-512 | payment redirectUrl URL |
| customerName | Yes | string | 1-128 | customer name, max length 100 |
| Yes | string | 1-128 | customer email address | |
| mobile | Yes | string | 10-11 | customer mobile phone number |
| remark | NO | string | 1-256 | remark |
| expireSeconds | NO | integer | - | expiration time,unit is second,from 30 to 3600,default is 3600 |
# Response parameters
| parameter name | type of data | description |
|---|---|---|
| mchOrderId | string | merchant order ID, alphanumeric, max length 32 |
| payUrl | string | order payment link |
| transactionId | string | transaction ID |
| expiresTime | string | expiration time |
# Request example
# Request body
{
"appId": "6e2d4b6f926c44f8ab4e0f5c76cdec69",
"sign": "tVa+aoAXH0ls1IoPznzkFyF+4v+iTZaCSttPWmYl1kCHeh8mwao8cqAD7Y7wdymcr9yavKh4bKT18KeLu27g7Q5GqhEQ0cm1dkARe+i2xoH32la4HAzBfPj9liULDawGoPbo739+FLgZnV79CLaiukvqtnkgI/Km6J/KccRPl2CtS4PUjxCyRicOAcv91KZiVOxyhoP9bKhvwtCkCIlkpBHKWskBPCxxfctoORjgXWj7FhRPLYBuRDaczfmr2um9aNXhVoH1XFZf7Gu67n6RmeB0kc2dHFPI89JEI0PwGq+bvbCAEUtHK4SlLexCtbMoCgGWKTJbSMDTvVF126jz8g==",
"param": "{\"mchOrderId\":\"EXAMPLE00000001\",\"amount\":1100,\"customerName\":\"Jonathan\",\"channelCode\":\"RPP_PUBLIC_URL\",\"email\":\"example@gmail.com\",\"mobile\":\"09123456789\",\"callbackUrl\":\"https://example.com/\",\"redirectUrl\":\"https://example.com/\",\"timestamp\":1676017834369,\"expireSeconds\":300}"
}
# Response example
{
"code": 10000,
"message": "Success",
"data": {
"payUrl": "https://api.razorpay.com/v1/payments/NE3d4lYIu7XPgX/authenticate",
"transactionId": "C1218702956934697612",
"mchOrderId": "EXAMPLE00000001",
"expiresTime": "2023-12-31 23:00:00"
}
}