AnsweredAssumed Answered

Cnp API Batch Capture

Question asked by munshad on Oct 18, 2018

Hi 

 

I'm trying to test a sample Cnp API 'Batch capture request' in pre-live enviornment. :  https://payments.vantivprelive.com/vap/communicator/online, but I get an error back. 

 

Even tried using the format given in the cnpAPI reference guide. Could you please help? 
PFB, the request and response : 

 

Request

<cnpRequest version="12.4" xmlns="http://www.vantivcnp.com/schema" id="123" numBatchRequests="1">
<authentication>
<user>chicos</user>
<password>F3Mn7dsX</password>
</authentication>
<batchRequest id="01234567" numCaptures="2" captureAmount="55814" merchantId="4445002042861">
<capture id="2" reportGroup="ABC Division" customerId="038945" partial="true">
<cnpTxnId>13254123434</cnpTxnId>
<amount>55814</amount>
</capture>
<capture id="3" reportGroup="ABC Division" customerId="038945" partial="true">
<cnpTxnId>13254123434</cnpTxnId>
<amount>55814</amount>
</capture>
</batchRequest>
</cnpRequest>

 

 

Response
Error, the request contained an undetectable format <<cnpRequest version="12.4" xmlns="http://www.vantivcnp.com/schema" id="123" numBatchRequests="1">
<authentication>
<user>chicos</user>
<password>F3Mn7dsX</password>
</authentication>
<batchRequest id="01234567" numCaptures="2" captureAmount="55814" merchantId="4445002042861">
<capture id="2" reportGroup="ABC Division" customerId="038945" partial="true">
<cnpTxnId>13254123434</cnpTxnId>
<amount>55814</amount>
</capture>
<capture id="3" reportGroup="ABC Division" customerId="038945" partial="true">
<cnpTxnId>13254123434</cnpTxnId>
<amount>55814</amount>
</capture>
</batchRequest>
</cnpRequest>>.

Outcomes