Get EMI According to Interest API

API Command: getEmiAmountAccordingToInterest

The Get EMI Amount According to Interest API (getEmiAmountAccordingToInterest API) is used to get the EMI interest bank rates for all the enabled EMIs.

Environment

Sample request
curl -X POST "https://test.payu.in/merchant/postservice?form=2"-H "accept: application/json" -H "Content-Type: application/x-www-form-urlencoded" -d"key=JP***g&command=getEmiAmountAccordingToInterest&var1=20000&hash=3b16384427372f658244a106258790df9ed601e3c1dcd1f43d08f7e616bfe907f095947491baa3ec8629d33b3903e8b1e0a1872aa009c5f5c34b06466311dc95&hash="
Sample response
(
    [status] => 0
    [msg] => token already used or request pending 
)
  • If failed to cancel a transaction, the response is similar to the following:
Array 
(
     [status] => 0
     [msg] => Cancel request failed
)
Response parameters

The response includes the JSON array and each JSON has the fields as described in the following table:

📘

Reference:

In the JSON Array of the response of the Get EMI Amount According to Interest API, the code displayed for the each issuer (at the beginning of each object). The significance of these codes are described in EMI Options for Get EMI According to Interest API.

ParameterDescriptionExample
transactionAmountThe transaction amount that is will be converted into EMI.20000
loanAmountThe loan amount that needs to be converted as EMI.20000
emiAmountThe amount that needs to be converted as EMI.20000
additionalCostThe processing fee or additional cost for processing the EMI excluding interest.0.00
emiMdrNoteThe EMI Merchant Discount Rate (MDR) note if any for the transaction.0.25
bankRateThe interest rate in percentage for the EMI. This is excluding the processing fee. For example, 12%, 18%, 24%, etc.13
bankChargeThe bank charges for the EMI transaction.0
amountThe principal part of the EMI.6666.67
card_typeThe card type used by the customer and can be any of the following:
credit card

debit card
credit card
emi_valueThe amount to be paid per EMI.6811.63
emi_interest_paidThe total interest paid for all the EMIs.434.89
tenureThe tenure for the EMI in months. For example, 3, 6, 12, 24, 36, etc.3

Request parameters

Additional information

Use the following sample values while trying out the API:

ParameterReference
keyFor more information on how to generate the Key and Salt, refer to any of the following:

- Production: Generate Merchant Key and Salt
- Test: Generate Test Merchant Key and Salt
hashHash logic for this API is:
sha512(key|command|var1|salt)
sha512 For more information about the hash generation process, refer to Encryption of Request.
var1For JSON fields description, refer to Additional Info for General APIs

Example values:

  • var1: Any amount.
Language
Click Try It! to start a request and see the response here!