POSTFetch EMI Detail API
Use Case
This API fetches the list of emi details like tenure, interest rates, min and max amount for requested channel configured for given MID
Request Attributes
Head
Attribute | Description |
---|---|
version string optional | Version of the API. Example: v1 |
requestTimestamp string optional | EPOCH timestamp of the time at which request is being sent. |
channelId string 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"
|
txnToken string mandatory | This is the unique transaction token received in the response of Initiate Transaction API or Initiate Subscription API. It is valid for 15 minutes. Example:f0bed899539742309eebd8XXXX7edcf61588842333227 |
Body
Attribute | Description | ||||||
---|---|---|---|---|---|---|---|
channelCode string mandatory | Channel Code for which you need to fetch EMI details. Possible Values: HDFC, AMEX, ICICI, IDBI etc. | ||||||
amount object optional | Transaction Amount and the currency value. | ||||||
Money +
| |||||||
emiType string conditional | Mandatory, in case merchant wants to fetch EMI plans for a Debit Card bank Possible: DEBIT_CARD, CREDIT_CARD | ||||||
originalAmount string conditional | The original price/value of the cart before discount is applied | ||||||
applicableTenures Array of string conditional | The tenures on which the promocode is applicable. Possible values = [] and[ 3,6,9] etc If applicable tenures = [], then the offer is applicable on all tenures configured for merchant |
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 +
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
emiDetail object | EMI details about channel | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
EmiChannel +
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
extraParamsMap object | Map for any extra information (in case of error). |
Response Codes & Messages
resultCode | resultStatus | resultMsg |
---|---|---|
0000 | S | Success |
1001 | F | Request parameters are not valid |
1006 | F | Session Expired Exception |
2013 | F | Mid in the query param doesn’t match with the Mid send in the request |
2014 | F | OrderId in the query param doesn’t match with the OrderId send in the request |
00000900 | U | System error |
curl -X POST 'https://securestage.paytmpayments.com/theia/v1/fetchEMIDetail?mid={mid}&orderId=ORDERID_98765' \
--header 'Content-Type: application/json' \
--data '{"head":{"txnToken":"f0bed899539742309eebd8XXXX7edcf61588842333227"},"body":{"channelCode":"ICICI"}}'