POSTCheck UPI Account Status API
Use Case
This API can be used by the merchants for checking whether a UPI account exists for a particular user mobile number or not. It can also be used by the merchants for adding a touch of smartness to the static UPI payment icon, and show Paytm as a payment option only to users who have their UPI profile enabled on the Paytm app.
Request Attributes
Head
Attribute | Description |
---|---|
version string optional | Version of the API. Example: v1 |
tokenType string mandatory | This parameter identifies whether the API works on checksum authentication. Possible Values: CHECKSUM |
token string mandatory |
Example: 16Xm7DXbvNqhaLw+HMj4XB6XTQKCoM= |
requestTimestamp string optional | EPOCH timestamp of the time at which request is being sent. |
requestId string optional | Unique reference ID for a transaction which is generated by merchant and sent in the request |
channelId string optional | The parameter value identifies the Channel for which API call is initiated. |
Body
Attribute | Description |
---|---|
mid string mandatory | Paytm provides MID as a unique identifier to each merchant. For your staging MID, click here. You get the production MID post the account activation. Example: INTEGR7769XXXXXX9383 |
mobileNumber string mandatory | mobile number of user without country code |
deviceId string optional | deviceId |
Response Attributes
Head
Attribute | Description |
---|---|
responseTimestamp string | EPOCH timestamp of the time at which response is being sent. |
version string | Version of the API passed in the request. |
Body
Attribute | Description | ||||||||
---|---|---|---|---|---|---|---|---|---|
resultInfo boolean | This parameter gives the information about the result of the API response | ||||||||
ResultInfo +
| |||||||||
upiAccountExist boolean | Whether upi account exists for user Possible Values: true/false |
curl - X POST 'https://secure.paytmpayments.com/ theia/api/v1/checkUPIAccountExist?mid={mid}&orderId=ORDERID_98765'\
--header 'Content-Type: application/json'\
--data '{"head": {"tokenType": "CHECKSUM","token": "{checksum}"},"body": {"mid":"{mid}","mobileNumber": "7777777777","deviceId": "xyz"}}