List of CCAvenue Response Parameters & Error Codes

List of CCAvenue Response Code

Name Description Type (length)
order_id Unique ID sent by the merchant at the time of initiating the transaction. Alphanumeric (30)
tracking_id Unique payment reference number generated by CCAvenue for each order. Numeric (12)
bank_ref_no Reference number generated by the bank for the transaction. Alphanumeric
order_status Status of the transaction.
Success
Failure
Aborted
Invalid
Alphabets (15)
failure_message Reason for failure. Alphanumeric
payment_mode Mode of payment used by the customer
Credit Card
Net banking
Debit Card
Cash Card
Mobile Payment
Alphabets
card_name The name of the card/bank used by the customer to make the payment. Credit Card – Visa, Mastercard, Amex Netbanking – ICICI, HDFC, SBI etc. Alphanumeric
status_code Authorization code received from the bank. Numeric (3)
status_message Authorization status message received from the bank. Alphanumeric (150)
currency Currency code in which the transaction was processed.
INR – Indian Rupee
USD – United States Dollar
SGD – Singapore Dollar
GBP – Pound Sterling
EUR – Euro, official currency of Eurozone
Alphabets (3)
amount Order amount Numeric (12, 2)
billing_ name Name of the customer Alphabets (60)
billing_ address Customer’s billing address Alphanumeric (150)
billing_ city Customer’s billing city Alphabets (30)
billing_ state Customer’s billing state Alphabets (30)
billing_ zip Customer’s billing zip code Alphanumeric (15)
billing_ country Customer’s billing country Alphabets (50)
billing_ tel Customer’s phone number Numeric (20)
billing_ email Customer’s email address Alphanumeric (70)
delivery_ name Recipient’s name Alphabets (60)
delivery_ address Shipping address Alphanumeric (150)
delivery_ city Shipping city Alphabets (30)
delivery_ state Shipping state Alphabets (30)
delivery_ zip Shipping zip code Alphanumeric (15)
delivery_ country Shipping country Alphabets (50)
delivery_ tel Shipping phone number Numeric (22)
merchant_param1 Additional information about the transaction sent by the merchant. Alphanumeric (100)
merchant_param2 Additional information about the transaction sent by the merchant. Alphanumeric (100)
merchant_param3 Additional information about the transaction sent by the merchant. Alphanumeric (100)
merchant_param4 Additional information about the transaction sent by the merchant. Alphanumeric (100)
merchant_param5 Additional information about the transaction sent by the merchant. Alphanumeric (100)
vault This parameter can be used if merchant availing the vault option. On using vault functionality if card details are saved at CCAvenue end value returned will be Y. If card details are not saved at CCAvenue end the value returned for this parameter will be N. Character (1)
offer_type This parameter can be used for sending additional information if customer has used any discount or promotion while completing the transaction. If customer is using discount-coupon, value of this parameter would be discount. If customer is using promo-code, value of this parameter would be promotion. Alphabets (9)
offer_code This parameter can be used for sending additional information about the discount coupon and Promo code used while completing the transaction. If customer has used Discount the value sent would be Discount code. If customer has used Promotion the value sent would be Promo code. Alphanumeric (30)
discount_value This parameter can be used for sending additional information about the discounted amount. Numeric (12,2)

List of CCAvenue Error Codes

