HDFC API Document
HDFC API Document
1
Statement of Confidentiality
This document contains information that is proprietary and confidential to Avenues India Private Limitedwhichshallnot
bedisclosed,transmitted,orduplicated,usedinwholeorinpartforany purposeotherthanitsintendedpurpose.Any
useordisclosureinwholeorinpartofthis informationwithoutexpresswrittenpermissionofAvenuesIndiaPrivateLtd
isprohibited.Any othercompanyandproductnamesmentionedareusedforidentificationpurposesonly,andmay be
trademarks of their respective owners.
2
CCAvenue API
The CCAvenue API is designed to enable you to interact securely with our API from your client-side web application.
You can get XML, JSON or String responses from the API, including errors.
You need an active account to initiate an API call to the CCAvenue payment gateway.
API Authentication
Merchant needs an active account to initiate an API call to the CCAvenue payment gateway. Merchants will have
to log in to their CCAvenue M.A.R.S account and get the authentication credentials for initiating API calls.
Merchant must provide CCAvenue with the public IP address from where the API calls will be initiated. API calls
will work only after CCAvenue registers the IP address provided.
Login to your CCAvenue M.A.R.S account, under Settings tab -> API Keys page; copy the following
credentials:
1. Merchant ID
2. Access Code
3. Encryption Key
3
API Calls
1. Confirm – The Confirm API call allows you to confirm a pending order. Only confirmed orders are
settled into the merchant’s account. An order older than 12 days is automatically cancelled.
Once an order has been auto-cancelled by the system, it cannot be confirmed.
2. Cancel – The Cancel API call allows you to cancel a pending order. Funds will be refunded to the
credit card or debit card or net banking account that was originally charged. An order older than
12 days is automatically cancelled.
3. Refund – The Refund API call allows you to refund an order/transaction that has previously been
executed but not yet refunded. Funds will be refunded to the credit card or debit card or net
banking account that was originally charged.
4. Status(Kindly pass version as 1.2) – The Status API call can be used to ascertain the status of a
transaction/order. You can use this call if you have not received status/information for a
transaction request. It can also be used as an additional security measure to reconfirm the
parameters posted back.
5. Order Lookup – The Order Lookup API call can be used to find transactions/orders based on
given criteria.
6. Pending Orders – The Pending Orders API call can be used to list transactions which are yet to be
confirmed or cancelled. Pending orders need to be confirmed for them to be settled, those older
than 12 days are automatically cancelled.
7. Delete Customer - The Delete Customer API call is used to delete all saved payment options for the
customer.
8. Delete Customer Payment Option - The Delete Customer Payment Option API call is used to delete
a particular payment option saved for the customer.
9. Add Customer Payment Option(Kindly pass version as 1.2) – Add Customer payment option
API call is used to add another payment option for registered customer of the merchant.
10. Get Customer Payment Option(Kindly pass version as 1.2) – The Customer payment option API call
is used to list payment options saved for a customer. Payments options are saved for a customer in
the vault for easy and convenient payment.
11. Generate Invoice(Kindly pass version as 1.2) - The Invoice API call is used to generate an invoice for a
customer. Values can be passed as for generating invoice using the flexibility of Invoice Settings.
4
12. Generate Recurring Invoice - Recurring invoice call is used to generate recurring invoice for a
customer of a merchant .
13. Generate Quick Invoice(Kindly pass version as 1.2) - This Quick Invoice API call is used to
generate a quick invoice for a customer. This is a flavour of regular invoice but with limited
options; hence an easy implementation.
14. Get Item List - The Item list API call is used to find the list of configured Items and task for
merchant. The items and tasks are used to create a regular Invoice or a recurring invoice.
15. Invoice Lookup - Invoice Lookup API call is used to find list of invoice order lookup details of
orders.
16. Update Merchant Invoice Reference No - Update Invoice reference Number API call is used to update
Invoice referencenumberifthe same was notprovidedat the timeof invoicegeneration.
17. Update Merchant Param - Update Merchant params API is used to add some extra parameter
against Merchant params if the same could not be done at the time of the transaction.
18. Update Billing Details - Update billing details API call is used to update customer billing
information against an order.
19. Bin Details – This is used to fetch the card details for a bin number.
20. PayId Details - Kindly pass version as 1.2) - PayId Details API call is used to list
transactions for a given PayId.
21. Payouts Summary(Kindly pass version as 1.2) - Payouts Summary API call is used to list
payouts summary for a merchant for a given settlement date.
22. getRefundDetails – The getRefundDetails API call can be used to fetch refund information of
the particular transaction.
Requests sent to CCAvenue will hold the parameters mentioned in the table below.
enc_request, has to be encrypted using AES similar to the method used for real-time transaction. Encryption key is
5
mapped to Access code as mentioned in API Authentication section.
Name Description
enc_request(required) AES encrypted request data.
access_code(required) This is the access codeforyour application. You must sendthis with each
request.
command(required) This is the command to access the API Calls. You must send this with each
request.
request_type(required) API requests are accepted in XML, JSON or String. Specify the request type.
response_type(optional) API returns XML, JSON or String responses. If left blank, the response will
be in the same format as request.
version(required) This is the version to access API based on version calls and current possible
values is 1.1
Example:
enc_request=63957FB55DD6E7B968A7588763E08B240878046EF2F520C44BBC63FB9CCE726209A47348
77F5904445591304ABB2F5E598B951E39EAFB9A24584B00590ADB077ADE5E8C444EAC5A250B1EA96F6
8D22E44EA2515401C2CD753DBA91BD0E7DFE7341BE1E7B7550&access_code=8JXENNSSBEZCU8KQ&co
mmand=confirmOrder&request_type=XML&response_type=XML&version=1.1
6
Decryption of Response for API Calls
Response received from CCAvenue will hold the parameters mentioned in the table below. enc_response,
when encrypted will have to be decrypted using AES similar to the method used for real- time transactions.
Encryption key is mapped to Access code as mentioned in API Authentication section.
Name Description
enc_response AES encrypted response containing format as per response_type.
enc_error_code enc_error_code contains value if status is “1” please refere belowtable
for the error code.
status This states whether the call was successful or not. If value of this
parameter is “1” then you need not decrypt the enc_response as it will
contain plain error message.
Note: - Possible refer below table for enc_response value when status value is “1” as follows.
Example:
Successful:
status=0&enc_response=63957FB55DD6E7B968A7588763E08B240878046EF2F520C44BBC63FB9CCE726
209A473457E6B13721EC6D05ED13A0483ACFDD6F11F284AE79755D47E79687478F93CFCD3CD97510B6
7B961CDB5279F209F5C451F3039696F13C990B963854C8CADF730&enc_error_code=
Error:
7
1. Confirm
Confirm API call allows you to confirm a pending order. Only confirmed orders are settled into the merchant’s
account. An order older than 12 days is automatically cancelled. Once an order has been
auto-cancelled by the system, it cannot be confirmed. You can optionally confirm only part of an order.
Remember,youcando soonly once.Remaining funds willbe refunded tothe credit cardor debit cardor net
banking account that was originally charged.
Request Parameters
Note: You will have to encrypt the above request and store in the “enc_request” parameter before sending it to
CCAvenue. Kindly refer to the encryption section.
8
"order_List": [
{ "reference_no":"203000099429", "amount": "1.00"},
{ "reference_no": "203000104640", "amount": "1.00"}
]
}
Note: You will have to encrypt the above request and store in the “enc_request” parameter before sending
it to CCAvenue. Kindly refer to the encryption section.
Format: reference_no$amt|reference_no$amt|reference_no$amt|
Example: 203000099429$1.00|203000104640$1.00|
Note: You will have to encrypt the above request and store in the “enc_request” parameter before sending
it to CCAvenue. Kindly refer to the encryption section.
Response Parameters
9
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Order_Result error_code="">
<error_desc></error_desc>
<success_count>0</success_count>
<failed_List>
<failed_order error_code="51304 " reason=" Invalid order/tracking id " reference_no="123456788"/>
<failed_order error_code="51206" reason="Order List: Invalid Parameter"
reference_no="123456788"/>
</failed_List>
</Order_Result>
Note: You will have to decrypt the above response from “enc_response” parameter. Kindly refer to the
decryption section.
{
"failed_List":[
{"reference_no":"123456788","reason":" Invalid order/tracking id
","error_code":"51304 "},
{"reference_no":"123456788","reason":"Order List: Invalid
Parameter","error_code":"51206"}
],
"error_desc":"",
"success_count":0,
"error_code":""
}
Note: You will have to decrypt the above response from “enc_response” parameter. Kindly refer to the
decryption section.
Format: success_count|error_code$reference_no$reason^error_code$reference_no$reason|
Note: You will have to decrypt the above response from “enc_response” parameter. Kindly refer to the
decryption section.
10
2. Cancel
Request Parameters
Note: You will have to encrypt the above request and store in the “enc_request” parameter before sending it to
CCAvenue. Kindly refer to the encryption section.
{
"order_List": [
11
{"reference_no":"203000099429","amount": "1.00" },
{"reference_no":"203000099429","amount": "1.00" }
]
}
Note: You will have to encrypt the above request and store in the “enc_request” parameter before sending it to
CCAvenue. Kindly refer to the encryption section.
Format: reference_no$amt|reference_no$amt|
Example: 203000099429$1.00|203000104640$101.23|
Note: You will have to encrypt the above request and store in the “enc_request” parameter before sending it to
CCAvenue. Kindly refer to the encryption section.
Response Parameters
Note: You will have to decrypt the above response from “enc_response” parameter. Kindly refer to the
decryption section.
Note: You will have to decrypt the above response from “enc_response” parameter. Kindly refer to the
decryption section.
Format: success_count|error_code$reference_no$reason^error_code$reference_no$reason|
Note: You will have to decrypt the above response from “enc_response” parameter. Kindly refer to the
decryption section.
3. Refund
The Refund API call allows you to refund an order/transaction that has previously been executed but not yet
refunded. Funds will be refunded to the credit card or debit card or net banking account that was originally
charged.
13
Request Parameters
Note: You will have to encrypt the above request and store in the “enc_request” parameter before sending it to
CCAvenue. Kindly refer to the encryption section.
{
"reference_no":"1236547",
"refund_amount":"1.0",
"refund_ref_no":"API1234"
}
Note: You will have to encrypt the above request and store in the “enc_request” parameter before sending
it to CCAvenue. Kindly refer to the encryption section.
14
Example STRING Request
Format: reference_no|refund_amount|refund_ref_no|
Example: 203000094245|1.00|API1234|
Note: You will have to encrypt the above request and store in the “enc_request” parameter before sending
it to CCAvenue. Kindly refer to the encryption section.
Response Parameters
Success Response:
Failure Response:
15
Note: You will have to decrypt the above response from “enc_response” parameter. Kindly refer to the
decryption section.
Success Response:
{
"reason":"",
"error_code":"",
"refund_status":0
}
Failure Response:
{
"reason":"Reference number: Invalid Parameter",
"error_code":"51310",
"refund_status":1
}
Note: You will have to decrypt the above response from “enc_response” parameter. Kindly refer to the
decryption section.
refund_status|
Example: 0|
Failure Response:
Format: refund_status|error_code|reason|
Example: 1|51310|Reference number: Invalid Parameter|
Note: You will have to decrypt the above response from “enc_response” parameter. Kindly refer to the
decryption section.
16
4. Status
The Status API call can be used to ascertain the status of a transaction/order. You can use this call if you have not
received status/information for a transaction request. It can also be used as an additional security measure to
reconfirm the parameters posted back.
Request Parameters
Note: You will have to encrypt the above request and store in the “enc_request” parameter before sending it to
CCAvenue. Kindly refer to the encryption section.
17
Example JSON Request
{
"reference_no": "225013271813",
"order_no": "33231644"
}
Note: You will have to encrypt the above request and store in the “enc_request” parameter before sending
it to CCAvenue. Kindly refer to the encryption section.
Response Parameters
Name Description Note
status This states whether the call was successful or not. Value “0” denotes that the API
If value of this parameter is “1” then you need call wassuccessful.
not decrypt the enc_response as it will contain Value “1” denotes API call failure. On
plain error message. enc_response is plain text
represents the error message.
18
Alphanumeric with special
characters (hyphen, underscore,
dot, @)(70).
order_bill_name Order billing name for the order. Possible value for name is
Alphanumeric with special
characters (space, hyphen,
apostrophe, underscore, dot)(60).
order_bill_state Order billing state for the order. Alphanumeric with special
characters (hyphen, dot and
space)(30).
order_bill_tel Order billing telephone no. for the order. Numeric(10)
order_bill_zip Order billing address’s pin code for the order. Possible value for zip is
Alphanumeric with special
characters (hyphen and space)
(15).
order_capt_amt Captured amount for the transaction. Decimal(12,2).
Captured amount can be full or partial of the
transaction amount.
order_curr Possible order Currency in which merchant String Examples:
processed the transaction. INR – Indian Rupee
USD – United States Dollar
SGD – Singapore Dollar
GBP – Pound Sterling
EUR – Euro, official currency of
Eurozone
Page 19
order_fraud_status Specify whether orders are valid or not. String
Possible Values are:
1) Value “High” denotes “High
Risk”
2) Value “Low” denotes “Low
Risk”
3) Value “NR” denotes “No Risk”
4) Value “GA” denotes “Go
Ahead”
5) Value“NA” denotes“Not
Applicable”
Page 20
order_ship_tel Telephone no. for notifications of the Numeric(10).
transaction.
order_ship_zip Order shipping address's pin code for the Possible value for zip is
order. Alphanumeric with special
characters(hyphen and space)
(15).
order_status Status of the order. It can be single or multiple. String
Cancelled (transaction is
cancelled by merchant )
Chargeback()
Invalid(Transaction sent to
CCAvenue with Invalid
parameters, hence could not be
processed further)
Fraud (we update this during
recon, the amount is different at
bank’s end and at CCAvenue due to
tampering)
order_status_date_time This is the latest date and time when order DateTime in IST( yyyy-MM-dd
status is modified. HH:mm:ss.SSS) format.
order_TDS Amount of TDS (tax deducted at source) for Decimal (13,4)
the Transaction.
order_tax Tax Amount for the Transaction. Decimal (13,4)
reference_no CCAvenue reference no. allocated to the Numeric(25).
transaction.
order_bank_ref_no Unique reference number shared by Bank Numeric(25).
after successful transaction.
order_bank_response Description about the transaction shared by String
the bank after transaction.
order_gtw_id Unique payment option Bank name. Alphabet(6)
order_card_name Specify the card name for the transaction. Possible value for card name is
VISA","MASTERCARD","AMEX","J
CB","DINERS CLUB".
order_option_type Specify the payment option type for the order. String
Possible value for payment option
type is:
OPTCASHC-Cash card
OPTCRDC -Credit Card
OPTDBCRD-Debit Card
OPTEMI-EMI
OPTIVRS-IVRS
OPTMOBP-MobilePayments
OPTNBK-Net Banking
param_value1 Tempparameters value update bymerchant String
at transaction time for further use.
Page 22
param_value2 Tempparameters value update by merchant String
at transaction time for further use.
param_value3 Tempparameters value update bymerchant String
at transaction time for further use.
param_value4 Tempparameters value update bymerchant String
at transaction time for further use.
param_value5 Tempparameters value update bymerchant String
at transaction time for further use.
page_count Total pages available based on no_of_records Example: no_of_records sent in
in the request. request was 100
total_records Totalno.ofordersmatchingthelookup total_records matching the
criteria. lookup criteria were 1000
page_count will be 10
(total_records / no_of_records)
rounded to the ceiling.
error_desc Reasonifsearchcriteriadidnotfindtheorders for String.
the transactions. Please refer below table for
Error code for Failure reason. failure message.
error_code String.
Please refer below table for
failure message.
Success Response:
Failure Response:
Success Response:
Page 24
{
"reference_no":"204000163469",
"order_no":"66068092",
"order_currncy":"INR",
"order_amt":1.0,
"order_date_time":"2015-09-16 15:05:55.573",
"order_bill_name":"Shashi",
"order_bill_address":"Room no 1101, near Railway station Ambad",
"order_bill_zip":"425001",
"order_bill_tel":"9595226054",
"order_bill_email":"[email protected]",
"order_bill_country":"India",
"order_ship_name":"Shashi",
"order_ship_address":"Room no 1101, near Railway station Ambad",
"order_ship_country":"India",
"order_ship_tel":"9595226054",
"order_bill_city":"Indore",
"order_bill_state":"MP",
"order_ship_city":"Indore",
"order_ship_state":"MP",
"order_ship_zip":"425001",
"order_ship_email":"",
"order_notes":"order will be shipped",
"order_ip":"192.168.2.182",
"order_status":"Successful",
"order_fraud_status":"NA",
"order_status_date_time":"2015-09-16 15:06:13.243",
"order_capt_amt":0.0,
"order_card_name":"MasterCard",
"order_delivery_details":"",
"order_fee_perc":2.3,
"order_fee_perc_value":0.02,
"order_fee_flat":0.0,
"order_gross_amt":1.0,
"order_discount":0.0,
"order_tax":0.0028,
"order_bank_ref_no":"035944",
"order_gtw_id":"ICICI",
"order_bank_response":"Transaction Successful",
"order_option_type":"OPTCRDC", "order_TDS":0.0,
"order_device_type":"PC",
"param_value1":"Mobile No9595226054",
"param_value2":"Flight from Dehli",
"param_value3":"ToMumbai",
"param_value4":"Mobile No9595226054",
Page 25
"param_value5":"Mobile No9595226054",
"error_desc":"",
"status":0,
"error_code":""
}
Failure Response:
{
"error_desc":"Order List: Invalid Parameter",
"error_code":"51313",
"status":1
}
Note: You will have to decrypt the above response from “enc_response” parameter. Kindly refer to the
decryption section.
Format:
status|order_status|reference_no|order_bank_ref_no|order_bank_response|
order_bill_name|order_bill_email|order_bill_address|order_bill_city|order_bill_state|order_bill_co
untry|order_bill_telephone_no|order_bill_city_zip|order_card_name|order_currency|order_date_
time|order_delivery_details|order_device_type|order_fraud_status|order_gateway_id|order_iP|or
der_no| order_notes|order_option_type|order_shiping_name|order_ship_email|order_ship_address|order
_ship_city|order_ship_state|order_ship_country|order_ship_telephone_no|order_ship_zip|order_
status_date_time|order_TDS|order_amount|order_capture_amount|order_discount|order_fee_fla
t|order_fee_perc|order_fee_perc_value|order_gross_amount|order_tax|param_value1|param_val
ue2|param_value3|param_value4|param_value5|
Example:
0|Successful|204000163514|068406|Transaction Successful|Shashi|[email protected]|Room no
1101, near Railway station Ambad|Indore|MP|India|9595226054|425001|MasterCard|INR|2015-
09-18 12:53:40.407||PC|NA|ICICI|192.168.2.182|64807533|order will be
shipped|OPTCRDC|Shashi||Room no 1101, near Railway station
Ambad|Indore|MP|India|9595226054|425001|2015-09-18
12:54:15.357|0.0|1.0|0.0|0.0|0.0|2.3|0.02|1.0|0.0028|Mobile No9595226054|Flight from
Dehli|ToMumbai|Mobile No9595226054|Mobile No9595226054|
Failure Response:
Format: statud|error_code|error_desc|
Example: 1|51313|Order List: Invalid Parameter|
Note: You will have to decrypt the above response from “enc_response” parameter. Kindly refer to the
Page 26
decryption section.
5. Order Lookup
The Lookup API call can be used to extract transaction details for a certain set of transactions. The functionality
works similar to a search feature.
Request Parameters
Page 27
order_email Email address used to purchase the order. Alphanumeric with special
(optional) characters (hyphen, underscore, dot,
@)(70).
order_fraud_status Specify whether orders are valid or not. String
(optional) Possible Values are:
1) Value “High” denotes “High Risk”
2) Value “Low”denotes“LowRisk”
3) Value “NR” denotes “No Risk”
4) Value “GA” denotes “Go Ahead”
5) Value “NA” denotes “Not
Applicable”
order_min_amount Minimum amount limit for search criteria for Decimal(12,2).
(optional) the transaction.
order_max_amount Maximum amount limit for search criteria for Decimal(12,2).
(optional) the transaction.
order_name Customer name for the transaction. Alphanumeric with special character
(optional) (space, hyphen, apostrophe,
underscore, dot)(60).
order_no Unique merchantordernoforthe transaction. AlphaNumeric with special
(optional) characters(hyphen and
underscore)(60).
order_payment_type Payment Modeforthetransaction.It canbe String
(optional) single or multiple.
Below are the Possible Values:
1) CASHC (Cash Card Payment Type)
2) CRDC (Credit Card Payment Type)
3) DBCRD (Debit Card Payment
Type)
4) MOBP (Mobile Payment Type)
5) NBK (Net Banking )
Page 28
order_status Status of the order. It can be single or String
(optional) multiple. Possible values are:
Aborted (transaction is cancelled by the
User)
Auto-Cancelled (transaction has not
confirmed within 12 days hence auto
cancelled by system)
Auto-Reversed (two identical
transactions for same order number,
both were successful at bank'sendbut
we gotresponsefor
only one of them, then next day
during reconciliation we mark one of
the transaction as auto reversed )
Awaited (transaction is processed from
billing shipping page but no response
is received)
Cancelled (transaction is cancelled by
merchant )
Chargeback()
Invalid(Transaction sent to
CCAvenue with Invalid parameters,
hence could not be processed
further)
Page 29
Fraud (we update this during recon,
the amount is different at bank’s
end and at CCAvenue due to
tampering)
Initiated (transaction just arrived on
billing shipping page and not
processed further )
Refunded (Transaction is refunded.)
Shipped (transaction is confirmed)
Successful
System refund (Refunded by
CCAvenue for various find of
reversals by CCAvenue)
Unsuccessful (transaction is not
successful due to )
1) OT-INV denotes“Invoice”
2) OT-ORD denotes “Orders”
3) OT-ORDSC denotes “Shopping
Cart Orders”
4) OT-PPAY denotes” Phone Pay”
5) OT-SNIP denotes “SNIP orders”
order_bill_tel Customermobilenumber for thetransaction. Numeric(10).
(optional)
page_number A limited number of records are shared as part of Numeric(4).
(required) the response. The total records & number of
pages are shared as partof the response to
enable subsequent calls.
Page 30
Example XML Request
Note: You will have to encrypt the above request and store in the “enc_request” parameter before sending
it to CCAvenue. Kindly refer to the encryption section.
{
"order_no": "xxx",
"reference_no":"xxxxx",
"order_email": "[email protected]",
"order_bill_tel": "xxxxxxxxx",
"order_country": "xxxxxxx",
"from_date": "xx-xx-xxxx",
"to_date": "xx-xx-xxxx",
"order_max_amount": "xx.xx",
"order_min_amount": "xx.xx",
"order_status": "xxxxx",
"order_fraud_status": "xxxx",
"order_currency": "xxx",
"order_type": "xxxxxx",
"order_payment_type": "xxxxx",
"page_number":1
}
Page 31
Note: You will have to encrypt the above request and store in the “enc_request” parameter before sending
it to CCAvenue. Kindly refer to the encryption section.
Format:
reference_no|order_no|from_date|to_date|order_status|order_bill_tel|order_country|order_ema
il|order_fraud_status|order_max_amount|order_min_amount|order_name|order_payment_type|
order_type|order_currency|page_number|
Example: ||21-03-2015|03-04-2015||||||||||||1|
Note: You will have to encrypt the above request and store in the “enc_request” parameter before sending
it to CCAvenue. Kindly refer to the encryption section.
Response Parameters
Page 32
order_bill_name Order billing name for the order. Possible value for name is
Alphanumeric with special characters
(space, hyphen,
apostrophe, underscore,
dot)(60).
order_bill_state Order billing state for the order. Alphanumeric with special
characters (hyphen, dot and
space)(30).
order_bill_tel Order billing telephone no for the order. Numeric(10)
order_bill_zip Order billing address’s pincode for the order. Possible value for zip is
AlphaNumeric with special
characters(hyphen and space)
(15).
order_capt_amt Captured amount for the transaction. Decimal(12,2).
Captured amount can be full or partial of the
transaction amount.
order_curr Possible order Currency in which merchant String Examples:
processed the transaction. INR – Indian Rupee
USD – United States Dollar SGD –
Singapore Dollar GBP – Pound
Sterling
EUR – Euro, official currency of
Eurozone
Page 33
order_no Order No for the transaction. AlphaNumeric with special
characters(hyphen and
underscore)(30).
order_notes Order information you wish to provide. AlphaNumeric with special
characters(space, comma, dot,
hyphen and underscore)(60).
order_ship_address Shipping Address for the order. Possible value for address is
Alphanumeric with special
characters (space, hyphen,
comma, ampersand(&), hash(#),
circularbrackets and dot)(315)
order_ship_city Shipping city name for the orders. Possible value for city is
Alphanumeric with special
characters (space, comma,
hyphen and dot)(30).
order_ship_country Shipping country name for the orders. Possible value for country is
Alphanumeric with special
characters (space)(30).
order_ship_email Shipping emailID for the notificationsofthe Possible value for email id is
transaction. Alphanumeric with special
characters (hyphen, underscore,
dot,@)(70).
order_ship_name Shipping Name of the Customer for the order. Possible value for name is
Alphanumeric with special
characters (space, hyphen,
apostrophe, underscore,
dot)(60).
order_ship_state Shipping state for the order. Alphanumeric with special
characters (hyphen, dot and
space)(30).
order_ship_tel Telephone no for notifications of the Numeric(10).
transaction.
order_ship_zip Order shipping address's pin code for the Possible value for zip is
order. AlphaNumeric with special
characters(hyphen and space)
(15).
Page 34
order_status Status of the order. It can be single or multiple. String
Possible values are:
Aborted (transaction is
cancelled by the User)
Auto-Cancelled (transaction has not
confirmed within 12 days hence
auto cancelled by system) Auto-
Reversed (two identical
transactions for same order
number, both were successful at
bank's end but we got response
for only one of them, then next
day during reconciliation we
mark one of the transaction as
auto reversed )
Awaited (transaction is
processed from billing shipping
page but no response is
received)
Cancelled (transaction is
cancelled by merchant )
Chargeback()
Invalid(Transaction sent to
CCAvenue with Invalid
parameters, hence could not be
processed further)
Fraud (we update this during
recon, the amount is different at
bank’s end and at CCAvenue due to
tampering)
Initiated (transaction just
arrived on billing shipping page
and not processed further )
Refunded (Transaction is
refunded.)
Shipped (transaction is confirmed)
Successful
System refund (Refunded by
CCAvenue for various find of
reversals by CCAvenue)
Unsuccessful (transaction is not
successful due to )
order_status_date_time This is the latest date and time when order DateTime in IST( yyyy-MM-dd
status is modified. HH:mm:ss.SSS) format.
order_TDS Amount of TDS (tax deducted at source) for Decimal(13,4).
the Transaction.
Page 35
order_tax Tax Amount for the Transaction. Decimal (13,4)
reference_no CCAvenue reference no allocated to the Numeric(25).
transaction.
order_bank_ref_no Unique reference number share by Bank after Numeric(25).
successful transaction.
order_bank_response Description about the transaction shared by String
the bank after transaction.
order_gtw_id Unique payment option Bank name. Alphabet(6)
order_card_name Specify the card name for the transaction. Possible value for card name is
VISA","MASTERCARD","AMEX",
"JCB","ECRD","DINERS
CLUB","DSNV","CTBL","CVMS".
Success Response:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Order_Lookup_Result error_code=””>
<error_desc></error_desc>
<order_Status_List>
<order order_TDS="0.0"
Page 36
order_amt="1.0"
order_bank_response="Invalid Credentials"
order_bill_address="Room no 1101, near Railway station Ambad"
order_bill_city="Indore"
order_bill_country="India"
order_bill_email="[email protected]"
order_bill_name="Shashi" order_bill_state="MP"
order_bill_tel="1234567890"
order_bill_zip="425001"
order_capt_amt="0.0"
order_card_name="MasterCard"
order_currncy="INR" order_date_time="2015-
03-31 11:20:44.47" order_device_type="PC"
order_discount="0.0"
order_fee_flat="0.0"
order_fee_perc="12.0"
order_fee_perc_value="0.12"
order_fraud_status="NA"
order_gross_amt="1.0"
order_gtw_id="SBI"
order_ip="192.168.2.182"
order_no="45289752"
order_notes="order will be shipped"
order_option_type="OPTCRDC"
order_ship_address="Room no 1101, near Railway station Ambad"
order_ship_city="Indore"
order_ship_country="India"
order_ship_name="Shashi"
order_ship_state="MP"
order_ship_tel="1234567890"
order_ship_zip="425001"
order_status="Unsuccessful"
order_status_date_time="2015-03-31 11:21:09.99"
order_tax="0.0148"
reference_no="204000134595"/>
</order_Status_List>
<page_count>1</page_count>
<total_records>1</total_records>
</Order_Lookup_Result>
Failure Response:
Page 37
<page_count>0</page_count>
<total_records>0</total_records>
</Order_Lookup_Result>
Note: You will have to decrypt the above response from “enc_response” parameter. Kindly refer to the
decryption section.
"order_Status_List":[{
"reference_no":204000134595,
"order_no":"45289752",
"order_currncy":"INR",
"order_amt":1.0,
"order_date_time":"2015-03-31 11:20:44.47",
"order_bill_name":"Shashi",
"order_bill_address":"Room no 1101, near Railway station Ambad",
"order_bill_zip":"425001",
"order_bill_tel":"1234567890",
"order_bill_email":"[email protected]",
"order_bill_country":"India",
"order_ship_name":"Shashi",
"order_ship_address":"Room no 1101, near Railway station Ambad",
"order_ship_country":"India",
"order_ship_tel":"1234567890",
"order_bill_city":"Indore",
"order_bill_state":"MP",
"order_ship_city":"Indore",
"order_ship_state":"MP",
"order_ship_zip":"425001",
"order_notes":"order will be shipped",
"order_ip":"192.168.2.182",
"order_status":"Unsuccessful",
"order_fraud_status":"NA",
"order_status_date_time":"2015-03-31 11:21:09.99",
"order_capt_amt":0.0,
"order_card_name":"MasterCard",
"order_fee_perc_value":0.12, "order_fee_perc":12.0,
"order_fee_flat":0.0,
"order_gross_amt":1.0,
"order_discount":0.0,
"order_tax":0.0148,
"order_TDS":0.0,
Page 38
"order_gtw_id":"SBI",
"order_bank_response":"Invalid Credentials",
"order_option_type":"OPTCRDC",
"order_device_type":"PC"
}],
"page_count":1,
"total_records":1,
"error_desc":"",
"error_code":""
}
Failure Response:
{
"page_count":0,
"total_records":0,
"error_desc":"Order List: Invalid Parameter",
"error_code":"51313"
}
Note: You will have to decrypt the above response from “enc_response” parameter. Kindly refer to the
decryption section.
Example:
Successful Response:
1|1|204000134595$45289752$1.0$Unsuccessful$$Invalid Credentials$MasterCard$INR$2015-03-31
11:20:44.47$$PC$NA$SBI$192.168.2.182$order will be shipped$OPTCRDC$Shashi$Room no 1101, near
Railway station [email protected]$Shashi$Room no
1101, near Railway station Ambad$Indore$MP$India$425001$1234567890$$0.0$0.0$1.0$0.0$12.0$0.12|
Failure Response:
Format: page_no|total_no_of_records|error_code|error_desc|
Example: 0|0|51313|Order List: Invalid Parameter|
Note: You will have to decrypt the above response from “enc_response” parameter. Kindly refer to the
decryption section.
Page 39
6. Pending Orders
PendingAPIcallallowsyoutofind the list of pendingorders. Only confirmed orders aresettled into the
merchant’s account. Anorder olderthan12 days is automatically canceled. Once anorder has been auto-
canceled by the system, it cannot be confirmed.
You can optionally confirm only part of an order. Remember, you can do so only once. Remaining funds will be
refunded to the credit card or debit card or net banking account that was originally charged.
Request Parameters
Name Description Note
enc_request AES encrypted request data
(required)
access_code Unique CCAvenue access code which is
(required) generated when merchant registered their IP
address. You must send this with each
request.
request_type API requests are accepted inXML, JSONor Possible value for request_type is
(required) String. Specify the request type. “XML” or “JSON” or “STRING”.
response_type API returns responses in XML, JSON or String Possiblevalue for response_type is is
(optional) format. If left blank, the response will be in “XML” or “JSON” or “STRING”.
the same format as request.
Command Commandvalue specifies the API calls. You Possible value for this API call is
(required) must send this with each request. “getPendingOrders”.
reference_no Unique CCAvenue reference number for the Numeric(25)
(optional) transaction.
order_no Unique Merchant order number for the AlphaNumeric with special
(optional) pending order of the transaction. characters(hyphen and
underscore)(30).
order_bill_name Nameof the customerto findinvoice details Alphanumeric with special character
(optional) after placing orders. (space, hyphen, apostrophe,
underscore, dot)(60).
order_email Email id of customer to send mail for the Alphanumeric with special characters
(optional) generate invoice. (hyphen, underscore,
dot, @)(70).
order_bill_tel Mobile number of the customer to send the Numeric(10)
(optional) generate invoice.
order_fraud_status Type of fraud status. String
(optional) Possible Values are:
1) Value “High” denotes “High Risk”
2) Value “Low” denotes “Low Risk”
3) Value “NR” denotes “No Risk”
4) Value “GA” denotes “Go Ahead”
5) Value “NA” denotes “Not
Page 40
Applicable”
order_currency Currencyinwhichyouprocessed the String
(optional) transaction. You can send the multiple
currencies format. Example:
INR – Indian Rupee
USD – United States Dollar
SGD – Singapore Dollar
GBP – Pound Sterling
EUR – Euro, official currency of
Eurozone
1) OT-INV denotes“Invoice”
2) OT-ORD denotes “Orders”
3) OT-ORDSC denotes “Shopping
Cart Orders”
4) OT-PPAY denotes” Phone Pay”
5) OT-SNIP denotes “SNIP orders”
page_number A limited number of records are shared as part of Numeric(4)
(required) the response. The total records & number of
pages are shared as part of the response to
enable subsequent calls.
Page 41
Note: You will have to encrypt the above request and store in the “enc_request” parameter before sending
it to CCAvenue. Kindly refer to the encryption section.
{
"order_no": "XXXXXXX", "reference_no":
"XXXXXXX", "order_bill_name": "XXXXX",
"order_email": "[email protected]",
"order_bill_tel": "XXXXXXXXXXX",
"order_fraud_status": "XX|XXXX|XXX",
"order_currency": "XXX|XXX|XXX|XXX",
"order_type": "XX|XX-XX",
"page_number": "1"
}
Note: You will have to encrypt the above request and store in the “enc_request” parameter before sending
it to CCAvenue. Kindly refer to the encryption section.
Example: XXXXXXX|XXXXXX|XXXXX|XXXXXXX|XXX$XXX$XXX$XXX|[email protected]|XX$XXXX$XXX|XX-
XXX$XX-XXX|1|
Note: You will have to encrypt the above request and store in the “enc_request” parameter before sending it to
CCAvenue. Kindly refer to the encryption section.
Response Parameters
Page 42
order_bill_address Order billing address details for the order. Possible value for address is
Alphanumeric with special
characters (space, hyphen,
comma, ampersand(&), hash(#),
circularbrackets anddot)(315)
order_bill_city Order billing City name for the order. Possible value for city is
Alphanumeric with special
characters (space, comma,
hyphen and dot)(30).
order_bill_country Order billing country for the Order. Possible value for country is
Alphanumeric with special
characters (space)(30).
order_bill_email Email Address of the Order for notifications. Possible value for email id is
Alphanumeric with special
characters (hyphen, underscore,
dot, @)(70).
order_bill_name Order billing name for the order. Possible value for name is
Alphanumeric with
special characters (space,
hyphen, apostrophe,
underscore,
dot)(60).
order_bill_state Order billing state for the order. Alphanumeric with special
characters (hyphen, dot
and
space)(30).
order_bill_tel Order billing telephone no for the order. Numeric(10)
order_bill_zip Order billing address’ pin code for the order. Possible value for zip is
AlphaNumeric with special
characters(hyphen and space)
(15).
order_capt_amt Captured amount for the transaction. Decimal(12,2).
Captured amount can be full or partial of the
transaction amount.
order_curr Possible order Currency in which merchant String
processed the transaction. Examples
:
INR – Indian Rupee
USD – United States Dollar
SGD – Singapore Dollar
GBP – Pound Sterling
EUR – Euro, official currency of
Eurozone
order_date_time Order Generated Date &Time. DateTime in IST( yyyy-MM-dd
HH:mm:ss.SSS) format.
order_device_type This is the type of device using which the Possible value for device type is
transaction was processed. IVRS/MOB/PC.
Page 43
days_left Number of days left to pay order amount. Numeric(3)
order_discount This is Discount Value for the Order No. Decimal(12,2).
order_fee_flat Flat Fee for the Order No. Decimal(12,2).
order_fee_perc Provides the percentage fee for the same Decimal(12,2).
order No.
order_fee_perc_value This attribute provides the percentage fee Decimal(12,2).
Value for the same order No.
order_fraud_status Specify whether orders are valid or not. String
Possible Values are:
1) Value “High” denotes
“High Risk”
2) Value “Low” denotes
“Low Risk”
3) Value“NR” denotes
“No Risk”
4) Value “GA” denotes
“Go Ahead”
5) Value “NA” denotes “Not
Applicable”
order_gross_amt Total transaction amount. Decimal(12,2).
order_ip Customer IP Address (i.e. from where IP V-4 Supported.
transaction is being initiated)
order_no Order No for the transaction. AlphaNumeric with
special
characters(hyphen and
underscore)(30).
order_notes Order information you wish to provide. AlphaNumeric with special
characters(space, comma, dot,
hyphen and underscore)(60).
days_left Number of days left to pay order amount. Numeric (4).
order_bank_mid Unique merchant id provided by issuer bank to Numeric(16).
merchant for the transaction.
order_bank_ref_no Unique reference number shared by Bank Numeric(25).
after successful transaction.
order_bank_response Description about the transaction shared by String
the bank after transaction.
order_gtw_id Unique payment option Bank name. Alphabet(6)
order_card_name Specify the card name for the transaction. Possible value for card name is
VISA","MASTERCARD","AMEX",
"JCB","ECRD","DINERS
CLUB","DSNV","CTBL","CVMS".
Page 44
order_option_type Specify the payment option type for the order. String
Possible value for
payment option type is
OPTCASHC-Cash card
OPTCRDC -Credit Card
OPTDBCRD-Debit Card
OPTEMI-EMI
OPTIVRS-IVRS
OPTMOBP-MobilePayments
OPTNBK-Net Banking
order_card_type Specify the card type used to pay order String
amount. Possible value for card type is
Cash
card
Credit
Card
Debit
Card EMI
IVRS
Mobile Payments
Net Banking
order_risk_mitigation Specify whether the current order on risk String(1)
mitigation or not. Possible value is “Y” or ”N”.
order_tax Tax Amount for the Transaction. Decimal (13,4)
order_tran_status Transaction status for the order coming from String
bank's end. Possible value is
TS-AUTA- Authorization
Awaited
TS-AUTC- Authorization confirm
TS-AUTCR- Authorization
confirmed on reconciliation
TS-AUTD-
Authorization
Declined
TS-AUTDR- Authorization
Declined on reconciliation
TS-AUTFR- Authorization Fraud
TS-AUTFRR- Authorization Fraud
on reconciliation
TS-AUTFRAM- Amt mismatch
TS-AUTFRCM - Currency
mismatch
TS-AUTFRUT- Authorization
fraud
TS-ABRTBNK- Aborted at bank's
Page 45
end.
order_ship_address Shipping Address for the order. Possible value for address is
Alphanumeric with special
characters (space, hyphen,
comma, ampersand(&), hash(#),
circularbrackets anddot)(315)
order_ship_city Shipping city name for the orders. Possible value for city is
Alphanumeric with special
characters (space, comma,
hyphen and dot)(30).
order_ship_country Shipping country name for the orders. Possible value for country is
Alphanumeric with
special characters
(space)(30).
Page 46
order_ship_email Shipping emailID for the notificationsofthe Possible value for email id is
transaction. Alphanumeric with special
characters (hyphen, underscore,
dot, @)(70).
order_ship_name Shipping Name ofthe Customer for the order. Possible value for name is
Alphanumeric with
special characters (space,
hyphen, apostrophe,
underscore,
dot)(60).
order_ship_state Shipping state for the order. Alphanumeric with special
characters (hyphen, dot
and
space)(30).
order_ship_tel Telephone no for notifications of the Numeric(10).
transaction.
order_ship_zip Order shipping address' pin code for the order. Possible value for zip is
AlphaNumeric with special
characters(hyphen and space)
(15).
Page 47
order_status Status of the order. It can be single or String
multiple. Possible values are:
Aborted (transaction is
cancelled by the User)
Auto-Cancelled (transaction has
not confirmed within 12 days
hence auto cancelled by system)
Auto-Reversed (two identical
transactions for same order
number, both were successful
at bank's endbut we got
response for only one of them,
then next day during
reconciliation we mark one of
the transaction as auto
reversed )
Awaited (transaction is
processed from billing
shipping page but no
response is received)
Cancelled (transaction is
cancelled by merchant )
Chargeback()
Invalid(Transaction sent to
CCAvenue with Invalid
parameters, hence could not be
processed further)
Fraud (we update this during
recon, the amount is different
at bank’s end and at CCAvenue
due to tampering)
Initiated (transaction just
arrived on billing shipping page
and not processed further )
Refunded (Transaction is
refunded.)
Shipped (transaction is
confirmed)
Successful
Systemrefund(Refunded by
CCAvenue for various findings of
reversals by CCAvenue)
Unsuccessful (transaction is not
successful due to )
order_status_date_time This is the latest date and time when order DateTime in IST( yyyy-MM-dd
status is modified. HH:mm:ss.SSS) format.
Page 48
order_TDS Amount of TDS (tax deducted at source) for Decimal(13,4).
the Transaction.
reference_no Unique CCAvenue referenceno allocatedto Numeric(25).
the transaction.
error_desc Reason if searchcriteriadidnotfind the String
orders for the transactions. Please refer below table for
failure message.
error_code Error code for Failure reason. String
Please refer below table for
failure message.
Success Response:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Pending_Orders_Result error_code=””>
<error_desc></error_desc>
<page_count>1</page_count>
<pending_Orders_List>
<pending_Orders
days_left="3"
order_TDS="0.0"
order_amt="1.0"
order_bank_mid="1234567890" order_bank_ref_no="289049"
order_bank_response="Approved"
order_bill_address="Room no 1101, near Railway station Ambad"
order_bill_city="Indore"
order_bill_country="India"
order_bill_email="[email protected]"
order_bill_name="Shashi"
order_bill_state="MP"
order_bill_tel="1234567890"
order_bill_zip="425001"
order_capt_amt="0.0"
order_card_name="Amex"
order_card_type="Credit Card"
order_curr="INR"
order_date_time="2015-04-13 10:59:05.517"
Page 49
order_discount="0.0"
order_fee_flat="0.0"
order_fee_perc="4.0"
order_fee_perc_value="0.04"
order_fraud_status="NA"
order_gross_amt="1.0"
order_gtw_id="PGT"
order_ip="192.168.2.182"
order_no="66885810"
order_notes="order will be shipped"
order_risk_mitigation="Y"
order_ship_address="room no.701 near bus stand"
order_ship_city="Hyderabad"
order_ship_country="India"
order_ship_name="Chaplin"
order_ship_state="Andhra"
order_ship_tel="1234567890"
order_ship_zip="425001"
order_status="Successful"
order_status_date_time="2015-04-13 10:59:53.217"
order_tax="0.0049"
order_tran_status="TS-AUTC"
order_type="OT-ORD"
reference_no="204000136232"/>
</pending_Orders_List>
<total_records>1</total_records>
</Pending_Orders_Result>
Failure Response:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Pending_Orders_Result error_code=”51313”>
<error_desc>Order List: Invalid Parameter</error_desc>
<page_count>1</page_count>
<total_records>1</total_records>
</Pending_Orders_Result>
Note: You will have to decrypt the above response from “enc_response” parameter. Kindly refer to the
decryption section.
Page 50
"order_type":"OT-ORD",
"order_curr":"INR",
"order_amt":1.0,
"order_date_time":"2015-04-13 10:59:05.517",
"order_bill_name":"Shashi",
"order_bill_address":"Room no 1101, near Railway station Ambad",
"order_bill_zip":"425001",
"order_bill_city":"Indore",
"order_bill_state":"MP",
"order_bill_tel":"12345687890",
"order_bill_email":"[email protected]",
"order_bill_country":"India",
"order_ship_name":"Chaplin",
"order_ship_address":"room no.701 near bus stand",
"order_ship_country":"India",
"order_ship_tel":"1234567890",
"order_ship_city":"Hyderabad",
"order_ship_state":"Andhra",
"order_ship_zip":"425001",
"order_notes":"order will be shipped",
"order_ip":"192.168.2.182",
"order_status":"Successful",
"order_fraud_status":"NA",
"order_status_date_time":"2015-04-13 10:59:53.217",
"order_capt_amt":0.0,
"order_card_type":"Credit Card",
"order_card_name":"Amex",
"order_bank_mid":"xxxxxxxxx",
"order_fee_perc":4.0,
"order_fee_perc_value":0.04,
"order_fee_flat":0.0,
"order_gross_amt":1.0,
"order_discount":0.0,
"order_tax":0.0049,
"order_bank_ref_no":"xxxxxxxx",
"order_gtw_id":"PGT",
"order_bank_response":"Approved",
"order_risk_mitigation":"Y",
"days_left":"3",
"order_tran_status":"TS-AUTC",
"order_TDS":0.0,
}],
"page_count":1,
"total_records":1,
"error_desc":"",
Page 51
"error_code":""
}
Failure Response:
{
"page_count":1,
"total_records":1,
"error_desc":"Order List: Invalid Parameter",
"error_code":"51313"
}
Note: You will have to decrypt the above response from “enc_response” parameter. Kindly refer to the
decryption section.
Example:
1|1|204000136232$66885810$Successful$TS-AUTC$OT-
ORD$0.0$0.0$0.0$4.0$0.04$1.0$0.0049$3$1234567890$289049$Approved$Shashi$xxxxxx.xx@xxxx
xx.xxxx$Room no 1101, near Railway station
Ambad$Indore$MP$India$1234567890$425001$Amex$Credit Card$INR$2015-04-13
10:59:05.517$$NA$PGT$192.168.2.182$$order will be shipped$Y$Chaplin$$room no.701 near bus
stand$Hyderabad$Andhra$India$1236547892$425001$2015-04-13 10:59:53.217|
Failure Response:
Format:page_no|total_no_of_records|error_code|error_desc|
Note: You will have to decrypt the above response from “enc_response” parameter. Kindly refer to the
decryption section.
Page 52
7. Delete Customer
The Delete Customer API call is used to delete the customer and all saved payment options for the customer.
Request Parameters
Note: You will have to encrypt the above request and store in the “enc_request” parameter before sending it to
CCAvenue. Kindly refer to the encryption section.
{
"customer_id": "1234"
}
Note: You will have to encrypt the above request and store in the “enc_request” parameter before sending it to
CCAvenue. Kindly refer to the encryption section.
Page 53
Example STRING Request
Format:customer_id|
Example: 1234|
Note: You will have to encrypt the above request and store in the “enc_request” parameter before sending it to
CCAvenue. Kindly refer to the encryption section.
Response Parameters
Success:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Delete_Customer_Result deletion_status="0" error_code=”” error_desc=””>
<customer_id>1234</customer_id>
</Delete_Customer_Result>
Failure:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Delete_Customer_Result error_desc="Customer id: Invalid parameter"deletion_status="1" error_code=”51325”>
Page 54
<customer_id>1234</customer_id>
</Delete_Customer_Result>
Note: You will have to decrypt the above response from “enc_response” parameter. Kindly refer to the decryption
section.
Example JSON Response
Success:
{
"deletion_status":0,
"error_desc":"",
"error_code":"",
"customer_id":"1234"
}
Failure:
{
"error_desc":"Customer id: Invalid parameter",
"deletion_status":1,
"customer_id":"1234",
"error_code":"51325"
}
Note: You will have to decrypt the above response from “enc_response” parameter. Kindly refer to the
decryption section.
Format:deletion_status|customer_id|
Example: 0|123|
Failure:
Format: deletion_status|error_code|error_desc|customer_id|
Example: 1|51325|Customer id: Invalid parameter|123|
Note: You will have to decrypt the above response from “enc_response” parameter. Kindly refer to the
decryption section.
Page 55
8. Delete Customer Payment Option
The Delete Customer Payment Option API call is used to delete a particular payment option saved for the customer.
Request Parameters
Note: You will have to encrypt the above request and store in the “enc_request” parameter before sending it to
CCAvenue. Kindly refer to the encryption section.
{
"customer_id": "1234",
"customer_card_id": "14"
}
Page 56
Note: You will have to encrypt the above request and store in the “enc_request” parameter before sending it to
CCAvenue. Kindly refer to the encryption section.
Format: customer_card_id|customer_id|
Example: 14|1234|
Note: You will have to encrypt the above request and store in the “enc_request” parameter before sending it to
CCAvenue. Kindly refer to the encryption section.
Response Parameters
Failure:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Delete_Customer_Payment_Option_Result
customer_card_id="22" customer_id="123"
error_desc="Customer CardId: InvalidParameter"
error_code=”51336”
deletion_status="1"/>
Note: You will have to decrypt the above response from “enc_response” parameter. Kindly refer to the
decryption section.
Failure:
Format: deletion_status|error_code|error_desc|customer_card_id|customer_id|
Example:1|51327|Customer id: Invalid Parameter|22|123|
The Add Customer Payment Option API call is used to add another payment option for the customer of the
merchant.
Request Parameters
Note: You will have to encrypt the above request and store in the “enc_request” parameter before sending it to
CCAvenue. Kindly refer to the encryption section.
{
"customer_id":14, "customer_email":"[email protected]",
"customer_phone_no":8698319931,
"customer_name_on_card":"subash yadav",
"customer_card_no":421578965236545,
"customer_card_name":"mastercard",
"customer_card_expiry":"11/2015",
"customer_card_issuer_bank":"Kotak mahindra",
"customer_card_type":"CRDC"
}
Note: You will have to encrypt the above request and store in the “enc_request” parameter before sending it to
CCAvenue. Kindly refer to the encryption section.
Response Parameters
OPTCRD-credit card
OPTDBCRD-debit card
customer_card_expry Customer card expiry date. Date format in MM/yyyy.
Success:
Failure:
<customer_card_name>Visa</customer_card_name>
<customer_card_no_last4digits>2346</customer_card_no_last4digits>
Merchant’s API Version 1.2 Implementation Guide 62
<customer_id>14</customer_id>
<customer_pay_opt_type></customer_pay_opt_type>
<error_code>51336</error_code>
<error_desc>Customer Card Id: Invalid Parameter</error_desc>
<status>1</status>
</Add_Customer_Payment_Option_Result>
Note: You will have to decrypt the above response from “enc_response” parameter. Kindly refer to the decryption
section.
Success:
{
"customer_id":"14",
"customer_card_id":"36",
"customer_card_no_last4digits":"6545",
"customer_card_expiry":"11/2015",
"customer_pay_opt_type":"OPTCRDC",
"customer_name_on_card":"subash yadav",
"customer_card_name":"Visa",
"customer_card_issuer_bank":"HDFC",
"error_desc":"",
"error_code":"","status":0
}
Failure:
{
"customer_id":"14",
"customer_card_id":"",
"customer_card_no_last4digits":"2346",
"customer_card_expiry":"11/2015",
"customer_pay_opt_type":"",
"customer_name_on_card":"subash yadav",
"customer_card_name":"Visa",
"customer_card_issuer_bank":"HDFC",
"error_desc":"Customer Card Id: Invalid Parameter",
"error_code":"51337",
"status":1
}
Note: You will have to decrypt the above response from “enc_response” parameter. Kindly refer to the
decryption section.
Success:
Example:0|14|415|test user|1111|11/2015|OPTCRDC|Visa|HDFC|||
Note: You will have to decrypt the above response from “enc_response” parameter. Kindly refer to the
decryption section.
The Customer payment option API call is used to list payment option saved for a customer. Payments options are
saved for a customer in vault for easy and convenient payment.
Request Parameters
Name Description Note
enc_request AES encrypted request data.
(required)
access_code Unique CCAvenue access code which is
(required) generated when merchant registered their IP
address. You must send this with each request.
request_type API requests are accepted inXML, JSONor Possible value for request_type is
(required) String. Please specify the request type. “XML” or “JSON” or “STRING”.
response_type API returns responses in XML, JSON or String Possible value for response_type is is
(optional) format. If left blank, the response will be in the “XML” or “JSON” or “STRING”.
same format as request.
Command Commandvalue specifies the API calls. You Possible value for this API call is
(required) must send this with each request. “getCustomerPaymentOptions”
customer_id Unique Customer ID for the transaction. Numeric(25).
(required)
Note: You will have to encrypt the above request and store in the “enc_request” parameter before sending it to
CCAvenue. Kindly refer to the encryption section.
Format: customer_id|
Example: 6|
Note: You will have to encrypt the above request and store in the “enc_request” parameter before sending it to
CCAvenue. Kindly refer to the encryption section
Response Parameters
Name Description Note
status This states whether the call was Value “0” denotes that the API call
successful or not. If value of this was successful.
parameter is “1” then you need not Value “1” denotes API call failure. On
decryptthe enc_responseas it will enc_response is plain text represents
contain plain error message. the error message.
Success:
<?xml version="1.0"
encoding="UTF-8"
standalone="yes"?>
Failure:
{
"error_desc":"Customer id: Invalid Parameter",
"error_code":"51327",
“customer_id”:”1234”
}
Note: You will have to decrypt the above response from “enc_response” parameter. Kindly refer to the decryption
section.
Success:
Example:27$”1234”$MasterCard$CRDC$OPTCRDC$”xxxx”$"[email protected]"^29$”4567”$MasterCard$ CRDC$
OPTCRDC$”xxxx”$"[email protected]"$”10/2020”$”xxxx”
Failure:
Format: error_code|error_desc|
Example: 51327|Customer id: Invalid Parameter|
Note: You will have to decrypt the above response from “enc_response” parameter. Kindly refer to the decryption
section.
The Invoice API call is used to generate an invoice for a customer. Values can be passed as for generating invoice
using the flexibility of Invoice settings.
Request Parameters
Late_payment_fees is required if
merchant provide
late_payment_fees_type.
late_payment_fees_type Unit representation of Possible value for late payment
(conditional) late_payment_fees. fees type is Perc/Flat.
Item_List:
Task_List:
XML Request:
Note: You will have to encrypt the above request and store in the “enc_request” parameter before sending it to
CCAvenue. Kindly refer to the encryption section.
Json request:
{
"customer_name": "abc",
"customer_email_id": "[email protected]",
"customer_email_subject": "Test",
"customer_mobile_no": "9874561236",
"currency": "INR",
"valid_for": "2",
"valid_type": "days",
"item_List": [{
"name": "ITEM",
"description": "FIRST",
"quantity": "3",
"unit_cost": "1.00",
"tax_List": [
{"name": "Edu Tax","amount": "5.0"},
{"name": "Pint Tax","amount": "2.5"}
]
}],
"task_List": [{
"name": "TASK",
"notes": "NEW",
"hours": "2",
"rate": "1.00",
"tax_List":[
{"name": "STG Tax","amount": "7.0"},
{"name": "Rent Tax","amount": "8.0"}
]
}],
"merchant_reference_no": "123456987",
"merchant_reference_no1":123456987,
"merchant_reference_no2":123456987,
"merchant_reference_no3": "123456987",
"merchant_reference_no4": "123456987",
"sub_acc_id":"sub1",
"terms_and_conditions": "terms and condition",
"sms_content":"Pls pay your LegalEntity_Name bill # Invoice_ID for Invoice_Currency
Invoice_Amount online at Pay_Link."
} Merchant’s API Version 1.2 Implementation Guide 73
Note: You will have to encrypt the above request and store in the “enc_request” parameter before sending it to
CCAvenue. Kindly refer to the encryption section.
String Request format:
Format:
Customer_Name|Currency|Valid_For|Valid_Type|Customer_Email_Id|Customer_Email_Subject|Customer
_Mobile_No|Term & Condition|SMS_Content|Merchant_Reference_No
|merchant_reference_no1|merchant_reference_no2|sub_acc_id|Item_Name$Item_Quantity$Item_Descri
ption$Unit_Cost~Tax_Name$Tax_Amount$Tax_Name$Tax_Amount^
Item_Name$Item_Quantity$Item_Description$Unit_Cost~Tax_Name$Tax_Amount$Tax_Name$Tax_Amoun
t|Task_Name$Task_Rate$Task_Hours$Task_Notes~Tax_Name$Tax_Amount$Tax_Name$Tax_Amount^Task_
Name$Task_Rate$Task_Hours$Task_Notes~Tax_Name$Tax_Amount$Tax_Name$Tax_Amount|Due_Date|La
te_Payment_Fees|Late_Payment_Fees_Type|Discount_If_Paid_Within_Due_Date|Discount_Value|Discoun t_Type|
Example:
Note: You will have to encrypt the above request and store in the “enc_request” parameter before sending it to
CCAvenue. Kindly refer to the encryption section.
XML Request:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Generate_Invoice_Query>
<customer_name>abc</customer_name>
<customer_email_id>[email protected]</customer_email_id>
<customer_email_subject>Test</customer_email_subject>
<customer_mobile_no>1234567898</customer_mobile_no>
<currency>INR</currency>
<valid_for>2</valid_for>
<valid_type>days</valid_type>
<item_List>
<item>
<name>ITEM</name>
<description>FIRST</description>
<unit_cost>1.00</unit_cost>
<quantity>3</quantity>
<tax_List>
<tax name="Pint Tax" amount="2.5"/>
<tax name="Rent Tax" amount="8.0" />
</tax_List>
</item>
Note: You will have to encrypt the above request and store in the “enc_request” parameter before sending it to
CCAvenue. Kindly refer to the encryption section.
{
"customer_name": "abc",
"customer_email_id": "[email protected]",
"customer_email_subject": "Test",
"customer_mobile_no": "1234567890",
"currency": "INR",
"valid_for": "2",
"valid_type": "days",
"item_List": [{
"name": "ITEM",
"description": "FIRST",
"quantity": "3",
"unit_cost": "1.00",
"tax_List": [
{"name": "Edu Tax","amount": "5.0"},
{"name": "Pint Tax","amount": "2.5"}
]
}],
"task_List": [{
"name": "TASK",
"notes": "NEW",
"hours": "2",
"rate": "1.00",
"tax_List":[
{"name": "STG Tax","amount": "7.0"},
{"name": "Rent Tax","amount": "8.0"}
]
}],
Merchant’s API Version 1.2 "123456987",
"merchant_reference_no": Implementation Guide 76
"merchant_reference_no1":123456987,
"merchant_reference_no2":123456987,
"sub_acc_id":"sub1",
"terms_and_conditions": "terms and condition",
"due_date": "3",
"late_payment_fees": "2.5",
"late_payment_fees_type": "Perc",
"discount_if_paid_within_due_date": "4",
"discount_value": "1.50",
"discount_type": "Perc" ,
"sms_content":"Pls pay your LegalEntity_Name bill # Invoice_ID for Invoice_Currency
Invoice_Amount online at Pay_Link."
}
Note: You will have to encrypt the above request and store in the “enc_request” parameter before sending it to
CCAvenue. Kindly refer to the encryption section.
String Request format:
Format:
Customer_Name|Currency|Valid_For|Valid_Type|Customer_Email_Id|Customer_Email_Subject|Customer
_Mobile_No|Term &
Condition|SMS_Content|Merchant_Reference_No|merchant_reference_no1|merchant_reference_no2|su
b_acc_id|Item_Name$Item_Quantity$Item_Description$Unit_Cost~Tax_Name$Tax_Amount$Tax_Name$Ta
x_Amount^ Item_Name$Item_Quantity$Item_Description$Unit_Cost~Tax_Name$Tax_Amount$Tax_Name$Tax_Amoun
t|Task_Name$Task_Rate$Task_Hours$Task_Notes~Tax_Name$Tax_Amount$Tax_Name$Tax_Amount^Task_
Name$Task_Rate$Task_Hours$Task_Notes~Tax_Name$Tax_Amount$Tax_Name$Tax_Amount|Due_Date|La
te_Payment_Fees|Late_Payment_Fees_Type|Discount_If_Paid_Within_Due_Date|Discount_Value|Discoun t_Type|
Example:
Note: You will have to encrypt the above request and store in the “enc_request” parameter before sending it to
CCAvenue. Kindly refer to the encryption section.
XML Response:
1. Success
2. Failure
"error_desc":"",
"invoice_id":"5122799",
"tiny_url":"http://payit.cc/I5122799",
"qr_code":"iVBORw0KGgoAAAANSUhEUgAAAH0AAAB9CAYAAACPgGwlAAAB-
klEQVR42u3dUY7CMAwFwNz_0rsnQFo2frWTzpP4Q6V0IiV2U1g_8roslwC6QBfoAl2gC3SBLtAFukAX6AJdoAt0
gS7QBTp0gS7QBbpAF-jydvS1Vvlr57M-vf8vx-z6XtChQ4c-HL3rODsDYGfAPHl9oEOHDn0Ienr- rVoPTPhe0KFDh_5C9G-
Pv1N2QYcOHTr0Uehd5wMdOnToOnIlx0ncyNCRgw4dOvR_d8nSpVPXGsD9dOjQoV- M_mSevFFy7DWCDh069OycXrUe-
Paz0qDTBwx06NChP1iy7cAlOl1V5zxxnQAdOnToTWVU17aonXk5cc7QoUOHflBHLrF9KHFh04Ohau0BHTp06A
PREyXPtO5f1ZoHOnTo0A_qyFXNlV0POyTWIdChQ4d-",
"invoice_status":0,
"error_code":"",
"merchant_reference_no":"123456987"
{
"error_desc":"Email id: Invalid Parameter",
"invoice_id":"",
"tiny_url":"",
"qr_code":"",
"invoice_status":1,
"error_code":"51012",
"merchant_reference_no":""
}
Format:invoice_status|invoice_id|qr_code|tiny_url merchant_reference_no l
Example:
0|5089334|iVBORw0KGgoAAAANSUhEUgAAAH0AAAB9CAYAAACPgGwlAAAB6UlEQVR42u3dQW7DMAwEQP
3_08kXEpgr0tIs0EvRurHHgETKctdHrstyCaALdIEu0AW6QBfoAl2gC3SBLtAFukAXGIvG3To0KGPunkSmxF05KBD h35hyZYe-
9LHTMwxoEOHDv3Cjlyiu5VeHJnYhYMOHTr0jeg7S6fEurnHpaBDhw591H6xrtd-
KtmgQ4cOvWXfWQJx4tsqoEOHDv0lHbn0freqbps3UUCHDv1g9J3_wyV9I3kaFjp06J57l0GBDl2gC3SBLtAFukA
X6AJdoAt0gS7QBbpAF-gCHbpAF-
gCXaALdJmcLyERMkikhZ8LAAAAAElFTkSuQmCC|http://payit.cc/I5089334|123456789|
2.Failure
Format:invoice_status|error_code|error_desc|merchant_reference_no|
Note: You will have to decrypt the above response from “enc_response” parameter. Kindly refer to the decryption
section.
Request Parameters
Page 81
task_List Tasks associated with the Invoice Tasktype array.Referto Task_list
(conditional) section for structure.
Provide at least one Task if merchant does not
provide any Item.
XML Request:
Page 82
</task_List>
<merchant_reference_no>123456987</merchant_reference_no>
<terms_and_conditions>terms and condition</terms_and_conditions>
<sms_content>Pls pay your LegalEntity_Name bill # Invoice_ID for Invoice_Currency Invoice_Amount
online at Pay_Link.</sms_content>
</Generate_Invoice_Query>
Note: You will have to encrypt the above request and store in the “enc_request” parameter before sending it to
CCAvenue. Kindly refer to the encryption section.
Json request:
{
"customer_name": "xxxxxx", "customer_email_id":
"[email protected]", "customer_email_subject":
"Test", "customer_mobile_no": "9874561236",
"currency": "INR",
"valid_for": "2",
"valid_type": "days",
"start_date": "15-08-2014",
"frequency": "Monthly",
"occurences": "5",
"item_List": [{
"name": "ITEM",
"description": "FIRST",
"quantity": "3",
"unit_cost": "1.00",
"tax_List": [
{"name": "Edu Tax","amount": "5.0"},
{"name": "Pint Tax","amount": "2.5"}
]
}],
"task_List": [{
"name": "TASK",
"notes": "NEW",
"hours": "2",
"rate": "1.00",
"tax_List":[
{"name": "STG Tax","amount": "7.0"},
{"name": "Rent Tax","amount": "8.0"}
]
}],
Page 83
"merchant_reference_no": "123456987",
"terms_and_conditions": "terms and condition",
"sms_content":"Pls pay your LegalEntity_Name bill # Invoice_ID for Invoice_Currency
Invoice_Amount online atPay_Link."
}
Note: You will have to encrypt the above request and store in the “enc_request” parameter before sending it to
CCAvenue. Kindly refer to the encryption section.
Format:
Customer_Name|Currency|Valid_For|Valid_Type|Customer_Email_Id|Customer_Email_Subject|Custo
mer_Mobile_No|Term &
Condition|SMS_Content|Merchant_Reference_number|Item_Name$Item_Quantity$Item_Description$
Unit_Cost~Tax_Name$Tax_Amount$Tax_Name$Tax_Amount^
Item_Name$Item_Quantity$Item_Description$Unit_Cost~Tax_Name$Tax_Amount$Tax_Name$Tax_Am
ount|Task_Name$Task_Rate$Task_Hours$Task_Notes~Tax_Name$Tax_Amount$Tax_Name$Tax_Amou
nt^Task_Name$Task_Rate$Task_Hours$Task_Notes~Tax_Name$Tax_Amount$Tax_Name$Tax_Amount|
Start_Date|Frequecy|Occurences|Due_Date|Late_Payment_Fees|Late_Payment_Fees_Type|Discount_I
f_Paid_Within_Due_Date|Discount_Value|Discount_Type|
Example:
Note: You will have to encrypt the above request and store in the “enc_request” parameter before sending it to
CCAvenue. Kindly refer to the encryption section.
XML Request:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Generate_Invoice_Query>
<customer_name>abc</customer_name>
<customer_email_id>[email protected]</customer_email_id>
<customer_email_subject>Test</customer_email_subject>
<customer_mobile_no>1234567890</customer_mobile_no>
<currency>INR</currency>
<valid_for>2</valid_for>
Page 84
<valid_type>days</valid_type>
<start_date>15-08-2014</start_date>
<frequency>Monthly</frequency>
<occurences>5</occurences>
<item_List>
<item>
<name>ITEM</name>
<description>FIRST</description>
<unit_cost>1.00</unit_cost>
<quantity>3</quantity>
<tax_List>
<tax name="Pint Tax" amount="2.5"/>
<tax name="Rent Tax" amount="8.0" />
</tax_List>
</item>
</item_List>
<task_List>
<task>
<name>TASK</name>
<notes>NEW</notes>
<rate>1.00</rate>
<hours>2</hours>
<tax_List>
<tax name="Pint Tax" amount="2.5"/>
<tax name="Rent Tax" amount="8.0" />
</tax_List>
</task>
</task_List>
Page 85
<merchant_reference_no>123456987</merchant_reference_no>
<terms_and_conditions>terms and condition</terms_and_conditions>
<due_date>1</due_date>
<late_payment_fees>2.5</late_payment_fees>
<late_payment_fees_type>Perc</late_payment_fees_type>
<discount_if_paid_within_due_date>4</discount_if_paid_within_due_date>
<discount_value>1.50</discount_value>
<discount_type>Perc</discount_type>
<sms_content>Pls pay your LegalEntity_Name bill # Invoice_ID for Invoice_Currency Invoice_Amount
online at Pay_Link.</sms_content>
</Generate_Invoice_Query>
Note: You will have to encrypt the above request and store in the “enc_request” parameter before sending it to
CCAvenue. Kindly refer to the encryption section.
JSON Request:
{
"customer_name": "abc", "customer_email_id": "[email protected]", "customer_email_subject": "Test",
"customer_mobile_no": "9874561236", "currency": "INR",
"valid_for": "2",
"valid_type": "days",
"start_date": "15-08-2014",
"frequency": "Monthly",
"occurences": "5",
"item_List": [{
"name": "ITEM",
"description": "FIRST",
"quantity": "3",
"unit_cost": "1.00",
"tax_List": [
{"name": "Edu Tax","amount": "5.0"},
{"name": "Pint Tax","amount": "2.5"}
]
}],
"task_List": [{
"name": "TASK",
"notes": "NEW",
"hours": "2",
"rate": "1.00",
"tax_List":[
{"name": "STG Tax","amount": "7.0"},
{"name": "Rent Tax","amount": "8.0"}
],
}],
"merchant_reference_no": "123456987",
"terms_and_conditions": "terms and condition",
"due_date": "1",
Page 86
"late_payment_fees": "2.5",
"late_payment_fees_type": "Perc",
"discount_if_paid_within_due_date": "4",
"discount_value": "1.50",
"discount_type": "Perc",
"sms_content":"Pls pay your LegalEntity_Name bill # Invoice_ID for Invoice_Currency
Invoice_Amount online at Pay_Link."
}
Note: You will have to encrypt the above request and store in the “enc_request” parameter before
sending it to CCAvenue. Kindly refer to the encryption section.
Format:
Customer_Name|Currency|Valid_For|Valid_Type|Customer_Email_Id|Customer_Email_Subject|Custo
mer_Mobile_No|Term &
Condition|SMS_Content|Merchant_Reference_number|Item_Name$Item_Quantity$Item_Description$
Unit_Cost~Tax_Name$Tax_Amount$Tax_Name$Tax_Amount^
Item_Name$Item_Quantity$Item_Description$Unit_Cost~Tax_Name$Tax_Amount$Tax_Name$Tax_Am
ount|Task_Name$Task_Rate$Task_Hours$Task_Notes~Tax_Name$Tax_Amount$Tax_Name$Tax_Amou
nt^Task_Name$Task_Rate$Task_Hours$Task_Notes~Tax_Name$Tax_Amount$Tax_Name$Tax_Amount|
Start_Date|Frequecy|Occurences|Due_Date|Late_Payment_Fees|Late_Payment_Fees_Type|Discount_I
f_Paid_Within_Due_Date|Discount_Value|Discount_Type|
Example:
Note: You will have to encrypt the above request and store in the “enc_request” parameter before sending it to
CCAvenue. Kindly refer to the encryption section.
Request Parameters
customer_name (required) Name of the customer receiving the Alphanumeric with special characters
Invoice (space, hyphen,apostrophe,
underscore, dot)(60).
customer_email_id Email ID on which the Invoice will be Alphanumeric with special characters
(required) sent (hyphen, underscore, dot, @)(70).
customer_email_subject Subject of the email containing the Alphanumeric with special characters
(required Invoice (hyphens, dot, space and
underscores)(100).
valid_for Duration for which the Invoice is Numeric(4)
(required) valid
valid_type The unit of duration represented by Possible values for valid type is
(required) valid_for minutes/hours/days/month/year
Currency Currency for which the Invoice is to beString
(required) generated
Example:
INR – Indian Rupee
USD – United States Dollar
SGD – Singapore Dollar
GBP – Pound Sterling
EUR – Euro, official currency of
Eurozone
amount(required) Invoice Amount for the generate Decimal(12,2)
invoice.
invoice_description Invoice Description to be sent in String (500)
email
merchant_reference_no Merchant identifier for the Invoice Alphanumeric with special
(Optional) characters(hyphen and
underscore)(50).
merchant_reference_no1 Merchant identifier for the Invoice Alphanumeric with special
(Optional) characters(hyphen and underscore and
hash)(100).
merchant_reference_no2 Merchant identifier for the Invoice Alphanumeric with special
(Optional) (Will not be visible in invoice just for characters(hyphen and underscore
reference) and hash)(100).
merchant_reference_no3 Merchant identifier for the Invoice Alphanumeric with special
(Optional) (Will not be visible in invoice just for characters(hyphen and underscore
reference) and hash)(100).
merchant_reference_no4 Merchant identifier for the Invoice Alphanumeric with special
(Optional) (Will not be visible in invoice just for characters(hyphen and underscore
reference) and hash)(100).
terms_and_conditions Terms and conditions to be present in AlphaNumeric with special
(optional) the Invoice characters(hyphen, dot, circular
brackets and ampersand)(500)
sms_content Sms content to be sent if delivery Alphanumeric with special characters
(optional) type is SMS or BOTH Page 88
(space, hyphen, uhash, ampersand, dot,
round brackets)(60).
sub_acc_id Unique Sub Account ID. String
(optional)
customer_mobile_no Mobile number of the customer Numeric(10)
(required) receiving the Invoice.
bill_delivery_type Invoice delivery mechanism. Possiblevalue forbill delivery type is
(required) EMAIL/SMS/BOTH.
Files Attachments to be sent with the File type array described in below
(optional) quick invoice. Applicable only if bill table.
delivery type is EMAIL/BOTH.
Files:-
XML Request:
Page 89
<sub_acc_id></sub_acc_id>
<terms_and_conditions>terms and condition</terms_and_conditions>
<sms_content>Pls pay your LegalEntity_Name bill # Invoice_ID for
Invoice_Currency Invoice_Amount online at
Pay_Link.</sms_content>
<files>
</files>
<name>Test.doc</name>
<content>77u/SGVsbG8gaW5kaWEK</content>
</Generate_Invoice_Query>
Json Request:
{
"customer_name": "Akshay",
"bill_delivery_type": "both",
"customer_mobile_no":1234567890,
"customer_email_id": "[email protected]",
"customer_email_subject": "Test",
"invoice_description": "Test",
"currency": "INR",
"valid_for": 2,
"valid_type": "days",
"amount": 10.0,
"merchant_reference_no":123456987,
"merchant_reference_no1":123456987,
"merchant_reference_no2":123456987,
"merchant_reference_no3":123456987,
"merchant_reference_no4":123456987,
"sub_acc_id":"",
"terms_and_conditions": "terms and condition",
"sms_content":"Pls call 022-2121212121 to pay your LegalEntity_Name bill # Invoice_ID for
Invoice_Currency Invoice_Amount or pay online at Pay_Link.",
"files": [{
"name": "Test.doc",
"content": "77u/SGVsbG8gaW5kaWEK"
}]
}
Page 90
String Request:
format: customer_name|currency|valid_for|valid_type|amount|bill_delivery_type|merchant_reference_
no|merchant_reference_no1|merchant_reference_no2|sub_acc_id|terms_and_conditions|mobil
e_no|sms_content|customer_email_id|customer_email_subject|invoice_description|file_name$ file_content^
file_name$file_content|
XML Response:
1. Success
Page 91
2. Failure
<?xml version='1.0' encoding='UTF-8'?>
<Generate_Invoice_Result error_code="51072"
error_desc="Merchant reference number: Invalid Parameter"
invoice_status="1">
<invoice_id></invoice_id>
<qr_code></qr_code>
<tiny_url></tiny_url>
</Generate_Invoice_Result>
"error_desc":"",
"invoice_id":"5122799",
"tiny_url":"http://payit.cc/I5122799",
"qr_code":"iVBORw0KGgoAAAANSUhEUgAAAH0AAAB9CAYAAACPgGwlAAAB-
klEQVR42u3dUY7CMAwFwNz_0rsnQFo2frWTzpP4Q6V0IiV2U1g_8roslwC6QBfoAl2gC3SBLtAFukAX6AJdoAt0
gS7QBTp0gS7QBbpAF-jydvS1Vvlr57M-vf8vx-z6XtChQ4c-HL3rODsDYGfAPHl9oEOHDn0Ienr- rVoPTPhe0KFDh_5C9G-
Pv1N2QYcOHTr0Uehd5wMdOnToOnIlx0ncyNCRgw4dOvR_d8nSpVPXGsD9dOjQoV- M_mSevFFy7DWCDh069OycXrUe-
Paz0qDTBwx06NChP1iy7cAlOl1V5zxxnQAdOnToTWVU17aonXk5cc7QoUOHflBHLrF9KHFh04Ohau0BHTp06A
PREyXPtO5f1ZoHOnTo0A_qyFXNlV0POyTWIdChQ4d-",
"invoice_status":0,
"error_code":"",
"merchant_reference_no":"123456987"
2.Failure
{
"error_desc":"Email id: Invalid Parameter",
"invoice_id":"",
"tiny_url":"",
"qr_code":"",
"invoice_status":1,
"error_code":"51012",
"merchant_reference_no":""
}
Page 92
Example:
0|5089334|iVBORw0KGgoAAAANSUhEUgAAAH0AAAB9CAYAAACPgGwlAAAB6UlEQVR42u3dQW7DMAwEQP
3_08kXEpgr0tIs0EvRurHHgETKctdHrstyCaALdIEu0AW6QBfoAl2gC3SBLtAFukAXGIvG3To0KGPunkSmxF05KBD h35hyZYe-
9LHTMwxoEOHDv3Cjlyiu5VeHJnYhYMOHTr0jeg7S6fEurnHpaBDhw591H6xrtd-
KtmgQ4cOvWXfWQJx4tsqoEOHDv0lHbn0freqbps3UUCHDv1g9J3_wyV9I3kaFjp06J57l0GBDl2gC3SBLtAFukA
X6AJdoAt0gS7QBbpAF-gCHbpAF-
gCXaALdJmcLyERMkikhZ8LAAAAAElFTkSuQmCC|http://payit.cc/I5089334|123456789|
2.Failure
Format:invoice_status|error_code|error_desc|merchant_reference_no|
Note: You will have to decrypt the above response from “enc_response” parameter. Kindly refer to the decryption
section.
Item list API call allows you to find all task and item list which is configured for the merchant.
Request Parameters
For Invoice Items, end request data is not required. Merchant has to send the command , Access code ,
request_type and response_type parameters only.
Page 93
Request example: access_code=xxxxxxxxxxxxx&command=getInvoiceItems&request_type=xml&response_type=xml
Response Parameters
item_List List of all item/task which is configured for Item List type array. Refer to
the merchant Item_Listsection for structure
Item List:
94
Example XML Response
Success:
Failure:
Note: You will have to decrypt the above response from “enc_response” parameter. Kindly refer to the decryption
section.
Success:
{
"item_List":[
{"name":"HP","description":"QC","type":"ITEM"},
{"name":"asdasd","description":"asdasd","type":"TASK"},
{"name":"STG","description":"test","type":"ITEM"},
{"name":"ITEM","description":"FIRST","type":"ITEM"},
{"name":"TASK","description":"NEW","type":"TASK"},
{"name":"TASK2","description":"NEW","type":"TASK"}
],
"status":0,
“error_desc”:””,
“error_code”:””
}
Failure:
{
"status":1,
“error_desc”:”Enc_request: No record found for given criteria.”,
“error_code”:”51419”
}
95
Note: You will have to decrypt the above response from “enc_response” parameter. Kindly refer to the decryption
section.
Success:
Failure:
Format: status|error_code|error_desc|
Example: 1|51419|Enc_request: No record found for given criteria.|
Note: You will have to decrypt the above response from “enc_response” parameter. Kindly refer to the
decryption section.
15.Invoice Lookup
Invoice lookup API call is used to find the list of all invoices.
Request Parameters
96
max_amount Max amount of the invoice to be searched Decimal(12,2)
(optional)
min_amount Min amount of the invoice to be searched Decimal(12,2)
(optional)
created_by Unique identification of the merchant for the String(Unique id of Merchant)
(optional) generate invoice.
mobile_no Customer mobile number for the generate Numbers(10)
(optional) invoice.
email_id Customer email id for the generate invoice. Alphanumeric with special characters
(optional) (hyphen, underscore,
dot, @)(70).
reference_no Unique CCAvenue reference number for the Numeric(25)
(optional) transaction.
invoice_id Unique CCAvenue bill id for the generate Numeric value(25)
(optional) invoice.
invoice_type Provide only possible value of the invoice type. The possible values for invoice type
(optional) is quick/invoice/recurring
page_no The default value of page no is 1. Number(1)
(required)
Request:
XML Format:
Note: You will have to encrypt the above request and store in the “enc_request” parameter before sending it to
CCAvenue. Kindly refer to the encryption section.
97
JSON Format:
{
"from_date":"10-10-2014",
"to_date":"11-10-2014",
"max_amt":"10.00",
"min_amt":"1.00",
"created_by":"xxx",
"invoice_email":"[email protected]",
"invoice_mobile_no":"1234569871",
"reference_no":"123654",
"invoice_id":"123",
"invoice_no":"147852",
"invoice_type":"item/task",
"invoice_type_name":"task",
"page_count":"1"
}
Note: You will have to encrypt the above request and store in the “enc_request” parameter before
sending it to CCAvenue. Kindly refer to the encryption section.
String Format:
FromDate|ToDate|max_amount|min_amount|created_by|mobile_no|email_id|reference_no|invoice_
id|invoice_no|invoice_type|invoice_type_name|page_no|
Example:11-10-2014|12-10-
2014|10.00|1.00|xxxx|1236547895|[email protected]|123654789|741258|45698741|task|FIRST|1|
Note: You will have to encrypt the above request and store in the “enc_request” parameter before sending it to
CCAvenue. Kindly refer to the encryption section.
98
Response Parameters
Name Description Note
status This states whether the call was successful or not. Value “0” denotes thatthe API
If value of this parameter is “1” then you need call wassuccessful.
not decrypt the enc_response as it will contain Value “1” denotes API call
plain error message. failure. On enc_response is
plaintext representing theerror
message.
Page 99
order_bill_tel Order billing telephone no for the order. Numeric(10)
order_bill_zip Order billing address’ pin code for the order. Possible value for zip is
AlphaNumeric with special
characters(hyphen and space)
(15).
order_capt_amt Captured amount for the transaction. Decimal (12,2)
Captured amount can be full or partial of the
transaction amount.
order_curr Possible order Currency in which merchant String Examples:
processed the transaction. INR – Indian Rupee
USD – United States Dollar
SGD – Singapore Dollar
GBP – Pound Sterling
EUR –Euro,official currencyof
Eurozone
Page
101
order_status Status of the order. It can be single or multiple. String
Possible values are:
Aborted (transaction is
cancelled by the User)
Auto-Cancelled (transactionhas
not confirmed within 12 days
hence auto cancelled by
system)
Auto-Reversed (two identical
transactions for same order
number, both were successful at
bank's end but we got
response for only one of them,
then next day during
reconciliation we mark one of
the transaction as auto reversed
)
Awaited (transaction is
processed from billing shipping
page but no response is
received)
Cancelled (transaction is
cancelled by merchant )
Chargeback()
Invalid(Transaction sent to
CCAvenue with Invalid
parameters, hence could not be
processed further)
Fraud (we update this during
recon, the amount is different at
bank’s end and at CCAvenue due
to tampering)
Initiated (transaction just
arrived on billing shipping page
and not processed further )
Refunded (Transaction is
refunded.)
Shipped (transaction is confirmed)
Successful
System refund (Refunded by
CCAvenue for various find of
reversals by CCAvenue)
Unsuccessful (transaction is not
successful)
order_status_date_time This is the latest date and time when order DateTime in IST( yyyy-MM-dd
status is modified. HH:mm:ss.SSS) format.
Page
102
order_TDS Amount of TDS (tax deducted at source) for Decimal(13,4).
the Transaction.
reference_no Unique CCAvenue reference no for the Numeric(25).
transaction.
error_desc This Attribute contains the description of the Please refer below table for
failure request processing. When status is 1 then the failure message.
this attribute will generate the reason for failure.
Success:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Invoice_List_Result error_desc="" error_code=”” error_desc=””>
<invoice_List>
<invoice
invoice_Created_By="API"
invoice_Id="xxxxxxxxx"
invoice_ref_no="xxxxxxxx"
order_Amt="xx.xx"
order_Bank_Mid="xxxxxxxx"
order_Bank_Ref_No="xxxxxxxx"
order_Bank_Response="xxxx xxxxx"
order_Bill_Address="xxxxx"
order_Bill_City="xxxxxx"
order_Bill_Country="xxxxxx"
order_Bill_Email="[email protected]"
order_Bill_Name="xxxxxx"
order_Bill_State="xxxxxx"
order_Bill_Tel="xxxxxxxxxx"
order_Bill_Zip="xxxxxx"
order_Capt_Amt="xx.xx"
order_Card_Name="xyz"
order_Card_Type="abcd"
order_Currency="xxx"
order_Date_time="xxxx-xx-xx xx:xx:xx"
Page
103
order_Discount="x.x"
order_Fee_Flat="x.x"
order_Fee_Perc="xx.xx"
order_Fraud_Status="xxx"
order_Gross_Amt="x.xx"
order_Gtw_Id="xxxxx"
order_Ip="xxx.xxx.xxx.xxx"
order_No="x"
order_Ship_Address="xxxxxx xxxx"
order_Ship_City="xxxxxxx"
order_Ship_Country="xxxxxx"
order_Ship_Name="xxxxx xxxx"
order_Ship_State="xxx"
order_Ship_Tel="xxxxxxxxxx"
order_Ship_Zip="xxxxxx"
order_Status="xxxxxxxx"
order_Status_Date_time="xxxx-xx-xx xx:xx:xx"
order_Tax="xx.xxxx"
order_Type="xx-xxx"/>
</invoice_List>
<page_count>1</page_count>
<total_records>1</total_records>
</Invoice_List_Result>
Failure:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Invoice_List_Result error_desc="Order List: Invalid Parameter" error_code=”51308”/>
Note: You will have to decrypt the above response from “enc_response” parameter. Kindly refer to the decryption
section.
Example JSON Response Success:
{
"invoice_List":[{
"invoice_Id":5094273,
"invoice_ref_no":"123456987","
invoice_Created_By":"API",
"order_Currency":"INR",
"order_Amt":0.0,
"order_Gross_Amt":0.0,
"order_Discount":0.0,
"order_Capt_Amt":0.0,
"order_Fee_Perc":0.0,
"order_Fee_Perc_Value":0.0,
"order_Fee_Flat":0.0,
"order_Tax":0.0
Page
104
}],
"page_count":1,
"total_records":1,
"error_desc":"",
"error_code":""
}
Failure:
{
"error_desc":"Order List: Invalid Parameter",
"error_code":"51308",
"page_count":0,
"total_records":0
}
Page
105
Note: You will have to decrypt the above response from “enc_response” parameter. Kindly refer to the decryption
section.
String Format:
page_count|total_records|Invoice_Id$Invoice_ref_no$Invoice_Created_By$Order_No$Order_Type$Ord
er_Currency$Order_Amt$Order_Date_time$Order_Notes$
Order_Ip$Order_Status$$Order_Bank_Response$Order_Bank_Mid$Order_Bank_Ref_No$Order_Status_
Date_Time$Order_Fraud_Status$Order_Card_Name$Order_Card_Type
$Order_Gtw_Id$Order_Gross_Amt$Order_Discount$Order_Capt_Amt$Order_Fee_Flat$Order_Fee_Perc
$Order_Tax$Order_Delivery_Details$Order_Bill_Name$Order_Bill_Email$Order_Bill_Tel$Order_Bill_Add
ress$Order_Bill_City$Order_Bill_State$Order_Bill_Country$Order_Bill_Zip$Order_Ship_Name$Order_Sh
ip_Email$Order_Ship_Tel$Order_Ship_Address$Order_Ship_City$Order_Ship_State$Order_Ship_Countr
y$Order_Ship_Zip^|
Success:
1|1|xxxxxx$xxxxxxx$API$xxxxx$xx-xxx$xxxx$xx.xx$xxxx-xx-xx xx:xx:xx.xxx$$xxx.xxx.xxx.xxx$xxxx$xxx
xxx$xxxxxxx$xxxxxx$xxxx-xx-xx
xx:xx:xx.xxx$xx$xxxxxx$xxxx$xxxx$xx.xx$x.x$x.xx$x.x$xx.x$x.xxxx$$xxxx$xxxx@xxx.com$xxxxxxxx$xxx$xx
xx$xxxx$xxxx$xxxx$xxxx xxxx$$xxxxxxx$xxxxx xxxx$xxxxxx$xx$xxxxx$xxxxxx|
Failure:
page_count|total_records|error_code|error_desc|
Note: You will have to decrypt the above response from “enc_response” parameter. Kindly refer to the decryption
section.
Page
106
16. Update Invoice Reference Number
Update Invoice reference Number API call is used to update Invoice reference number if the same was not
provided at the time of invoice generation.
Request Parameters:
Request format:
XML Format:
Note: You will have to encrypt the above request and store in the “enc_request” parameter before sending it to
CCAvenue. Kindly refer to the encryption section.
JSON Format:
Page
107
{
"bill_id":"123456",
"mer_reference_no":"123654"
}
Note: You will have to encrypt the above request and store in the “enc_request” parameter before sending it to
CCAvenue. Kindly refer to the encryption section.
String Format:
Format: Bill_id|merchant_reference_no|
Example: 123456|123654|
Note: You will have to encrypt the above request and store in the “enc_request” parameter before sending it to
CCAvenue. Kindly refer to the encryption section.
Response Parameters
Page
108
Response Format:
XML Format:
Success:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Update_Merch_Ref_No_Result update_status=”0” error_code=”” error_desc=””/>
Failure:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Update_Merch_Ref_No_Result update_status=”1” error_desc=”Bill Merchant Reference No: Invalid Parameter”
error_code=”51320”/>
Note: You will have to decrypt the above response from “enc_response” parameter. Kindly refer to the decryption
section.
JSON Format:
Success:
{
"update_status":0,
"error_desc":, "error_code":
Failure:
Page
109
Note: You will have to decrypt the above response from “enc_response” parameter. Kindly refer to the decryption
section.
String Format:
Example: 0|
Note: You will have to decrypt the above response from “enc_response” parameter. Kindly refer to the decryption
section.
Update Merchant params API is used to add some extra parameter against Reference no if the same could not be
done at the time of the transaction.
Request Parameters:
Page
110
param_value1 Merchant can update one param value against Alphanumeric with special
(optional) unique reference no after placing order. characters(comma, hyphen,
backslash and dot)(100)
param_value2 Merchant can update one param value against Alphanumeric with special
(optional) unique reference no after placing order. characters(comma, hyphen, backslash
and dot)(100)
param_value3 Merchant can update one param value against Alphanumeric with special
(optional) unique reference no after placing order. characters(comma, hyphen,
backslash and dot)(100).
param_value4 Merchant can update one param value against Alphanumeric with special
(optional) unique reference no after placing order. characters(comma, hyphen, backslash
and dot)(100)
Request format:
XML Format:
<reference_no>203000093626</reference_no>
<param_value>10</param_value>
<param_value1>11</param_value1>
<param_value2>22</param_value2>
<param_value3>33</param_value3>
<param_value4>44</param_value4>
</Update_Merchant_Params_Query>
Note: You will have to encrypt the above request and store in the “enc_request” parameter before sending it to
CCAvenue. Kindly refer to the encryption section.
JSON Format:
{
"reference_no":"123654",
"param_value":"10",
"param_value1":"11",
"param_value2":"22",
"param_value3":"33",
"param_value4":"44"
}
Note: You will have to encrypt the above request and store in the “enc_request” parameter before sending it to
CCAvenue. Kindly refer to the encryption section.
String Format:
Page
111
Format: Reference_no|Param_value1|Param_value2|Param_value3|Param_value4|Param_value5|
Example: 123456|10|11|22|33|44|
Note: You will have to encrypt the above request and store in the “enc_request” parameter before sending it to
CCAvenue. Kindly refer to the encryption section.
Response Parameters
update_status Update status contains merchant parameter if “0” means update merchant
add/update was successful or not. parameter value was successful. “1”
means update merchant param
value was not successful.
Response Format:
XML Format:
Success:
Failure:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Update_Merchant_Param_Result error_desc="Reference number: Invalid Parameter" update_status="1"
error_code=”51322”/>
Page
112
Note: You will have to decrypt the above response from “enc_response” parameter. Kindly refer to the decryption
section.
JSON Format:
Success:
{
“update_status”:0,
"error_desc":"",
"error_code":""
}
Failure:
{
"error_desc":"Reference number: Invalid Parameter",
"error_code":"51322",
} "update_status":1
Note: You will have to decrypt the above response from “enc_response” parameter. Kindly refer to the decryption
section.
String Format:
Example: 0|
Note: You will have to decrypt the above response from “enc_response” parameter. Kindly refer to the decryption
section.
Page
113
18. Update Billing Details
Update billing details API call is used to update customer billing information against an order.
Request Parameters:
Page
114
bill_zip Billing zip for order AlphaNumeric with special
(required) characters(hyphen and space)
(15).
Request format:
XML Format:
Note: You will have to encrypt the above request and store in the “enc_request” parameter before sending it to
CCAvenue. Kindly refer to the encryption section.
JSON Format:
{
"reference_no":"123456",
"bill_name":"bill name",
"bill_email":"[email protected]",
"bill_address":"santacruz(west)",
"bill_city":"mumbai",
"bill_state":"maharashtra",
"bill_country":"india",
"bill_zip":"400000"
}
Note: You will have to encrypt the above request and store in the “enc_request” parameter before sending it to
CCAvenue. Kindly refer to the encryption section.
String Format:
Format: Reference No|Billing Name|Bill Email ID|Bill Address|Bill City|Bill State|Bill Country|Bill Zip|
Page
115
Note: You will have to encrypt the above request and store in the “enc_request” parameter before sending it to
CCAvenue. Kindly refer to the encryption section.
Response Parameters
update_status Update_status denotes whether Billing “0” means update billing details was
information have been updated successfully or successful.
not. “1” means billing details are not
successfully updated.
Response Format:
XML Format:
Success:
Failure:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Update_Bill_Details_Result update_status=”1” error_desc=”Reference number: Invalid Parameter”
error_code=”51316”/>
Page
116
Note: You will have to decrypt the above response from “enc_response” parameter. Kindly refer to the decryption
section.
JSON Format:
Success:
{
"update_status":0,
"error_desc":"",
"error_code":""
}
Failure:
Page
117
Note: You will have to decrypt the above response from “enc_response” parameter. Kindly refer to the
decryption section.
String Format:
Example: 0|
Note: You will have to decrypt the above response from “enc_response” parameter. Kindly refer to the
decryption section.421=Unsupported version for the API call.
19.Bin Details
Request Parameters
Page
118
Example XML Request
<bin_details_query>
<bin_number>464042</bin_number>
</bin_details_query>
Note: You will have to encrypt the above request and store in the “enc_request” parameter before
sending it to CCAvenue. Kindly refer to the encryption section.
{'bin_number': '464042' }
Note: You will have to encrypt the above request and store in the “enc_request” parameter before
sending it to CCAvenue. Kindly refer to the encryption section.
Format: bin_number|
Example: 464042|
Note: You will have to encrypt the above request and store in the “enc_request” parameter before sending it
to CCAvenue. Kindly refer to the encryption section.
Response Parameters
Page
119
card_name Name of the card of the selected Bin number. String
Possible values,
"Visa Debit Card",
"Amex",
"Diners Club",
"DISCOVER",
"JCB",
"MasterCard",
"Visa"
card_type Card type of the given bin number. String
Possible values:
“OPTDBCRD”,
“OPTCRDC”
payment_option Payment option for the card of the given bin String. Values
number :
OPTCRD-credit card
OPTDBCRD-debit card
issuing_bank Name of the bank that issue the card of the String
given bin number
country Country of the bank that issue the card of the String
given bin number
Success: Page
<?xml version='1.0' encoding='UTF-8'?> 120
<bin_details_Result>
<bin_number>464042</bin_number>
<card_type>DBCRD</card_type>
<country>UNITED STATES</country>
<error_code></error_code>
<error_desc></error_desc>
<payment_option>OPTDBCRD</payment_option>
</bin_details_Result>
Failure:
<?xml version='1.0' encoding='UTF-8'?>
<bin_details_Result>
<error_code>52026</error_code>
</bin_details_Result>
Example JSON
Response Success:
{"bin_details_Result":{
"issuing_bank":"FLAGSTAR BANK FSB",
"card_type":"DBCRD",
"bin_number":464042,
"payment_option":"OPTDBCRD",
"error_code":"UNITED STATES",
"card_name":"Visa Debit Card",
"country":"",
"error_desc":""
}
}
Failure:
Page
{"bin_details_Result":{
"error_code":52026, 121
"error_desc":"bin_number: Invalid
Parameter"
}
}
Note: You will have to decrypt the above response from “enc_response” parameter. Kindly refer to the
decryption section.
Example STRING
Response Success:
Format: Bin_number|Card_name|Card_type|Payment_option|Issuing_bank|Error_code|Error_desc
Example:
464042|Visa Debit Card|DBCRD|OPTDBCRD|FLAGSTAR BANK FSB||
Failure:
Example: |||||52026|bin_number: Invalid Parameter
Note: You will have to decrypt the above response from “enc_response” parameter. Kindly refer to the
decryption section.
20.PayId Details
PayId Details API call is used to list transactions for a given PayId.
Request Parameters
<pay_id_details_query>
<pay_id>XXXXX</pay_id>
<page_number>1</page_number>
</pay_id_details_query>
Note: You will have to encrypt the above request and store in the “enc_request” parameter before sending
it to CCAvenue. Kindly refer to the encryption section.
Example JSON Request
{
'pay_id':'XXXXX',
‘page_number’:1
}
Note: You will have to encrypt the above request and store in the “enc_request” parameter before sending
it to CCAvenue. Kindly refer to the encryption section.
Response Parameters
bill_name Order billing name for the order. Possible value for name is
Alphanumeric with special
characters (space, hyphen,
apostrophe, underscore,
dot)(60).
ccavenue_ref_no CCAvenue reference no allocated to the Numeric(25).
transaction.
date_time This is the latest date and time when order DateTime in IST( yyyy-MM-dd
status is modified. HH:mm:ss.SSS) format.
Success:
<pay_id_details_Result>
<error_code></error_code>
<error_desc></error_desc>
<pay_id>XXXXX</pay_id>
<page_count>X</page_count>
<total_records>XXX</total_records>
<pay_id_txn_details_list>
<pay_id_txn_details
amount="40.00" Page
125
amt_payable="35.88"
bank_ref_no="14525144XX217"
bill_name="Shashi"
ccavenue_ref_no="2XX000170631"
currency="INR"
date_time="2016-01-11 17:42:58.223"
fees="3.60"
order_no="296XX917"
sub_acc_id=""
tax="0.52"
order_option_type=”OPTDBCRD”
txn_type="Chargeback" />
</pay_id_txn_details_list>
</pay_id_details_Result>
Failure:
<pay_id_details_Result>
<error_code>51419</error_code>
<pay_id>XXXXX</pay_id>
<page_count>0</page_count>
<total_records>0</total_records>
</pay_id_details_Result>
Page
126
Note: You will have to decrypt the above response from “enc_response” parameter. Kindly refer to the
decryption section.
Success:
{
"pay_id_details_Result":{
"error_code":"",
"error_desc":"",
"pay_id":XXXXX,
“page_count”:X,
“total_records”:XXX,
"pay_id_txn_details_list":{
"pay_id_txn_details"[{
"amt_payable":35.88,
"bill_email":"[email protected]",
"fees":3.6,
"bill_name":"Shashi",
"order_no":29XX9917,
"currency":"INR",
"amount":40,
"tax":0.52,
"ccavenue_ref_no":20XX00170631,
"bank_ref_no":1452XXX407217,
"date_time":"2016-01-11 17:42:58.223",
"order_option_type":"OPTDBCRD",
Page
"txn_type":"Chargeback", 127
"sub_acc_id":""
}]
Failure:
{
"pay_id_details_Result":{
"error_code":XXXXX,
"error_desc":"pay_id: Invalid Parameter",
"pay_id": XXXXX,
"total_records":0,
"page_count":0
}
}
Note: You will have to decrypt the above response from “enc_response” parameter. Kindly refer to the
decryption section.
21.Payouts Summary
Payouts Summary API call is used to list payouts summary for a merchant for a given settlement date.
Request Parameters
request_type API requests are accepted in XML, JSON or Possible value for request_type is
(required) String. Specify the request type. “XML” or “JSON”
response_type Page
API returns responses in XML, JSON or String Possible value for response_type
(optional) format. If left blank, the response will be in the is “XML” or “JSON” 128
same format as request.
Command Command value specifies the API calls. You Possible value for this API call is
(required) must send this with each request. “payoutSummary”.
settlement_date Provide the settlement Date to find the Date must be in IST(dd-mm-yyyy
(required) payouts list. )format.
<payout_summary_query>
<settlement_date>01-02-2019</settlement_date>
</payout_summary_query>
Note: You will have to encrypt the above request and store in the “enc_request” parameter before sending
it to CCAvenue. Kindly refer to the encryption section. Example JSON Request
{
'settlement_date': '01-02-2019'
}
Note: You will have to encrypt the above request and store in the “enc_request” parameter before sending
it to CCAvenue. Kindly refer to the encryption section.
Response Parameters
Page
settlement_date Date of settlement. Date in IST(dd-mm-yyyy129
)
format.
Examples:
INR – Indian Rupee
Success:
<Payout_Summary_Result>
<error_code></error_code>
<error_desc></error_desc>
<payout_summary_list>
<payout_summary_details
pay_amount="211.76" Page
pay_Id="40907" 130
settlement_date="19-01-2016"
settlement_bank="KARUR VYSYA BANK"
settlement_currency="INR" sub_acc_Id="split-1"
trans_currency="INR"
utr_no="1234567890” />
</payout_summary_list>
</Payout_Summary_Result>
Failure:
<Payout_Summary_Result>
<error_code>51419</error_code>
</error_desc>
</Payout_Summary_Result>
Note: You will have to decrypt the above response from “enc_response” parameter. Kindly refer to the
decryption section.
Success:
{
"Payout_Summary_Result":{
"error_code":"",
"error_desc":"",
"pauyout_summary_list":{
"pauyout_summary_details":[{
"pay_amount":211.76,
Page
"trans_currency":"INR", 131
"pay_Id":40907,
"sub_acc_Id":"split-1",
"settlement_date":"19-01-2016",
"settlement_currency":"INR",
“utr_no”="1234567890”
}]
Failure:
{
"Payout_Summary_Result":{
"error_code":52014,
Note: You will have to decrypt the above response from “enc_response” parameter. Kindly refer to the
decryption section.
The getRefundDetails API call can be used to fetch refund information of the particular transaction.
Sample request
enc_request=63957FB55DD6E7B968A7588763E08B240878046EF2F520C44BBC63FB9CCE726209A473487
7
F5904445591304ABB2F5E58B951E39EAFB9A24584B00590ADB077ADE5E8C444EAC5A250B1EA96F68D22
E Page
44EA2515401C2CD753DBA91BD0E7DFE7341BE1E7B7550&access_code=8JXENNSSBEZCU8KQ&command
132
= getRefundDetails&request_type=XML&response_type=XML&version=1.1
Request Parameters
Format: reference_no|
Example: 123456789012|
Page
133
Note: You will have to encrypt the above request and store in the “enc_request” parameter before
sending it to CCAvenue. Kindly refer to the encryption section.
Response Parameters
Successful Response
XML Response:
JSON Response:
{
"refund_list":[{"refund_amt":"1.00",
"refund_issue_date":"2014-09-12 15:11:07.877",
"refund_processed_on":"",
"refund_completion_date":"2014-09-12 15:12:07.77",
"refund_bank_ref_no":"2492",
"refund_mer_ref_no":"A1",
"refund_status":"TS-REFC"
},
{
"refund_amt":"1.00", Page
"refund_issue_date":"2014-09-12 15:11:13.99",
123
"refund_processed_on":"",
"refund_completion_date":"2014-09-12 15:12:10.413",
"refund_bank_ref_no":"2493",
"refund_mer_ref_no":"A2",
"refund_status":"TS-REFC"
}],
"reference_no":"203000111377",
"order_no":"06333954",
"order_amt":"10.00",
"order_curr":"INR",
"order_status":"Refunded",
"error_desc":"",
"error_code":""
}
String Response:
Format:
error_code|error_desc|reference_no|order_no|order_curr|order_amt|order_status|refund_amt$refu
nd_
issue_date$refund_processed_on$refund_completion_date$refund_bank_ref_no$refund_mer_ref_no$r
ef und_status|
||203000111377|06333954|INR|10.00|Refunded|1.00$2014-09-12 15:11:07.877$$2014-09-12
15:12:07.77$2492$A1$TS-REFC^1.00$2014-09-12 15:11:13.99$$2014-09-12
15:12:10.413$2493$A2$TS-REFC|
Note: You will have to decrypt the above response from “enc_response” parameter. Kindly refer to
the decryption section.
Failure Response:
XML Response:
{
"reference_no":"123456789012",
"order_no":"",
"order_amt":"",
"order_curr":"",
"order_status":"",
"error_desc":"Enc_request: No record found for given
criteria.", "error_code":"51419"
}
String Response:
Format:
error_code|error_desc|reference_no|order_no|order_curr|order_amt|order_status|refund_amt$refu
nd_
issue_date$refund_processed_on$refund_completion_date$refund_bank_ref_no$refund_mer_ref_no$r
ef und_status|
Page
141
Parameter parameter has Decimal
value."
51023 Missing Parameters Page Number: Required "Ensure that Order Lookup
Parameter missing Page Number
parameter is not
blank.”
51024 Invalid Parameter Page Number: Invalid "Ensure that Page Order Lookup
Parameter Number parameter is
greater than zero."
51026 Invalid Parameter Invoice id: Invalid “Ensure that invoice id Invoice Lookup
Parameter parameter is numeric.”
51027 Invalid Parameter Invoice id: Invalid “Ensure that invoice id Invoice Lookup
Parameter parameter parameter
does not exceed 30
characters.”
51028 Invalid Parameter Invoice Number: Invalid "Ensure that only Order Lookup
Parameter letters, number hyphen
and underscore are
provided for invoice
Number parameter."
51029 Invalid Parameter Invoice Number: Invalid "Ensure that Invoice Invoice Lookup
Parameter number parameter
does not exceed 30
characters."
51031 Invalid Parameter Invoice type: Invalid “Ensure that values for InvoiceLookUp,
Parameter invoice type parameter
are TASK/ITEM.”
51032 Missing Parameter Currency: Required “Ensure that Currency GenerateQuickInvoice,
parameter missing parameter is not blank.” GenerateRecurringInvoice,
GenerateInvoice
51033 Invalid Parameter Currency: Invalid “Ensure that Currency is GenerateQuickInvoice,
Parameter assigned to the GenerateRecurringInvoice,
Page
merchant.” GenerateInvoice
142
51034 Missing Parameter Valid for: Required “Ensurethat 'validfor' GenerateQuickInvoice,
parameter missing parameter is not blank.” GenerateRecurringInvoice,
GenerateInvoice
51035 Invalid Parameter Valid for: Invalid “Ensurethat 'valid for' GenerateQuickInvoice,
Parameter parameter is Numeric.” GenerateRecurringInvoice,
GenerateInvoice
51036 Invalid Parameter Valid for: Invalid “Ensure that 'valid for' GenerateQuickInvoice,
Parameter parameter does not exceed GenerateRecurringInvoice,
4 digits.” GenerateInvoice
51037 Missing Parameter Valid type: Required “Ensure that valid type GenerateQuickInvoice,
parameter missing parameter value is not GenerateRecurringInvoice,
blank.” GenerateInvoice
51038 Invalid Parameter Valid type: Invalid “Ensure that values for GenerateQuickInvoice,
Parameter valid type parameter are GenerateRecurringInvoice,
days/hours/minutes.” GenerateInvoice
51039 Missing Parameter Bill delivery type: “Ensure that bill GenerateQuickInvoice
Required delivery Type
parameter parameter is not
missing blank.”
51040 Invalid Parameter Bill delivery type: Invalid “Ensurethatvaluefor bill GenerateQuickInvoice
Parameter delivery type parameter
is SMS/EMAIL.”
51041 Missing Parameter Name: Required parameter “Ensure that Name UpdateBillingDetails,
missing parameter is not blank.” GenerateQuickInvoice,
GenerateRecurringInvoice
51042 Invalid Parameter Name: Invalid Parameter “Ensure that only letters, UpdateBillingDetails,
space, dot, underscore, GenerateQuickInvoice,
hyphen and single GenerateRecurringInvoice,
apostrophe are provided PendingOrder
for Name parameter.”
51043 Invalid Parameter Name: Invalid Parameter “Ensure that Name UpdateBillingDetails,
parameter does not GenerateQuickInvoice,
exceed 60 characters.” GenerateRecurringInvoice,
PendingOrder
51044 Missing Parameter Address: Required “Ensure that Address UpdateBillingDetails
Page
parameter missing parameter is not blank.”
143
51045 Invalid Parameter Address: Invalid “Ensure only letters, UpdateBillingDetails
Parameter numbers, space, hyphen,
comma, ampersand, hash,
circularbrackets anddot are
provided for Address
parameter.”
51046 Invalid Parameter Address: Invalid “Ensure that Address UpdateBillingDetails
Parameter parameter does not
exceed 315 characters.”
51047 Missing Parameter City: Required parameter “Ensure that City Missing
missing parameter is not blank.” Mer_charge_reference_nu
mber,
UpdateBillingDetails
51048 Invalid Parameter City: Invalid Parameter “Ensure that only UpdateBillingDetails
numbers, letters, space,
comma, hyphen and dot
are provided for City
parameter.”
51049 Invalid Parameter City: Invalid Parameter “Ensure that City UpdateBillingDetails
parameter does not
exceed 30 characters.”
51050 Missing Parameter Zip/PIN code: Required “Ensure that UpdateBillingDetails
parameter missing Zip/PIN code
parameter is not
blank.”
51051 Invalid Parameter Zip/PIN code: Invalid “Ensure that only letters, UpdateBillingDetails
Parameter numbers, hyphen and
space are provided for
Zip/PIN code
parameter.”
51052 Invalid Parameter Zip/PIN code: Invalid “Ensure that UpdateBillingDetails
Parameter Zip/PIN code
parameter does not Page
exceed 15 144
characters.”
51053 Missing Parameter State: Required parameter “Ensure that State UpdateBillingDetails
missing parameter is not blank.”
51054 Invalid Parameter State: Invalid Parameter “Ensure that only letters, UpdateBillingDetails
hyphen, dot and space are
provided for State
parameter.”
51055 Invalid Parameter State: Invalid Parameter “Ensure that State UpdateBillingDetails
parameter does not
exceed 30 characters.”
51056 Missing Parameter Country : Required “Ensure that UpdateBillingDetails
parameter missing Country Code
parameter is not
blank.”
51057 Invalid Parameter Country: Invalid Parameter “Ensure that only letters UpdateBillingDetails
and space are allowed for
Country Code
parameter.”
51058 Invalid Parameter Country: Invalid Parameter “Ensure that UpdateBillingDetails
Country Code
parameter does not
exceed 30
characters.”
51059 Missing Parameter Customer id: Required “Ensure that Customer id GetCustomerPaymentO
parameter missing parameter is not blank.” ptions,
DeleteCustomerPayment
Option,
DeleteCustomer,
Customer payment
option,Add customer
payment option
51060 Invalid Parameter Customer id: Invalid “Ensure that only letters GetCustomerPaymentOpti
Parameter and number are provided ons,Ad d customer
for Customer id payment option
parameter.” DeleteCustomerPaymentO
ption, DeleteCustomer
51061 Invalid Parameter Customer id: Invalid “Ensure that Customer id GetCustomerPaymentO
Parameter parameter does not exceed ptions,
25 digits.” DeleteCustomerPayment
Option,
DeleteCustomer,
Customer payment
option,Add
Page customer
payment
145 option
51062 Missing Parameter Customer card id: “Ensure that Customer card DeleteCustomerPaymentO
Required id is not blank.” ption
parameter
missing
51063 Invalid Parameter Customer card “Ensure that only DeleteCustomerPaymentO
id: Invalid numbers are ption
Parameter provided for
Customer card id
parameter.”
51064 Invalid Parameter Customer card “Ensure that DeleteCustomerPaymentO
id: Invalid Customer card id ption
Parameter parameter does not
exceed 25
Page
146
characters.”
51065 Missing Parameter Parameter value: Required “Ensure that Merchant UpdateMerchantParams
parameter missing Params value is not blank.”
51066 Invalid Parameter Parameter value: Invalid “Ensure that UpdateMerchantParams
Parameter Alphanumeric, comma,
hyphen, backslash and
dot are
provided for parameters
Value.”
51067 Invalid Parameter Parameter value: Invalid “Ensure that Parameter UpdateMerchantParams
Parameter value does not exceed
100 characters.”
51068 Missing Parameter Bill id: Required parameter “Ensure that Bill id UpdateInvoiceReference
missing parameter is not blank.” Number,
Updatemerchantreferenc
enumbe r
51069 Invalid Parameter Bill id: Invalid Parameter “Ensure that Bill id UpdateInvoiceReference
parameter is a numeric Number,
value greater than InvoiceLookUp,
zero.” Updatemerchantreferen
cenumbe r
51070 Invalid Parameter Bill id: Invalid Parameter “Ensure that Bill id UpdateInvoiceReferenceN
parameter does not umber, InvoiceLookUp
exceed 25 characters.”
51071 Missing Parameter Merchant reference “Ensure that merchant UpdateInvoiceReferenceN
number: Required Reference Number is umber,
parameter missing notblank.”
51072 Invalid Parameter Merchant reference “Ensure that only letters, UpdateInvoiceReferenceN
number: Invalid numbers, hyphen and umber,
Parameter underscore are provided GenerateRecurringInvoi
for merchant Reference ce, GenerateInvoice
number parameter.”
Page
51073 Invalid Parameter Merchant reference “Ensure that Merchant UpdateInvoiceReferenceN
147
number: Invalid reference number umber,
Parameter parameter does not GenerateRecurringInvoi
exceed 25 characters.” ce, GenerateInvoice
51074 Missing Parameter SMS Content: Required “Ensure that GenerateRecurringInvoice,
parameter missing SMS Content GenerateInvoice
parameter is
not blank.”
51075 Missing Parameter SMS Content: Required “Ensure that 'Basic place GenerateRecurringInvoice,
parameter missing holders in SMS Content' GenerateInvoice
parameter is not blank.”
51076 Invalid Parameter SMS Content: Invalid “Ensure that SMS content GenerateRecurringInvoice,
Parameter parameter does not exceed GenerateInvoice
500 Characters.”
51077 Missing Parameter Email subject: Required “Ensure that GenerateQuickInvoice,
parameter missing Email Subject GenerateRecurringInvoice,
parameter is not GenerateInvoice
blank.”
51078 Invalid Parameter Email subject: Invalid “Ensure that Email GenerateQuickInvoice,
Parameter subject parameter GenerateRecurringInvoice,
contains only letters, GenerateInvoice
numbers, hyphens, dot,
space and underscores.”
51079 Invalid Parameter Email subject: Invalid “Ensure that Email GenerateQuickInvoice,
Parameter subject parameter GenerateRecurringInvoice,
does not exceed 100 GenerateInvoice
characters.”
51080 Invalid Parameter Email “Ensure that Email GenerateRecurringInvoice,
Description: Description parameter GenerateInvoice
Invalid contains only letters,
Parameter numbers,hyphen,
dot,circular brackets,
space, comma,
underscore, hash and
ampersand.”
51081 Invalid Parameter Email "Ensure that Email Generate QuickInvoice
Description: Description
Invalid parameter does not
Parameter exceed 100
characters."
51082 Invalid Parameter File List: Invalid Page
“Ensurethatonlyonefile is GenerateQuickInvoice
Parameter attached in quick invoice.” 148
51083 Invalid Parameter File List: Invalid “Ensure that Attached File GenerateQuickInvoice
Parameter extension is (doc, jpg, jpeg,
docx, pdf, png).”
51084 Invalid Parameter File List: Invalid “Ensure that File size GenerateQuickInvoice
Parameter does not exceed
1MB.”
51085 Missing Parameter Refund Reference Number: “Ensure that 'refund Refund
Required parameter missing reference no' parameter is
not blank.”
51086 Invalid Parameter Refund Reference Number: “Ensure that Only letters Refund
Invalid Parameter and numbers are provided
for refund Reference
Number parameter.”
51087 Invalid Parameter Refund reference "Ensure that Refund Refund orders
number: Invalid reference number
Parameter parameter does not
exceed 100 characters."
51088 Missing Parameter Frequency: Required “Ensure that Frequency GenerateRecurringInvoic
parameter missing parameter is not blank.” e
51089 Invalid Parameter Frequency : Invalid “Ensure that values for GenerateRecurringInvoic
Parameter frequency parameter e
are only
Daily/Monthly/Quarterly/
Yearly.”
51118 Missing Parameter Occurrences: Required “Ensure that Occurrences GenerateRecurringInvoic
parameter missing parameter is not blank.” e
51119 Invalid Parameter Occurrences: Invalid “Ensure that Occurrences GenerateRecurringInvoic
Parameter parameter is Numeric.” e
51120 Invalid Parameter Occurrences: Invalid “Ensure that Occurrences GenerateRecurringInvoic
Parameter parameter does not e
exceed 3 digits.”
51121 Invalid Parameter Occurrences: Invalid “Adding occurrences is GenerateRecurringInvoic
Parameter only applicable for e
recurring invoice.”
51122 Missing Parameter Task name: Required “Ensure that task name GenerateRecurringInvoice,
parameter missing parameter is not blank.” GenerateInvoice
51123 Invalid Parameter Task name: Invalid “Ensure that only GenerateRecurringInvoice,
Parameter letters, space, GenerateInvoice
Page
underscore and
149
hyphen are
provided for task name
parameter.”
51124 Invalid Parameter Task name: Invalid “Ensure that Task name GenerateRecurringInvoice,
Parameter parameter does not GenerateInvoice
exceed 30 Characters.”
51125 Missing Parameter Task Note: Required "Ensure that Task Note Generate Invoice
parameter missing parameter is not blank."
51126 Invalid Parameter Task note: Invalid “Ensure that Task note GenerateRecurringInvoice,
Parameter parameter contains GenerateInvoice
only letters, numbers,
hyphen, dot, circular
brackets, space, comma,
underscore, hash and
ampersand.”
51127 Invalid Parameter Task Note: Invalid "Ensure that Task Note Generate Invoice
Parameter parameter does not
exceed 60 characters."
51128 Missing Parameter Task rate: Required “Ensure that task rate GenerateRecurringInvoice,
parameter missing parameter is not blank.” GenerateInvoice
51129 Invalid Parameter Task rate: Invalid “Ensure that task rate GenerateRecurringInvoice,
Parameter parameter is decimal.” GenerateInvoice
51130 Missing Parameter Task hour: Required “Ensure that task hour GenerateRecurringInvoice,
parameter missing parameter is not blank.” GenerateInvoice
51131 Invalid Parameter Task hour: Invalid “Ensure that task hour GenerateRecurringInvoice,
Parameter parameter is numeric.” GenerateInvoice
51132 Invalid Parameter Task hour: Invalid “Ensure that task hour GenerateRecurringInvoice,
Parameter value does not exceed 4 GenerateInvoice
digits.”
51133 Missing Parameter Item name: Required “Ensure that item name GenerateRecurringInvoice,
parameter missing parameter is not blank.” GenerateInvoice
51134 Invalid Parameter Item name: Invalid “Ensure that only GenerateRecurringInvoice,
Parameter letters, space, GenerateInvoice
underscore and
hyphen are
provided for item name
parameter.”
51135 Invalid Parameter Item name: Invalid “Ensure that Item name Page
GenerateRecurringInvoice,
Parameter parameter does not GenerateInvoice
150
exceed 30 characters.”
51136 Missing Parameter Item description: “Ensure that item GenerateRecurringInvoice,
Required description parameter is GenerateInvoice
parameter not blank.”
missing
51137 Invalid Parameter Item description: Invalid “Ensure that Item GenerateRecurringInvoice,
Parameter description GenerateInvoice
parameter contains
only letters, numbers,
hyphen, dot,circular
brackets, space,
comma,
underscore, hash and
ampersand.”
51138 Invalid Parameter Item description: Invalid “Ensure that Item GenerateRecurringInvoice,
Parameter description GenerateInvoice
parameter does not
exceed 60
characters.”
51139 Missing Parameter Item Quantity: Required “Ensure that the GenerateRecurringInvoice,
parameter missing item quantity GenerateInvoice
parameter is not
blank.”
51140 Invalid Parameter Item Quantity: Invalid “Ensurethat the Item GenerateRecurringInvoice,
Parameter Quantity parameter GenerateInvoice
is numeric.”
51141 Invalid Parameter Item Quantity: Invalid “Ensure that the Item GenerateRecurringInvoice,
Parameter Quantity parameter does GenerateInvoice
not exceed 3 digits.”
51142 Missing Parameter Unit cost: Required “Ensure that unit cost of GenerateRecurringInvoice,
parameter missing item is not blank.” GenerateInvoice
51143 Invalid Parameter Unit cost: Invalid “Ensure that the Unit GenerateRecurringInvoice,
Parameter cost of item parameter GenerateInvoice
is a Decimal Number.”
51144 Invalid Parameter Terms and “Ensure that Only letters, GenerateRecurringInvoice,
Conditions: Invalid numbers, hyphen,dot, GenerateInvoice
Parameter circularbracketsand
ampersand are provided Page
for Terms and Condition 151
parameter.”
51145 Invalid Parameter Terms and “Ensure that Terms and GenerateRecurringInvoice,
Conditions: Invalid Conditions parameter GenerateInvoice
Parameter does not exceed 500
characters.”
51146 Invalid Parameter Due date: Invalid “Ensure that Due date GenerateRecurringInvoice,
Parameter parameter is Numeric.” GenerateInvoice
51147 Invalid Parameter Due date: Invalid “Ensure that Due date GenerateRecurringInvoice,
Parameter parameter does not GenerateInvoice
exceed 3 digits”
51148 Invalid Parameter Due Date: Invalid “Ensure that due date GenerateRecurringInvoice,
Parameter parameter is provided GenerateInvoice
when late payment fees is
present.”
51149 Invalid Parameter Late payment “Ensure that late GenerateRecurringInvoice,
fees: Invalid payment fees GenerateInvoice
Parameter parameter is provided
when due date is
present.”
51150 Invalid Parameter Discount_if_paid_within_du “Ensure that value for GenerateRecurringInvoice,
e_date: Invalid Parameter discount_if_paid_within_ GenerateInvoice
due_date parameter is
not greater than due
date.”
51151 Missing Parameter Discount Type: Required "Ensure that GenerateRecurringInvoice,
parameter missing discount type GenerateInvoice
parameter is
provided when
discount value is
present."
51152 Missing Parameter Discount value: Required "Ensure that GenerateRecurringInvoice,
parameter missing discount value GenerateInvoice
parameter is
provided when
discount type is
present."
51153 Missing Parameter Late payment fees type: "Ensure that late payment GenerateRecurringInvoice,
Required parameter fees type parameter is GenerateInvoice
missing provided when late
payment fees is present."
51154 Missing Parameter Late payment fees: "Ensure that late GenerateRecurringInvoice,
Required payment fees GenerateInvoice
parameter missing parameter is provided Page
when late payment 152
fees type is present."
51155 Invalid Parameter Discount value: Invalid "Ensure that GenerateRecurringInvoice,
Parameter Discount value GenerateInvoice
parameter
ranges are:
For percentage (1.00 -
99.99)
For flat (1.00-99999.99)"
51156 Invalid Parameter Late payment "Ensure that Late GenerateRecurringInvoice,
fees: Invalid payment fees GenerateInvoice
Parameter parameter ranges
are:
Page
153
For percentage (1.00 -
99.99)
For flat (1.00-99999.99)"
51157 Invalid Parameter Tax List:Invalid Parameter “Ensure that there are GenerateRecurringInvoice,
not more than two GenerateInvoice
taxes for one task.”
51158 Invalid Parameter Item/Task List: Invalid “Ensurethatat leastone GenerateRecurringInvoice,
Parameter task/item is added.” GenerateInvoice
51159 Invalid Parameter Task List: Invalid “Ensurethatthesame GenerateRecurringInvoice,
Parameter taskis not added GenerateInvoice
twice.”
51160 Invalid Parameter Item List: Invalid “Ensure that the same GenerateRecurringInvoice,
Parameter item is not added GenerateInvoice
twice.”
51161 Invalid Parameter Discount value: Invalid “Ensure that the GenerateRecurringInvoice,
Parameter Discount value GenerateInvoice
parameter is
Decimal.”
51162 Invalid Parameter Late payment “Ensure that Late GenerateRecurringInvoice,
fees: Invalid payment fees GenerateInvoice
Parameter parameter is
Decimal.”
51163 Invalid Parameter Discount type: Invalid “Ensure that values for GenerateRecurringInvoice,
Parameter Discount type GenerateInvoice
parameter are
Perc/Flat.”
51164 Invalid Parameter Late payment fees “Ensure that values for GenerateRecurringInvoice,
type: Invalid Late payment fees type GenerateInvoice
Parameter parameter are
Perc/Flat.”
51165 Invalid Parameter Discount if paidwithin “EnsurethatDiscount if GenerateRecurringInvoice,
due date: Invalid paidwithin due date GenerateInvoice
Page
Parameter parameter is Numeric.”
154
51166 Invalid Parameter Discount if paidwithin “Ensure that Discount if GenerateRecurringInvoice,
due date: Invalid paid within due date GenerateInvoice
Parameter parameter does not exceed
3 digits.”
51167 Invalid Parameter Tax List: Invalid Parameter “Ensure that the same GenerateRecurringInvoice,
tax is not added twice GenerateInvoice
for the same
task/item.”
51168 Invalid Parameter Tax List: Invalid Parameter "Ensure that there are not Generate Invoice
more
than two taxes
applicable for one item."
51169 Invalid Parameter Due Date: Invalid "Ensure that Due date Generate Recurring
Parameter cannot be greater than Invoice
valid for parameter."
51205 Invalid Parameter Order List: Invalid “Please provide at least Confirm, Cancel,
Parameter one order list.”
51206 Invalid Parameter Order List: Invalid “Ensure that Reference Confirm, Cancel,
Parameter Number parameter is
not repeated.”
51207 Invalid Parameter Start Date: Invalid “Ensure that Start date GenerateRecurringInvoic
Parameter is greater than or equal e
to current date.”
51208 Invalid Parameter Start Date: Invalid “Adding start date is only GenerateRecurringInvoic
Parameter applicable for recurring e
invoice.”
51209 Invalid Parameter Frequency: Invalid “Adding frequency is only GenerateRecurringInvoice,
Parameter applicable for recurring GenerateInvoice
invoice.”
51210 Invalid Parameters Invoice Setting: Invalid "Ensure that the Advance GenerateRecurringInvoice,
Parameter Settings option is GenerateInvoice
enabled under Invoice
Settings."
51211 Invalid Parameters Invoice Setting: Invalid "Ensure that SMS GenerateRecurringInvoice,
Parameter content is provided if GenerateInvoice
the same is enabled
under Invoice
Settings."
51212 Invalid Parameters Invoice Setting: Invalid "Ensure that the Adding GenerateRecurringInvoice,
Parameter Task option is enabled GenerateInvoice
under Invoice Settings."
51213 Invalid Parameters Invoice Setting: Invalid "Ensurethat the Adding Page
GenerateRecurringInvoice,
Parameter Itemoption is enabled GenerateInvoice
155
under Invoice Settings."
51214 Invalid Parameters Invoice Setting: Invalid "Ensure that the GenerateRecurringInvoice,
Parameter Changing Invoice GenerateInvoice
Validity option is
enabled under Invoice
Settings."
51215 Invalid Parameters Invoice Setting: Invalid "Ensure that Changing pre- GenerateRecurringInvoic
Parameter e,
populated values for GenerateInvoice
item: {e.g. abc} with unit
cost {e.g. 1.23} is enabled
under Invoice Settings."
51216 Invalid Parameters Invoice Setting: Invalid "Ensure that Changing GenerateRecurringInvoice
Parameter pre- populated values , GenerateInvoice
for task {e.g. def} with
unit rate {e.g. 1.00} is
enabled under Invoice
Settings."
51217 Invalid Parameters Invoice Setting: Invalid "Ensure that the GenerateRecurringInvoice
Parameter number of hours/rate , GenerateInvoice
amount for task is valid."
51218 Invalid Parameters Invoice Setting: Invalid "Ensure that unit cost GenerateRecurringInvoice
Parameter amount/quantity for , GenerateInvoice
item is valid."
51219 Invalid Parameters Invoice Setting: Invalid "Ensure that Quick GenerateRecurringInvoice
Parameter Invoice option is , GenerateInvoice
enabled under Invoice
Settings."
51226 Invalid Parameters SMS_Content: Invalid "Ensure that Basic GenerateRecurringInvoice
Parameter placeholders should , GenerateInvoice
not repeated in
SMS content."
51174 Missing Parameter Card expired "Ensure that Card Add customer payment
date: Required expired date option
parameter parameter is not
missing blank."
51175 Invalid Parameter Card expired "Ensure that Card Add customer payment
date: Invalid expired date option
Parameter parameter is in
MM/yyyy format."
51177 Missing Parameter Card Number: Required "Ensure that Pagepayment
Add customer
parameter missing Card Number option 156
parameter is
not blank."
51178 Invalid Parameter Card Number : Invalid "Ensure that Add customer payment
Parameter Card Number option
parameter is
Numeric only."
51179 Invalid Parameter Card Number: Invalid "Ensure that Add customer payment
Parameter Card Number option
parameter is
not invalid."
51180 Missing Parameter Card Name: Required "Ensure that Card Name Add customer payment
parameter missing parameter is not option
blank."
Page
157
51181 Invalid Parameter Card Name: Invalid "Ensure that Card Name Add customer payment
Parameter parameter is not invalid." option
51182 Invalid Parameter Name on card: Invalid "Ensure that only letters Add customer payment
Parameter and space are provided option
for name on card
parameter."
51183 Invalid Parameter Name on card: Invalid "Ensure that Name Add customer payment
Parameter on card parameter option
does not exceed 30
characters."
51227 Missing Parameters Issuer Bank: Required “Ensure that Issuer bank Add customer payment
parameter missing name is not blank.” option
51228 Invalid Parameters Issuer Bank: Invalid "Ensure that only letters Add customer payment
parameter and space are provided option
for issuer bank
parameter."
51229 Missing Parameters Pament Option Type: "Ensure that payment Add customer payment
Required parameter option type is not blank." option
missing
51230 Invalid Parameters Payment Option "Ensure that payment Add customer payment
Type: Invalid option type is option
parameter OPTCRDC/OPTDBCRD."
51231 Missing Parameters Name on card: Required "Ensure that nameon Add customer payment
parameter missing cardis not blank" option
51232 Missing Parameters Card type: Required "Ensure that name on card Add customer payment
parameter missing type is not blank" option
51233 Invalid Parameters Card type: Invalid "Ensure that name on Add customer payment
parameter card type is option
CRDC/DBCRD"
51301 Invalid Parameter Order List: Invalid "Order is already Confirm
Parameter confirmed”
51302 Invalid Parameter Order List: Invalid "Order is already Page
Cancel
Parameter Cancelled:” 158
51303 Invalid Parameter Order List: Invalid “Invalid order status:” Confirm, Cancel,
Parameter
51304 Invalid Parameter Order List: Invalid “Invalid order/tracking id Confirm, Cancel,
Parameter :”
51305 Invalid Parameter Order List: Invalid “Pending Risk Mitigation:” Confirm, Cancel,
Parameter
51306 Invalid Parameter Order List: Invalid “Order Amt Mismatch:” Confirm, Cancel,
Parameter
51307 Invalid Parameter Order List: Invalid “Pending risk mitigation.” Confirm, Cancel
Parameter
51308 Invalid Parameter Order List: Invalid “No record was found for Refund, Status,
Parameter the given criteria.” OrderLookUp,
51309 Invalid Parameter Reference “Ensure that merchant Refund
number: Invalid reference number
Parameter parameter is not repeated.”
51310 Invalid Parameter Reference “Refund not allowed.” Refund
number: Invalid
Parameter
51311 Invalid Parameter Reference “Multiple refunds are Refund
number: Invalid not allowed for the
Parameter gateway.”
51312 Invalid Parameter Reference "Cannotinitiaterefund Refund
number: Invalid request for the given
Parameter order."
51313 Invalid Parameter Order List: Invalid “No records found.” Order Status,
Parameter OrderLookUp,
51314 Invalid Parameter Reference “Refund limit exceeds.” Refund
number: Invalid
Parameter
51315 Invalid Parameter Reference “This is a disputed order. Refund,
number: Invalid You can refund only up to
Parameter {Currency}{Refund amount
Page
limit}.”
159
51316 Invalid Parameter Reference “Ensure that Reg Id or UpdateBillingDetails,
number: Invalid Reference No parameters
Parameter are not invalid.”
51317 Invalid Parameter Reference number: “Record already updated or UpdateBillingDetails
Invalid Invalid
Parameter Order Status.”
51318 Invalid Parameter Reference “Ensure that Order Status UpdateBillingDetails
number: Invalid OR Order Type
Parameter parameters are not
invalid.”
51319 Invalid Parameter bill_id: Invalid Parameter “Ensurethatbill_id UpdateInvoiceReference
parameterisnot invalid.” Number
51320 Invalid Parameter Bill Merchant Reference “Bill Merchant UpdateInvoiceReference
No: Invalid Parameter Reference No Number
parameter
already exists.”
51321 Invalid Parameter Reg ID: Invalid Parameter “Ensure that Reg ID UpdateMerchantParams
parameter is not invalid.”
51322 Invalid Parameter Reference "Ensure that UpdateMerchantParams
number: Invalid reference number
Parameter parameter is not
invalid."
51323 Invalid Parameter Tax List: Invalid "Ensure that Tax is GenerateInvoice
Parameter configured for the ,GenerateRecurringI
merchant." nvoice
51324 Invalid Parameter Tax List: Invalid “Ensure that Tax value GenerateInvoice
Parameter matches with the given ,GenerateRecurringI
Tax name.” nvoice
51325 Missing Parameter Customer id: Required “Ensure that Customer DeleteCustomer,
parameter missing parameter is present.”
51326 Invalid Parameter Currency: Invalid "Ensure that Currency is GenerateInvoice,
Parameter assigned to the GenerateRecurringInvoice,
merchant." GenerateQuickInvoice
51327 Invalid Parameter Customer id: Invalid "Ensure that the OrderLookup, Delete
Parameter merchantis not Customer
invalid."
51328 Invalid Parameter Reference "Multiple refunds not Page
RefundOrder
number: Invalid allowed." 160
Parameter
51336 Invalid Parameter Customer Card "Card Not Present." DeleteCustomer
Id: Invalid paymentoption
Parameter
51337 Invalid Parameters Customer Id:Invalid “Card Alreday Exists” Add Customer payment
parameters option