Get EMI Amount according to Interest API

Get EMI Amount According to Interest API

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

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

{
  "7": {
    "EMIA3": {
      "transactionAmount": 100000,
      "paybackAmount": 0,
      "loanAmount": 100000,
      "emiAmount": 33333.33,
      "additionalCost": "0.00",
      "emiMdrNote": null,
      "emiBankInterest": 16,
      "bankRate": null,
      "bankCharge": 0,
      "amount": 33333.33,
      "card_type": "credit card",
      "emi_value": 34226.15,
      "emi_interest_paid": 2678.44,
      "tenure": "03 months"
    },
    /* Additional entries omitted for brevity */
  }
}

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 cardcredit 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:

Parameter

Reference

key

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

hash

Hash logic for this API is:
sha512(key\|command\|var1\|salt) sha512 For more information about the hash generation process, refer to Encryption of Request.

var1

For 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!