Hdfc API Doc v1.3 (5)
Hdfc API Doc v1.3 (5)
Statement of Confidentiality
This document contains information that is proprietary and confidential to Avenues India Private Limited which shall
not be disclosed,transmitted,or duplicated,used in whole or in part for any purpose other than its intended purpose.
Any use or disclosure in wholeorinpartofthis information without express written permission of Avenues India Private
Ltd is prohibited. Any other company and product names mention edareused for identification purposes only,and may
be trademarks of the irrespective owners.
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 and JSON 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 IPaddress 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
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 orderhasbeen auto-cancelled by thesystem, 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 debitcard or netbanking account that was originally charged. Anorder 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(Kindly pass version as 1.2) – 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 customerof the merchant.
10. GetCustomer PaymentOption(Kindly pass version as 1.2) – The Customer payment option
APIcall is used to list payment options saved for a customer. Payments options are saved for a
customer in thevaultforeasy and convenientpayment.
11. GenerateInvoice(Kindly pass version as 1.2) - The Invoice API call is used to generate
aninvoice for acustomer. Valuescan be passed as forgeneratinginvoice using the flexibility of
Invoice Settings.
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 andtasksareusedto createaregularInvoiceorarecurringinvoice.
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 Invoicereference Number APIcall is usedto
update Invoicereferencenumberifthesamewasnotprovidedatthetimeofinvoicegeneration.
17. Update Merchant Param - Update Merchant params API is used to add some extra
parameter against Merchantparams if the same couldnot be doneatthe timeofthetransaction.
18. Update Billing Details - Update billing details API call is used to update customer billing
information against anorder.
19. PayId Details – (Kindly pass version as 1.4) - PayId Details API call is used to list
transactions for a given PayId.
20. 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.
21. getRefundDetails – The getRefundDetails API call can be used to fetch refund information ofthe
particular transaction.
22. getSettlementDetails– The getSettlementDetails call is use to get the Settlement details such
payid ,UtrNo and settlement date.
23. ConsolidatePayout Summary - (Kindly pass version as DEF) ConsolidatePayout Summary API call is
used to list payouts summary for a merchant for a given settlement date.
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 usedfor real-time transaction. Encryption key is
mapped to Accesscode as mentioned in API Authentication section.
Name Description
access_code(required) This is the accesscode foryour application.You must send this with each
request.
command(required) This is thecommandtoaccess the APICalls. You must send this with each
request.
response_type(optional) APIreturns XML and JSON responses. If left blank, the response will be in
the same format as request.
version(required) This is the version to access API based onversion 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
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-
timetransactions.
Name Description
status This states whether the call was successful or not. If value of this
parameter is“1”then you need not decrypt the enc_responseas it
willcontain 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:
Confirm API call allows youto confirm a pending order. Only confirmed orders are settled into the
merchant’s account. An order older than 5 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 anorder.
Remember, you can doso only once. Remaining funds will be refunded to the credit card or debit card
or net banking account that was originally charged.
Request Parameters
request_type API requests are accepted in XML or JSON Possible value for request_type is
(required) format. Specify the request type. “XML” or “JSON”.
response_type API returns responses in XML or JSON Possible value for response_type
(optional) format. If leftblank,the response will be is“XML” or “JSON”.
in the same format as request.
Command Command value specifies the API Possible value for this API call is
(required) calls.Youmust send this with each “confirmOrder”.
request.
reference_no Unique CCAvenue reference number for Numeric(25)
(required) the transaction.
{
"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.
Response Parameters
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.
Note: You will have to decrypt the above response from “enc_response” parameter. Kindly refer to the
decryption section.
2. Cancel
Cancel API call allows you to cancel a pending order.An order older than 12 days is automatically
cancelled. Onceanorderhasbeencancelled/auto-cancelledbythesystem, it cannotbeconfirmed. Fundswillbe
refundedtothecreditcardordebitcardornetbankingaccount thatwas originally charged.
Request Parameters
request_type APIrequests are accepted inXML or JSON. Possible value for request_type is
(required) Specify the request type. “XML” or “JSON”.
Command Command value specifies the APIcalls.You Possible value for this API call is
(required) must send this with each request. “cancelOrder”
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": [
{"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.
Response Parameters
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.Fundswillberefundedtothe creditcardordebitcardornetbankingaccountthatwas originally
charged.
Request Parameters
request_type APIrequests are accepted inXML or JSON. Possible value for request_type is
(required) Specify the request type. “XML” or “JSON”.
command (required) Uniquenamewhichspecifies the APICall. You Possible value for command to this
must send this with each request. API call is “refundOrder”.
reference_no Unique CCAvenuereference number for the Numeric(25)
(required) transaction.
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.
Response Parameters
enc_response AESencryptedresponsecontainingformat as
per response_type
Success Response:
Failure Response:
Note: You will have to decrypt the above response from “enc_response” parameter. Kindly refer to the
decryption section.
{
"reason":"",
"error_code":"",
"refund_status":0
}
Failure Response:
{
"reason":"Referencenumber:InvalidParameter",
"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.
4. Status
The Status APIcall can be used to ascertainthestatus of a transaction/order. You can usethis call if you havenot
receivedstatus/informationforatransactionrequest.Itcanalsobeusedasanadditional security measure to
reconfirm the parameters posted back.
Request Parameters
response_type API returns responses in XML or JSON format. Possible value for response_type is
(optional) Ifleftblank,the responsewill be inthe “XML” or “JSON”.
same format as request.
command (required) Command value specifies the API calls.You Value is “orderStatusTracker”.
must send this with each request.
order_no (conditional) This is the merchant reference number for the AlphaNumeric with special
transaction. characters (hyphen and
underscore)(30).
Order number isrequired if youdonot share
reference_no.
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": "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 Thisstateswhetherthecallwassuccessfulor not. Value “0” denotes thatthe API
Ifvalue ofthisparameter is“1”thenyou need call wassuccessful.
not decrypt the enc_response as it will Value“1” denotes APIcallfailure. On
contain plain errormessage. enc_response is plain text
representstheerrormessage.
enc_response AESencryptedresponsecontainingformat as
per response_type
order_bill_address Order billing address details for the order. Possible value for address is
Alphanumeric with special
characters (space, hyphen,
comma, ampersand(&), hash(#),
circular brackets and dot)(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 EmailAddress ofthe 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_zip Order billing address’s pincode for the order. Possible value for zip is
Alphanumeric with special
characters (hyphen and space)
(15).
order_ship_address Shipping Address for the order. Possible value for address is
Alphanumeric with special
characters (space, hyphen,
comma, ampersand(&), hash(#),
circular brackets 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_email Shipping email ID for the notifications of Possible value for email id is
the transaction. Alphanumeric with special
characters (hyphen, underscore,
dot, @)(70).
order_ship_name Shipping Name ofthe Customer for theorder. Possible value for name is
Alphanumeric with special
characters (space, hyphen,
apostrophe,underscore, dot)(60).
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,theamountisdifferentat
bank’sendandatCCAvenuedue to
tampering)
order_card_name Specify the card name for the transaction. Possible value for card name is
VISA","MASTERCARD","AMEX","J
CB","DINERS CLUB".
Success Response:
Failure Response:
Success Response:
{
"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 Railwaystation 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 no1101, near RailwaystationAmbad",
"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-1615: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", "
Merchant_param1":"Mobile No9595226054", "
Merchant_param2":"Flight from Dehli", "
Merchant_param3":"ToMumbai", "
Merchant_param4":"Mobile No9595226054", "
Merchant_param5":"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.
5. Order Lookup
The Lookup APIcall canbe used toextracttransaction details for a certainsetoftransactions. The functionality
works similar to a search feature.
Request Parameters
request_type API requests are accepted inXML or JSON. Possible valuefor request_type is
(required) Specify the request type. “XML” or “JSON”.
Command Command valuespecifies the API calls.You Possible value for this API call is
(required) must send this with each request. “orderLookup”.
order_no Unique merchant order no for the transaction. AlphaNumeric with special
(optional) characters(hyphen and
underscore)(60).
1) OT-INV denotes“Invoice”
2) OT-ORD denotes“Orders”
3) OT-ORDSCdenotes“Shopping
Cart Orders”
4) OT-PPAY denotes” Phone Pay”
5) OT-SNIP denotes“SNIPorders”
Note: You will have to encrypt the above request and store in the “enc_request” parameter before sending
it to CCAvenue. Kindly referto 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
}
Note: You will have to encrypt the above request and store in the “enc_request” parameter before sending
it to CCAvenue. Kindly referto the encryption section.
Response Parameters
enc_response AESencryptedresponsecontainingformat as
per response_type
order_bill_address Order billing address details for the order. Possible value for address is
Alphanumeric with special
characters (space, hyphen,
comma, ampersand(&), hash(#),
circularbracketsanddot)(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_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_device_type This is the type of device using which the Possiblevalue fordevicetypeis
transaction was processed. IVRS/MOB/PC.
order_ship_address Shipping Address for the order. Possible value for address is
Alphanumeric with special
characters (space, hyphen,
comma, ampersand(&), hash(#),
circularbracketsanddot)(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 ShippingemailID for the notifications of the Possible value for email id is
transaction. Alphanumeric with special
characters (hyphen, underscore,
dot,@)(70).
order_ship_name Shipping Name ofthe Customer for theorder. Possible value for name is
Alphanumeric with special
characters (space, hyphen,
apostrophe, underscore,
dot)(60).
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 AmountofTDS(taxdeductedatsource)for Decimal(13,4).
the Transaction.
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"
order_amt="1.0"
order_bank_response="Invalid Credentials"
order_bill_address="Room no1101,nearRailwaystationAmbad"
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="Roomno1101,nearRailwaystationAmbad"
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:
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 Railwaystation 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 no1101, near RailwaystationAmbad",
"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,
"order_gtw_id":"SBI",
"order_bank_response":"Invalid Credentials",
"order_option_type":"OPTCRDC",
"order_device_type":"PC"
Merchant_param1":"Mobile No9595226054", "
Merchant_param2":"Flight from Dehli", "
Merchant_param3":"ToMumbai", "
Merchant_param4":"Mobile No9595226054", "
Merchant_param5":"Mobile No9595226054",
}],
"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.
6. Pending Orders
PendingAPI callallows you to find the listofpending orders.Only confirmed orders aresettled into the
merchant’saccount. An orderolderthan12days isautomaticallycanceled. Once an orderhas been auto-
canceled by the system, it cannot be confirmed.
You can optionally confirm only part of an order. Remember, you cando so only once. Remaining funds willbe
refundedtothecreditcardordebitcardornetbankingaccountthatwasoriginallycharged.
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 thiswitheach
request.
request_type API requests are accepted in XML, JSON. Possible valuefor request_type is
(required) Specify the request type. “XML” or “JSON”.
Command Command value specifies the API calls.You Possible value for this API call is
(required) must send this with each request. “getPendingOrders”.
order_no Unique Merchant order number for the AlphaNumeric with special
(optional) pendingorderofthe transaction. characters(hyphen and
underscore)(30).
1) OT-INV denotes“Invoice”
2) OT-ORD denotes“Orders”
3) OT-ORDSCdenotes“Shopping
Cart Orders”
4) OT-PPAY denotes” Phone Pay”
5) OT-SNIP denotes“SNIPorders”
Note: You will have to encrypt the above request and store in the “enc_request” parameter before sending
it to CCAvenue. Kindly referto 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 referto the encryption section.
Response Parameters
enc_response AESencryptedresponsecontainingformat as
per response_type
order_bill_address Order billing address details for the order. Possible value for address is
Alphanumeric with special
characters (space, hyphen,
comma, ampersand(&), hash(#),
circularbracketsanddot)(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_state Order billing state for the order. Alphanumeric with special
characters (hyphen, dot
and
space)(30).
order_device_type This is the type of device using which the Possiblevalue fordevicetypeis
transaction was processed. IVRS/MOB/PC.
order_ship_address Shipping Address for the order. Possible value for address is
Alphanumeric with special
characters (space, hyphen,
comma, ampersand(&), hash(#),
circularbracketsanddot)(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 email IDfor the notifications of the Possible value for email id is
transaction. Alphanumeric with special
characters (hyphen, underscore,
dot, @)(70).
order_ship_zip Order shipping address' pin code for the order. Possible value for zip is
AlphaNumeric with special
characters(hyphen and space)
(15).
order_status Status of the order. It canbesingle or String
multiple. Possible values are:
Aborted (transaction is
cancelled by the User)
Auto-Cancelled (transaction has
not confirmed within 12 days
henceautocancelled bysystem)
Auto-Reversed (two identical
transactions for same order
number, both weresuccessful
at bank'sendbutwegot
response foronlyoneofthem,
thennext day during
reconciliation we markoneof
thetransactionas auto
reversed)
Awaited (transaction is
processedfrombilling
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,theamountisdifferent
at bank’sendandatCCAvenue
due to tampering)
Initiated (transaction just
arrived onbilling shippingpage
and not processed further )
Refunded (Transaction is
refunded.)
Shipped (transaction is
confirmed)
Successful
Systemrefund(Refundedby
CCAvenueforvariousfindingsof
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 AmountofTDS(taxdeductedatsource)for Decimal(13,4).
the Transaction.
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 no1101,nearRailwaystationAmbad"
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"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 beshipped"
order_risk_mitigation="Y"
order_ship_address="room no.701nearbusstand"
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.
Note: You will have to decrypt the above response from “enc_response” parameter. Kindly refer to the
decryption section.
7. Delete Customer
The Delete Customer API call is used to delete the customer and all saved payment options for the customer.
Request Parameters
request_type API requests are accepted in XML or Possible value for request_type is
(required) JSON. Specify the request type. “XML” or “JSON”.
Command Command valuespecifies the APIcalls.You Possible value for this API call is
(required) must send this with each request. “deleteCustomer”.
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.
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”>
<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.
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
response_type API returns responses in XML or JSON format. Possible value for response_type is
(optional) Ifleftblank,the responsewill be inthe “XML” or “JSON”.
same format as request.
Command Command value specifies the API calls. You must Possible value for this APIcall is
(required) send this with each request. “deleteCustomerPaymentOption
”.
customer_id (required) Unique Customer ID for the transaction. Numeric(25).
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.
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:
Failure:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Delete_Customer_Payment_Option_Result
customer_card_id="22" customer_id="123"
error_desc="CustomerCardId: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.
The Add Customer Payment Option API call is used to add another payment option for the customer of the
merchant.
Request Parameters
access_code UniqueCCAvenueaccesscode
(required) which is generated when
merchant registered their IP
address. Youmustsendthiswith
each 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.
Example JSON Request
{
"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
Status Delete Status value specifies whether Possible values for this is
customer payment option is going to be 0 - Deletionsuccessful.
deleted successfully or not. 1 - Could not be deleted.
customer_card_no_last Last four digitofcardno for thetransaction. Numeric(4)
4digits
Will contain values only for Credit
Card and Debit card.
OPTCRD-credit card
OPTDBCRD-debit card
Success:
Failure:
<customer_card_name>Visa</customer_card_name>
<customer_card_no_last4digits>2346</customer_card_no_last4digits>
<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 CardId:InvalidParameter",
"error_code":"51337",
"status":1
}
Note: You will have to decrypt the above response from “enc_response” parameter. Kindly refer to the
decryption section.
The Customer payment option APIcall is usedtolist paymentoptionsaved for acustomer. Payments options are
saved for acustomer invault for easy and convenientpayment.
Request Parameters
Name Description Note
enc_request AES encrypted request data.
(required)
Command Command value specifies the APIcalls.You Possible value for this API call is
(required) must send this with each request. “getCustomerPaymentOptions”
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.
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.
11. Generate Invoice
Request Parameters
response_type API returns responses in XML or JSON Possible value for response_type is
(optional) format. If left blank, the “XML” or “JSON”.
responsewillbeinthesameformat
as request.
command Command value specifies the API calls. Possible value for this API call is
(required) Youmustsendthiswitheachrequest. “generateInvoice”.
customer_name (required) Name of the customer receiving the Alphanumeric with special characters
Invoice. (space, hyphen,
apostrophe, underscore, dot)(60).
Late_payment_feesisrequiredif
merchant provide
late_payment_fees_type.
Late_payment_fees typeisrequiredif
merchantprovidelate_payment_fees.
Item_List:
tax_List Tax associated with the Item Tax type array. Refer to Tax_list
section for structure.
Task_List:
tax_List Tax associated with the task. Tax type array. Refer to Tax_list
section for structure.
Tax_List:
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 payyourLegalEntity_Namebill#Invoice_IDfor 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.
Note: Generate Invoice with advance setting
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>
</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>
<merchant_reference_no>123456987</merchant_reference_no>
<merchant_reference_no1>1234f56987</merchant_reference_no1>
<merchant_reference_no2>12345s6987</merchant_reference_no2>
<sub_acc_id>sub1</sub_acc_id>
<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.
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"
}
2.Failure
{
"error_desc":"Emailid:Invalid Parameter",
"invoice_id":"",
"tiny_url":"",
"qr_code":"",
"invoice_status":1,
"error_code":"51012",
"merchant_reference_no":""
}
12. Generate Recurring Invoice
Recurring invoice call is used to generate recurring invoice for a customer of a merchant.
Request Parameters
request_type API requests are accepted inXML or JSON Possible value for request_type is
(required) . Specify the request type. “XML” or “JSON”.
Command Command valuespecifies the API calls.You Possible value for this API call is
(required) must send this with each request. “generateRecurringInvoice”
customer_email_id Email ID on which the Invoice will be sent Alphanumeric with special characters
(required) (hyphen, underscore,
dot,@)(70).
customer_email_subject Subject of the email containing the Invoice Alphanumeric with special
(required) characters(hyphens,dot,spaceand
underscores)(100).
Frequency Frequency for generating the occurrences Possible values for frequency are
(conditional) Daily/Monthly/Quarterly/ Yearly.
Frequency is required if merchant provide
Start_date.
task_List Tasks associated with the Invoice Task type array.Refer toTask_list
(conditional) section for structure.
Provide at least one Taskif merchant does not
provide any Item.
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": "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":"STGTax","amount":"7.0"},
{"name": "Rent Tax","amount": "8.0"}
]
}],
"merchant_reference_no": "123456987",
"terms_and_conditions": "terms and condition",
"sms_content":"PlspayyourLegalEntity_Namebill#Invoice_IDforInvoice_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.
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>
<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>
<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":"STGTax","amount":"7.0"},
{"name": "Rent Tax","amount": "8.0"}
],
}],
"merchant_reference_no": "123456987",
"terms_and_conditions": "terms and condition",
"due_date": "1",
"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 payyourLegalEntity_Namebill#Invoice_IDfor 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.
Request Parameters
command (required) This is the command to access the API“generateQuickInvoice” for generate
Calls. You must send this with eachQuick invoice.
request.
valid_type The unit of duration represented by Possible values for valid type is
(required) valid_for minutes/hours/days/month/year
Files Attachments to be sent with the File type array describedin below
(optional) quick invoice. Applicable only ifbill table.
delivery type is EMAIL/BOTH.
Files:-
Content Attachment file content must be in byte array String(Attachment file size up to
(required) format decoded with decodeBase64 MOB)
algorithm.
XML Request:
</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-2121212121topayyour LegalEntity_Namebill# Invoice_ID for
Invoice_CurrencyInvoice_AmountorpayonlineatPay_Link.",
"files": [{
"name": "Test.doc",
"content": "77u/SGVsbG8gaW5kaWEK"
}]
}
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"
2.Failure
{
"error_desc":"Emailid:Invalid Parameter",
"invoice_id":"",
"tiny_url":"",
"qr_code":"",
"invoice_status":1,
"error_code":"51012",
"merchant_reference_no":""
}
Item list API call allows you to find all task and item list which is configured for the merchant.
Request Parameters
ForInvoiceItems,endrequestdataisnotrequired.Merchanthastosendthecommand,Accesscode,
request_type and response_type parameters only.
Command Command value specifies the API calls.You Possible value for this API call is
(required) must send this with each request. “getInvoiceItems”.
Request example: access_code=xxxxxxxxxxxxx&command=getInvoiceItems&request_type=xml&response_type=xml
Response Parameters
item_List List ofall item/taskwhichisconfigured for Item List type array. Refer to
the merchant Item_Listsectionforstructure
Item List:
name Unique name of the Item/task for the Alphanumeric with special
generateinvoicewhichisassignedagainstthe characters (space, hyphen,
merchant id. apostrophe, underscore, dot)(60).
type Specify the item type provided. Possible values for item type are
ITEM/TASK.
104
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”
}
105
Note: You will have to decrypt the above response from “enc_response” parameter. Kindly refer to the decryption
section.
Invoice lookup API call is used to find the list of all invoices.
Request Parameters
Command Command valuespecifies theAPI calls.You Possible value for this API call is
(required) must send this with each request. “invoiceList”.
106
from_date Mandatory along with to_date if no other Datemustbedd-mm-yyyyformat.
(conditional) criteria mentioned
email_id Customer email id for the generate invoice. Alphanumeric with special characters
(optional) (hyphen, underscore,
dot, @)(70).
invoice_type Provide only possible value of the invoice type. Thepossiblevalues for invoice type
(optional) is quick/invoice/recurring
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.
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.
108
Response Parameters
enc_response AESencryptedresponsecontainingformat as
per response_type
order_bill_address Order billing address details for the order. Possible value for address is
Alphanumeric with special
characters (space, hyphen,
comma, ampersand(&), hash(#),
circularbracketsanddot)(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_state Order billing state for the order. Alphanumeric with special
characters (hyphen, dot and
space)(30).
order_device_type This is the type of device using which the Possiblevaluefor devicetypeis
transaction was processed. IVRS/MOB/PC.
order_ship_address Shipping Address for the order. Possible value for address is
Alphanumeric with special
characters (space, hyphen,
comma, ampersand(&), hash(#),
circularbracketsanddot)(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_zip Order shipping address' pin code for the order. Possible value for zip is
AlphaNumeric with special
characters(hyphen and space)
(15).
order_status Status ofthe order. Itcan besingle ormultiple. 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
responseforonly oneofthem,
then next day during
reconciliation we mark one of
thetransaction as autoreversed
)
Awaited (transaction is
processedfrombillingshipping
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(weupdatethisduring
recon,theamountisdifferent at
bank’sendandatCCAvenue due
totampering)
Initiated (transaction just
arrived onbilling shippingpage
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.
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"
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_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
}
Note: You will have to decrypt the above response from “enc_response” parameter. Kindly refer to the decryption
section.
Update Invoicereference Number API call is usedto update Invoice reference number ifthesame was not
provided at the time of invoice generation.
Request Parameters:
Command Command valuespecifies the API calls.You Possible value for this API call is
(required) must send this with each request. “updateBillMerchantReferenceNo”
bill_id Unique CCAvenue Bill id(invoice id) for the Numeric value(25)
(required) generated invoice.
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:
{
"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.
Response Parameters
enc_response AESencryptedresponsecontainingformat as
per response_type
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:
}
Note: You will have to decrypt the above response from “enc_response” parameter. Kindly refer to the decryption
section.
Update Merchantparams API is usedto addsome extraparameteragainst Reference noifthesame could not be
done at the time of the transaction.
Request Parameters:
command Command value specifies the API Calls. You Possible value for this API call is
(required) must send this with each request. “updateMerchantParams”
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.
Response Parameters
enc_response AESencryptedresponsecontainingformat as
per response_type
error_desc Failure reasonif APIcalldoes not update/add Please refer below table for failure
param value. message.
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”/>
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":"Referencenumber: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.
Update billing details API call is used to update customer billing information against an order.
Request Parameters:
response_type API returns XML or JSON responses. If left Possible value for
(optional) blank,the responsewill beinthesame response_type is “XML” or
format as request. “JSON”.
command Command value specifies the API Calls. You Possible valueforthisAPIcall
(required) must send this with each request. is “updateBillingDetails”
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.
Response Parameters
enc_response AESencryptedresponsecontainingformat as
per response_type
update_status Update_status denotes whether Billing “0” means update billing details was
informationhavebeenupdatedsuccessfully 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”/>
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":"Referencenumber:InvalidParameter",
"update_status":1,
} "error_code":"51316"
Note: You will have to decrypt the above response from “enc_response” parameter. Kindly refer to the
decryption section.
PayId Details API call is used to list transactions for a given PayId.
Request Parameters
request_type API requests are accepted in XML or JSON. Possible value for request_type is
(required) Specify the request type. “XML” or “JSON”
response_type API returns responses in XML or JSON format. Possible value for response_type is
(optional) If left blank, the response will be in thesame “XML” or “JSON”
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. “payIdDetails”.
pay_id (required) Provide the settlement Date to find the Numeric(25).
payouts list.
page_number (required) A limited number of records are shared as part Numeric(4).
of the response. The total records & number
of pages are shared as part of the response to
enable subsequent calls.
no_of_records(required) Number of records which are available in Numeric.
pages.
<pay_id_details_query>
<pay_id>XXXXX</pay_id>
<page_number>1</page_number>
<no_of_records>300</ no_of_records >
</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
‘no_of_records’:300
}
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).
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" amt_payable="35.88" bank_ref_no="14525144XX217"[email protected]
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:
<error_code>51419</error_code>
<error_desc>Enc_request: No record found for given criteria.</error_desc>
<pay_id>XXXXX</pay_id>
<page_count>0</page_count>
<total_records>0</total_records>
</pay_id_details_Result>
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","txn_type":"Chargeback",
"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.
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 or JSON. Possible value for request_type is
(required) Specify the request type. “XML” or “JSON”
response_type API returns responses in XML or JSON format. Possible value for response_type
(optional) If left blank, the response will be in thesame is “XML” or “JSON”
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
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"
pay_Id="40907"
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>
</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,
"trans_currency":"INR",
"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
44EA2515401C2CD753DBA91BD0E7DFE7341BE1E7B7550&access_code=8JXENNSSBEZCU8KQ&command
= getRefundDetails&request_type=XML&response_type=XML&version=1.1
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.
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",
"refund_issue_date":"2014-09-12 15:11:13.99",
"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":""
}
Note: You will have to decrypt the above response from “enc_response” parameter. Kindly refer to the
decryption section.
Failure Response:
XML Response:
JSON 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"
}
22. getSettlementDetails :- – The getSettlementDetails call is use to get the Settlement details such payid
,UtrNo and settlement date. It works on XML and JSON request format only and version 1.2
Sample request
enc_request=63957FB55DD6E7B968A7588763E08B240878046EF2F520C44BBC63FB9CCE726209A4734877
F5904445591304ABB2F5E58B951E39EAFB9A24584B00590ADB077ADE5E8C444EAC5A250B1EA96F68D22E
44EA2515401C2CD753DBA91BD0E7DFE7341BE1E7B7550&access_code=8JXENNSSBEZCU8KQ&command=
getSettlementDetails &request_type=XML&response_type=XML&version=1.2
Request Parameter
{"Settlement_Details_Result":
{"settlement_details_list":
"settlement_details":
{"settlement_date":"2020-03-31","utr_no":"CMS1450654388","pay_Id":485807528}},
"error_desc":"",
"error_code":""}}
ConsolidatePayouts 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 or JSON Possible value for request_type is
(required) . Specify the request type. “XML” or “JSON”
response_type API returns responses in XML or JSON Possible value for response_type
(optional) format. If left blank, the response will be inthe is “XML” or “JSON”
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. “consolidatepayoutSummary”.
settlement_date Provide the settlement Date to find the Date must be in IST(dd-mm-yyyy
(required) payouts list. )format.
<Consolidatepayout_summary_query>
<settlement_date>01-02-2019</settlement_date>
</Consolidatepayout_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
Success:
<ConsolidatePayout_Summary_Result>
<error_code></error_code>
<error_desc></error_desc>
<Consolidatepayout_summary_list>
<Consolidatepayout_summary_details
account_no=”784857445”
ifsc_code=”HDFC000060”
pay_amount="211.76"
pay_Id="40907"
settlement_date="19-01-2016"
settlement_bank="KARUR VYSYA BANK"
sub_acc_id=” ”
settlement_currency="INR" sub_acc_Id="split-1"
trans_currency="INR"
utr_no="1234567890” />
<Consolidatepayout_summary_details
account_no=”784857445”
ifsc_code=”HDFC000060”
pay_amount="211.76"
pay_Id="0"
settlement_date="19-01-2016"
settlement_bank="KARUR VYSYA BANK"
sub_acc_id=””
settlement_currency="INR" sub_acc_Id="split-1"
trans_currency="INR"
utr_no="1234567890” />
</Consolidatepayout_summary_list>
</ConsolidatePayout_Summary_Result>
Failure:
<ConsolidatePayout_Summary_Result>
<error_code>51419</error_code>
<error_desc>Enc_request: No record found for given criteria.
</error_desc>
</ConsolidatePayout_Summary_Result>
Note: You will have to decrypt the above response from “enc_response” parameter. Kindly refer
to the decryption section.
Success:
{
"ConsolidatePayout_Summary_Result":{
"error_code":"",
"error_desc":"",
"Consolidatepauyout_summary_list":{
"Consolidatepauyout_summary_details":[{
“account_no”:”784857445”,
“ifsc_code”:”HDFC000060”,
"settlement_bank":"KARUR VYSYA BANK",
"pay_amount":211.76,
"trans_currency":"INR",
"pay_Id":40907,
"sub_acc_Id":"split-
1","settlement_date":"19-01-2016",
"settlement_currency":"INR",
“utr_no”:"”
}],
"Consolidatepauyout_summary_details":[{
“account_no”=”784857445”,
“ifsc_code”:”HDFC000060”,
"settlement_bank":"KARUR VYSYA BANK",
"pay_amount":211.76,
"trans_currency":"INR",
"pay_Id":”0”,
"sub_acc_Id":"split-1",
"settlement_date":"19-01-2016",
"settlement_currency":"INR",
“utr_no”:"”
Failure:
{
"ConsolidatePayout_Summary_Result":{
"error_code":52014,
Note: You will have to decrypt the above response from “enc_response” parameter. Kindly
refer to the decryption section.
25. ConsolidateSettlementDetails
ConsolidateSettlementDetails API call is used to list Settelement Details for a merchant for a given Order
Number And Reference Number.
Request Parameters
request_type API requests are accepted in XML or JSON Possible value for request_type is
(required) . Specify the request type. “XML” or “JSON”
response_type API returns responses in XML or JSON Possible value for response_type
Command Command value specifies the API calls. You Possible value for this API call is
(required) must send this with each request. “ConsolidateSettlementDetail
xml request-
<?xml version='1.0' ?><ConsolidateSettlementDetails_Query> order_no='53889594'
reference_no='53889594' ></ConsolidateSettlementDetails_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
{
'Order Number': '53889594'
'Reference Number': ' 53889594’
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:
<ConsolidateSettlement_Details_Result>
<error_code>51419</error_code>
</error_desc>
</ConsolidateSettlement_Details_Result>
Note: You will have to decrypt the above response from “enc_response” parameter. Kindly refer
to the decryption section.
Success:
{
"ConsolidateSettlement_Details_Result":{
"error_code":"",
"error_desc":"",
"Consolidatesettlement_details_list":{
"Consolidatesettlement_details":[{
"pay_Id":40907,
"settlement_date":"19-01-2016",
“utr_no”=" ”
}],
"Consolidatesettlement_details":[{
"pay_Id":0, "settlement_date":"19-
01-2016",
“utr_no”=" ”
Failure:
{
"ConsolidateSettlement_Details_Result":{
"error_code":51002,
Note: You will have to decrypt the above response from “enc_response” parameter. Kindly
refer to the decryption section.
Note: - Error Message when API status is “1”.