- Home
- All APIs
- WPG guide
- General errors
- Batched modification errors
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>
<?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 code | Error message | Description |
---|---|---|
401 | authentication error | The basic authentication has failed which means the username and/or password was wrong. |
1 | Batch could not be stored | Typically caused by an orderCode which is longer than 64 characters. |
2 | Batch code too long | The batchCode is longer than 25 characters. |
4 | MerchantCode mismatch | The Merchant code you supplied in the XML does not match the username and password used to authenticate. |
5 | Duplicate batch | The batch code is correct, but is a duplicate of another batch. |