Error Code Short Message Long Message Correcting this Error
10002 Authentication Failed Merchant Authentication failed This error can be caused by an incorrect merchant ID, an incorrect access code, or if the order originates from an unregistered URL. Make sure that all three of these values are correct. For your security, CCAvenue does not report exactly which of these three values might be in error.
21001 Missing Parameter order_id:Required parameter missing Ensure that the order_id parameter is not blank.
21002 Missing Parameter currency: Required paramter missing Ensure that the currency parameter is not blank.
21003 Missing Parameter amount:Required parameter missing Ensure that the amount parameter is not blank.
21004 Missing Parameter billing_name: Required parameter missing Ensure that the billing_name parameter is not blank.
21005 Missing Parameter billing_address: Required parameter missing Ensure that the billing_address parameter is not blank.
21006 Missing Parameter billing_city: Required parameter missing Ensure that the billing_city parameter is not blank.
21007 Missing Parameter billing_state: Required parameter missing Ensure that the billing_state parameter is not blank.
21008 Missing Parameter billing_zip: Required parameter missing Ensure that the billing_zip parameter is not blank.
21009 Missing Parameter billing_country: Required parameter missing Ensure that the billing_country parameter is not blank.
21010 Missing Parameter billing_tel: Required parameter missing Ensure that the billing_tel parameter is not blank.
21011 Missing Parameter billing_email: Required parameter missing Ensure that the billing_email parameter is not blank.
21012 Missing Parameter delivery_name: Required parameter missing Ensure that the delivery_name parameter is not blank.
21013 Missing Parameter delivery_address: Required parameter missing Ensure that the delivery_address parameter is not blank.
21014 Missing Parameter delivery_city: Required parameter missing Ensure that the billing_city parameter is not blank.
21015 Missing Parameter delivery_state: Required parameter missing Ensure that the delivery_state parameter is not blank.
21016 Missing Parameter delivery_zip: Required parameter missing Ensure that the delivery_zip parameter is not blank.
21017 Missing Parameter delivery_country: Required parameter missing Ensure that the delivery_country parameter is not blank.
21018 Missing Parameter delivery_tel: Required parameter missing Ensure that the delivery_tel parameter is not blank.
21020 Missing Parameter card_name: Required parameter missing Ensure that the card_name parameter is not blank.
21021 Missing Parameter card_type: Required parameter missing Ensure that the card_type parameter is not blank.
21022 Missing Parameter payment_option: Required parameter missing Ensure that the payment_option parameter is not blank.
21023 Missing Parameter card_number: Required parameter missing Ensure that the card_number parameter is not blank.
21024 Missing Parameter expiry_month: Required parameter missing Ensure that the expiry_month parameter is not blank.
21025 Missing Parameter expiry_year: Required parameter missing Ensure that the expiry_year parameter is not blank.
21026 Missing Parameter cvv_number: Required parameter missing Ensure that the cvv_number parameter is not blank.
21027 Missing Parameter issuing_bank: Required parameter missing Ensure that the issuing_bank parameter is not blank.
21028 Missing Parameter emi_plan_id: Required parameter missing Ensure that the emi_plan_id parameter is not blank.
21029 Missing Parameter emi_tenure_id: Required parameter missing Ensure that the emi_tenure_id parameter is not blank.
21031 Missing Parameter mm_id: Required parameter missing Ensure that the mmid parameter is not blank.
21032 Missing Parameter otp: Required parameter missing Ensure that the otp parameter is not blank.
31001 Invalid Parameter order_id:Invalid Parameter Ensure that the order_id parameter is not Invalid.
31002 Invalid Parameter currency: Invalid Parameter Ensure that the currency parameter is not Invalid.
31003 Invalid Parameter amount:Invalid Parameter Ensure that the amount parameter is not Invalid.
31004 Invalid Parameter billing_name: Invalid Parameter Ensure that the billing_name parameter is not Invalid.
31005 Invalid Parameter billing_address: Invalid Parameter Ensure that the billing_address parameter is not Invalid.
31006 Invalid Parameter billing_city: Invalid Parameter Ensure that the billing_city parameter is not Invalid.
31007 Invalid Parameter billing_state: Invalid Parameter Ensure that the billing_state parameter is not Invalid.
31008 Invalid Parameter billing_zip: Invalid Parameter Ensure that the billing_zip parameter is not Invalid.
31009 Invalid Parameter billing_country: Invalid Parameter Ensure that the billing_country parameter is not Invalid.
31010 Invalid Parameter billing_tel: Invalid Parameter Ensure that the billing_tel parameter is not Invalid.
31011 Invalid Parameter billing_email: Invalid Parameter Ensure that the billing_email parameter is not Invalid.
31012 Invalid Parameter delivery_name: Invalid Parameter Ensure that the delivery_name parameter is not Invalid.
31013 Invalid Parameter delivery_address: Invalid Parameter Ensure that the delivery_address parameter is not Invalid.
31014 Invalid Parameter delivery_city: Invalid Parameter Ensure that the billing_city parameter is not Invalid.
31015 Invalid Parameter delivery_state: Invalid Parameter Ensure that the delivery_state parameter is not Invalid.
31016 Invalid Parameter delivery_zip: Invalid Parameter Ensure that the delivery_zip parameter is not Invalid.
31017 Invalid Parameter delivery_country: Invalid Parameter Ensure that the delivery_country parameter is not Invalid.
31018 Invalid Parameter delivery_tel: Invalid Parameter Ensure that the delivery_tel parameter is not Invalid.
31020 Invalid Parameter card_name: Invalid Parameter Ensure that the card_name parameter is not Invalid.
31021 Invalid Parameter card_type: Invalid Parameter Ensure that the card_type parameter is not Invalid.
31022 Invalid Parameter payment_option: Invalid Parameter Ensure that the payment_option parameter is not Invalid.
31023 Invalid Parameter card_number: Invalid Parameter Ensure that the card_number parameter is not Invalid.
31024 Invalid Parameter expiry_month: Invalid Parameter Ensure that the expiry_month parameter is not Invalid.
31025 Invalid Parameter expiry_year: Invalid Parameter Ensure that the expiry_year parameter is not Invalid.
31026 Invalid Parameter cvv_number: Invalid Parameter Ensure that the cvv_number parameter is not Invalid.
31027 Invalid Parameter issuing_bank: Invalid Parameter Ensure that the issuing_bank parameter is not Invalid.
31028 Invalid Parameter emi_plan_id: Invalid Parameter Ensure that the emi_plan_id parameter is not Invalid.
31029 Invalid Parameter emi_tenure_id: Invalid Parameter Ensure that the emi_tenure_id parameter is not Invalid.
31030 Invalid Parameter order_uid: Invalid Parameter Ensure that the order_uid parameter is not Invalid.
31031 Invalid Parameter mm_id: Invalid Parameter Ensure that the mm_id parameter is not Invalid.
31032 Invalid Parameter otp: Invalid Parameter Ensure that the otp parameter is not Invalid.
31034 Invalid Parameter Selected EMI facility is not valid for entered card As verified by bank EMI transactions are not enabled on this card.

