POSTDirect Bank Request API
Use Case
When JSON request is made to processTransaction API, and merchant has preference nativeOtpSupported, we return APIs for direct bank page which can be used by merchant on its own bank page.
Request Attributes
Body
Attribute | Description |
---|---|
otp string conditional | bank otp (only when request type is submit) Example: 888888 |
requestType string mandatory | Bank form request type Possible values:
submit
,
Form for submit the transaction
cancel
,
Form for cancel the transaction
resend
Form for resend the OTP
|
txnToken string mandatory | This is the unique transaction token received in the response of Initiate Transaction API. It is valid for 15 minutes. Example: f0bed899539742309eebd8XXXX7edcf61588842333227 |
Response Attributes
Head
Attribute | Description |
---|---|
version string | Version of the API passed in the request. |
responseTimestamp string | EPOCH timestamp of the time at which response is being sent. |
Body
Attribute | Description | ||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
resultInfo object | This parameter gives the information about the result of the API response | ||||||||||||||||||||||||||||||
ResultInfo +
| |||||||||||||||||||||||||||||||
txnInfo object | Map of txnInfo | ||||||||||||||||||||||||||||||
TxnInfo +
| |||||||||||||||||||||||||||||||
deepLinkInfo string | Information of DeepLink. Example:upi://pay?pa=test-testmi@paytm&pn=TestMIDOne&mc=5641&tid=PYTM9020XXXXXXXXX971597&tr=90200XXXXX0158971597&tn=txn&am=1&cu=INR |
Response Codes & Messages
resultCode | resultStatus | resultMsg |
---|---|---|
0000 | S | Success |
0001 | F | Fail |
curl -X POST 'https://securestage.paytmpayments.com/theia/api/v1/directBankRequest?mid={mid}&orderId=ORDERID_98765' \
--header 'Content-Type: application/json;charset=UTF-8' \
--data '{"txnToken":"f0bed899539742309eebd8XXXX7edcf61588842333227","requestType":"submit","otp":"123123"}'