POSTTenures API - EMI Subvention
Use Case
Purpose of this API is to provide the list of EMI plans, grouped by EMI-type (standard/subvention) available for the bank code and card type present in request.
Request Attributes
Head
Attribute | Description |
---|---|
channelId string(3) optional | The parameter value identifies the Channel for which API call is initiated. 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 +
| |||||||||||||||||||||
filters object mandatory | Filters by type of card to fetch the tenure. | ||||||||||||||||||||
Filter +
| |||||||||||||||||||||
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 | ||||||||||||||||||||
originalPrice string conditional | The original price/value of the cart before discount is applied. | ||||||||||||||||||||
applicableTenures string conditional | The tenures on which the promocode is applicable. Possible values = [] and[ 3,6,9] etc.
Note: If applicable tenures = [], then the offer is applicable on all tenures configured for merchant.
|
Response Attributes
Head
Attribute | Description |
---|---|
requestId string | 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 +
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
bankName string | Name of the bank to which card belongs. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
bankCode string | Bank code of the card (ICICI,SBI...) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
cardType string | Type of Card(CREDIT_CARD or DEBIT_CARD) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
planDetails object | Details of the plan that are provided by the cardType | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
PlanDetails +
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
bankLogoUrl string | URL for bank logo |
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/tenures?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}","filters":{"bankCode":"ICICI","cardType":"CREDIT_CARD"}},"head":{"requestId":"REQUESTID_98765","token":"{checksum}","tokenType":"CHECKSUM"}}'