13 thoughts on “List of CCAvenue Response Parameters & Error Codes

    • aravin says:

      You can find the response handler in CCAvenue official website itself. Also, I have given the response handler below.

      if (IsPost)
      {
      string workingKey = "add_your_32_bit_working_key_here";//put in the 32bit alpha numeric key in the quotes provided here
      CCACrypto ccaCrypto = new CCACrypto();
      string encResponse = ccaCrypto.Decrypt(Request.Form["encResp"], workingKey);
      NameValueCollection Params = new NameValueCollection();
      string[] segments = encResponse.Split('&');
      foreach (string seg in segments)
      {
      string[] parts = seg.Split('=');
      if (parts.Length > 0)
      {
      string Key = parts[0].Trim();
      string Value = parts[1].Trim();
      Params.Add(Key, Value);
      }
      }

      for (int i = 0; i < Params.Count; i++) { Response.Write(Params.Keys[i] + " = " + Params[i] + "
      ");
      }
      }

      The above code will print each response parameter in single line.

  1. Hi Team,

    Am getting this error.

    Error Code: 21002 currency: Required paramter missing

    But i have the currency code pretty much in the code. Here is the piece of code:

    <input type="hidden" name="amount" value="”>
    <input type="hidden" name="order_id" value="”>
    <input type="hidden" name="redirect_url" value="”>
    <input type="hidden" name="billing_name" value="”>
    <input type="hidden" name="billing_address" value=", Paying For “>
    <input type="hidden" name="billing_country" value="”>
    <input type="hidden" name="billing_state" value="”>

    <input type="hidden" name="billing_zip" value="”>
    <input type="hidden" name="billing_tel" value="”>
    <input type="hidden" name="billing_email" value="”>
    <input type="hidden" name="billing_notes" value="”>
    <input type="hidden" name="delivery_name" value="”>
    <input type="hidden" name="delivery_address" value="”>
    <input type="hidden" name="delivery_country" value="”>
    <input type="hidden" name="delivery_state" value="”>
    <input type="hidden" name="delivery_tel" value="”>
    <input type="hidden" name="delivery_notes" value="”>
    <input type="hidden" name="Merchant_Param" value="”>
    <input type="hidden" name="billing_city" value="”>
    <input type="hidden" name="billing_zip" value="”>
    <input type="hidden" name="delivery_city" value="”>
    <input type="hidden" name="delivery_zip" value="”>

    Please advise asap.

  2. jc says:

    Hi. Even thought i’m sending currency paramter as “INR” i still keep getting currency parameter missing error. Can someone please help?

  3. Sunil Kumar says:

    Sir i got error “Error Code: 10001 Invalid Request – Encrypted request invalid/not present.

    Don’t worry… It happens to the best of us.”

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.