cnpResponse
This is the root element for all cnpAPI Batch responses.
Parent Elements:
None
Attributes:
Attribute Name |
Type |
Required? |
Description |
---|---|---|---|
version |
String |
Yes |
Defines the cnpAPI schema version against which the XML is validated. minLength = N/A maxLength = 10 |
xmlns |
String |
Yes |
Defines the URI of the schema definition. This is a fixed location and must be specified as: http://www.vantivcnp.com/schema. minLength = N/A maxLength = 38 |
id |
String |
No |
The response returns the same value submitted in the cnp Request. minLength = N/A maxLength = 25 |
response |
String |
Yes |
Indicates whether your XML syntax passed validation. Expected values are as follows: 0 - XML validation succeeded. 1 - XML validation failed. See the message attribute for more details. minLength = N/A maxLength = 3 |
message |
String |
Yes |
XML validation error message. Expected values are as follows: - If the response attribute returns 0, the message attribute returns the text “Valid Format.” - If the response attribute returns 1, the message attribute returns an error message that helps you to identify and troubleshoot the syntax problem. For example messages, see XML Validation Error Messages. minLength = N/A maxLength = 512 |
cnpSessionId |
Long |
Yes |
A unique value assigned by Worldpay to identify the session. minLength = N/A maxLength = 19 |
Child Elements:
One of the following required: batchResponse, RFRResponse