Batched modification errors

The most common error codes are shown below, along with their messages. For queries about these and all other errors, contact your Implementation Manager.

Error Responses

Batched modification errors are displayed in our response as:

Copied!
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE batchService PUBLIC "-//WorldPay//DTD WorldPay BatchService v1//EN" 
  "http://dtd.worldPay.com/batchService_v1.dtd">
<batchService version="1.0" merchantCode="ExampleCode1"> batchCode="BATCH_CODE" <!--The merchantCode and Batch Code you supplied in the modification-->
    <error code="2">Batch code too long.</error>
</batchService>

Common errors

Error codeError messageDescription
401authentication errorThe basic authentication has failed which means the username and/or password was wrong.
1Batch could not be storedTypically caused by an orderCode which is longer than 64 characters.
2Batch code too longThe batchCode is longer than 25 characters.
4MerchantCode mismatchThe Merchant code you supplied in the XML does not match the username and password used to authenticate.
5Duplicate batchThe batch code is correct, but is a duplicate of another batch.