POSTBanks API - EMI Subvention
Use Case
Purpose of this API is to provide the list of banks, grouped by EMI-type (standard/subvention) available for EMI.
Request Attributes
Head
Attribute | Description |
---|---|
channelId string(3) optional | Possible values:
WEB
,
For websites, the value to be passed should be "WEB"
WAP
For Mobile websites/App, the value to be passed should be "WAP"
|
requestId string(32) mandatory | Unique reference ID for a transaction which is generated by merchant and sent in the request |
requestTimestamp string(15) mandatory | EPOCH timestamp of the time at which request is being sent. |
version string(4) mandatory | Version of the API. Example: v1 |
tokenType string mandatory | This is for authentication method. |
token string mandatory | For tokenType SSO, use SSO Token of Paytm User. |
Body
Attribute | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
mid string(20) 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 | ||||||||||||||||||||
items object mandatory | Item list sent for EMI For Item based only | ||||||||||||||||||||
Items +
| |||||||||||||||||||||
subventionAmount string optional | Amount on which merchant wants to offer subvention/Amount eligible for subvention For Amount based only Example: 4000.00 | ||||||||||||||||||||
price string optional | Total amount of the cart without any subvention being applied For Amount based only Example: 7000.00 |
Response Attributes
Head
Attribute | Description |
---|---|
requestId string(32) | Unique reference ID for a transaction which is generated by merchant and sent in the request |
responseTimestamp string(15) | EPOCH timestamp of the time at which response is being sent. |
version string(2) | Version of the API passed in the request. |
Body
Attribute | Description | ||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
resultInfo object | This parameter gives the information about the result of the API response | ||||||||||||||||||||||||||||||
ResultInfo +
| |||||||||||||||||||||||||||||||
emiTypes object | List of banks grouped by Emi Types. Any bank providing both subvention and standard EMI plans will be shown in subvention group. | ||||||||||||||||||||||||||||||
EmiTypes +
|
Response Codes & Messages
resultCode | resultStatus | resultMsg |
---|---|---|
0000 | S | Success |
0001 | F | FAILED |
1001 | F | Request parameters are not valid |
1007 | F | Missing mandatory element |
2006 | F | MID is invalid |
EMI_001 | F | Mandatory info is missing |
EMI_002 | F | Items's data is not valid |
EMI_003 | F | Items are empty |
EMI_004 | F | Some error occured. Please try later |
EMI_005 | F | Plans not available right now. Please try later |
EMI_006 | F | No emi options are available for these items |
EMI_007 | F | Invalid bank details |
EMI_008 | F | You are not eligible for availing EMI on this card |
EMI_009 | F | Selected plan does not exist |
EMI_010 | F | Selected plan is not eligible for these items |
EMI_011 | F | Selected plan details might have changed |
EMI_012 | F | Lock is acquired, please try after some time |
EMI_013 | F | Cards details are invalid |
EMI_014 | F | No subvented items found to be stamped |
EMI_015 | F | Order data could not be stamped. Please try again |
EMI_016 | F | Order item status could not be updated. Please try again |
EMI_017 | F | More than 2 retries are not allowed |
EMI_018 | F | EMI is not enabled on some items |
EMI_019 | F | Some of the selected offers are invalid |
EMI_020 | F | Selected plan is not offered by this bank |
curl -X POST 'https://securestage.paytmpayments.com/theia/api/v1/emiSubvention/banks?mid={mid}' \
--header 'Content-Type: application/json' \
--data '{"body":{"items":[{"id":"ITEMID_98765","productId":"PRODUCTID_98765","brandId":"BRANDID_98765","categoryList":["Electronics"],"quantity":"1","price":"1000","verticalId":"PAYTM_EMI","isEmiEnabled":true}],"mid":"{mid}"},"head":{"requestId":"REQUESTID_98765","token":"{CHECKSUM}","tokenType":"CHECKSUM"}}'