Payment Link API

{
 "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

Boolean

Success status of the request

code

ENUM

Status of the transaction

message

String

Short message about status of request

data

JSON

DATA JSON Object

DATA JSON Object

Parameter Name

Data Type

Description

transactionId

String

Unique Transaction ID generated by the merchant to track
this request to PhonePe

amount

LONG

Transaction amount in paise

merchantId

String

Unique Merchant ID assigned to the merchant by
PhonePe

payLink

Short URL

Payment link to be shared with customer

mobileNumber

String

Mobile Number

Language
Click Try It! to start a request and see the response here!