post https://mercury-uat.phonepe.com/v3/payLink/init
{
"merchantId":"UATMERCHANT101",
"transactionId":"A661",
"merchantOrderId":"M123456789",
"amount":100,
"mobileNumber":"7065265407",
"message":"collect for 1 order",
"expiresIn":3600,
"shortName":"DemoCustomer",
"subMerchantId":"DemoMerchant"
}
Encoded Request
ewogIm1lcmNoYW50SWQiOiJVQVRNRVJDSEFOVDEwMSIsCiAidHJhbnNhY3Rpb25JZCI6IkE2NjEiLAogIm1lcmNoYW50T3JkZXJJZCI6Ik0xMjM0NTY3ODkiLAogImFtb3VudCI6MTAwLAogIm1vYmlsZU51bWJlciI6IjcwNjUyNjU0MDciLAogIm1lc3NhZ2UiOiJjb2xsZWN0IGZvciAxIG9yZGVyIiwKICJleHBpcmVzSW4iOjM2MDAsCiAic2hvcnROYW1lIjoiRGVtb0N1c3RvbWVyIiwKICJzdWJNZXJjaGFudElkIjoiRGVtb01lcmNoYW50Igp9
Response Body
Parameter Name | Data Type | Description |
---|---|---|
success |
| Success status of the request |
code |
| Status of the transaction |
message |
| Short message about status of request |
data |
| DATA JSON Object |
DATA JSON Object
Parameter Name | Data Type | Description |
---|---|---|
transactionId |
| Unique Transaction ID generated by the merchant to track |
amount |
| Transaction amount in paise |
merchantId |
| Unique Merchant ID assigned to the merchant by |
payLink |
| Payment link to be shared with customer |
mobileNumber |
| Mobile Number |