Requests and Responses
After you have completed the necessary tests you can begin using the API.
Using FTP
Submit an Account Updater request
Receive an acknowledgement response from us
- If the response indicates any errors, you must resolve them and re-submit a new request
Visa and MasterCard send a file to us containing the requested information
We send a completion response
Retrieve your files using FTP
Batch requests
The first step of the process is submitting an Account Updater batch request.
Request XML structure
When submitting a request, you can use either card or token information. You must use the following structure:
<cnpRequest version="12.0" xmlns="http://www.vantiv.cnp.com/schema" id="requestId" numBatchRequests="1"> <authentication> <user>JohnSmith</user> <password>Password1234</password> </authentication> <batchRequest id="batchId" numAccountUpdates="2" merchantId="testMerchant01"> <accountUpdate id=”1234” reportGroup"merchant01ReportGrpoup"> <orderId >123456</orderId> <card> <type>Visa</type> <number>123412312345123</number> <expDate>0721</expDate> </card> </accountUpdate> <accountUpdate id=”1235” reportGroup="merchant01ReportGrpoup"> <orderId>123456</orderId> <token> <cnpToken >12345678912345</cnpToken> <expDate>0721</expDate> </token> </accountUpdate> </batchRequest> </cnpRequest>
For more details about our Account Updater elements click here.
Acknowledgement response
When you submit a request, Worldpay returns an acknowledgement response. This response confirms the request was received and contains validation information.
Acknowledgement response XML structure
<cnpResponse version= "11.2" response="0" message="Valid Format" cnpSessionId="1700000128"> <batchResponse cnpBatchId="1700000136" merchantId="TestMerchant01"> <accountUpdateResponse id=”1234” reportGroup="MerchantReportGroup01"> <cnpTxnId>123456789</cnpTxnId> <orderId>123456</orderId> <response>000</response> <responseTime>2009-12-21T11:37:04</responseTime> <message>Approved</message> </accountUpdateResponse> </batchResponse> </cnpResponse>
For more details about our Account Updater elements click here.
Acknowledgement response codes
We notify you when we receive the request. If the response file indicates any errors, you must resolve the issues and submit corrected account information in a new Account Updater request.
Response Code | Response Message | Resolution |
---|---|---|
000 | Approved | We forward these accounts to Visa and MasterCard. |
301 | Invalid account number | The card number is not valid. Correct the account number and resubmit the data. |
320 | Invalid Expiration Date | The expiration date is not valid. Correct the expiration date and resubmit the card data. |
821 | Merchant is not authorized for tokens | You are not authorized to use tokens. |
822 | Token was not found | The submitted token was not found in the system. Correct the token number and resubmit. |
823 | Token was invalid | The submitted token failed validation. Correct the token number and resubmit. |
899 | Generic token use error | There is an unspecified token use error; contact Customer Service. |
Completion response
We return the completion response, which includes updated customer account information and reason codes supplied by the network. You can use this information to update customer account information.
Typically, we generate this file five days after you first submit your batch request.
Completion response format
The following examples show a tree structure view of the acknowledgement response and a completion response.
information. The response, however, does not contain the updatedCard
or updatedToken
child elements.
Completion response XML structure
<cnpResponse version= "11.2" response="0" message="Merchant Fiscal Day: 06102010" cnpSessionId="1700000128"> <batchResponse cnpBatchId="1700000136" merchantId="TestMerchant01"> <accountUpdateResponse id=”1234” reportGroup= "MerchantReportGroup01"> <cnpTxnId >123456789</cnpTxnId> <orderId >123456</orderId> <response >000</response> <responseTime >2009-12-21T11:37:04</responseTime> <message >Approved</message> <originalCard > <type >Visa</type> <number >123412312345123</number> <expDate >0721</expDate> </originalCard> <updatedCard > <type >Visa</type> <number >1234123123451224</number> <expDate >0725</expDate> </updatedCard> </accountUpdateResponse> <accountUpdateResponse id=”1235” reportGroup= "MerchantReportGroup01"> <cnpTxnId>123456789</cnpTxnId> <response>000</response> <responseTime>2009-12-21T11:37:04</responseTime> <message>Approved</message> <originalToken> <cnpToken>12345678912345</cnpToken> <expDate>0721</expDate> <type>Visa</type> <bin>123456</bin> </originalToken> <updatedToken> <cnpToken>12345622912345</cnpToken> <expDate>0725</expDate> <type>Visa</type> <bin>123456</bin> </updatedToken> </accountUpdateResponse> </batchResponse> </cnpResponse>
For more details about our Account Updater elements click here.
Completion response codes
The Account Updater completion response code and its associated message (as shown in Account Updater Completion Response Codes) specify whether or not an account number has been changed and what type of change occurred, if any.
- The Response Code value appears in the
<response>
element. - The Response Message value appears in the
<message>
element. - The Resolution column provides a recommended action.
Response Code | Response Message | Resolution |
---|---|---|
191 | The merchant is not registered in the update program | Escalate this to your Customer Experience Manager. This indicates a set-up problem that must be resolved prior to submitting another request file. |
500 | The account number was changed | Submit the account number returned in the completion response. The response may also indicate that both the account number and expiration date changed. |
501 | The account was closed | Contact the cardholder for updated information. |
502 | The expiration date was changed | Submit the expiration date returned in the completion response. |
503 | The issuing bank does not participate in the update program. | The Issuer does not participate in the Account Updater program. Submit original card information. |
504 | Contact the cardholder for updated information | Contact the cardholder for updated information. |
505 | No match found | There was no match found in the updated information. Submit the original card information. |
506 | No changes found | Submit the original card information. |