Data Validation Service Details

Data Validation Request Example

<?xml version="1.0" encoding="UTF-8"?>
<ns1:DataValidationRequest xmlns:ns1="http://integration.digitalriver.com/DataValidationService">
 <dataPoints xsi:type="ns1:DataPointInfos" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <item xsi:type="ns1:DataPointInfo">
   <name xsi:type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema">CustomerID</name>
   <value xsi:type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema">12345</value>
   <valueDataType xsi:type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema">string</valueDataType>
  </item>
  <item xsi:type="ns1:DataPointInfo">
   <name xsi:type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema">SRPID</name>
   <value xsi:type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema">67890</value>
   <valueDataType xsi:type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema">string</valueDataType>
  </item>
 </dataPoints>
 <extendedAttributes xsi:type="ns2:ExtendedAttributesInfoArray" xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns2="http://integration.digitalriver.com/Common/1.0"/>
</ns1:DataValidationRequest>

Data Validation Response Example

A successful Data Validation Service request results in a response that contains a non-null, non-empty element.

Successful Data Validation Response Scenario

The following example shows a valid Data Validation response:

<?xml version="1.0" encoding="utf-8"?>
<ns1:DataValidationResponse xmlns:ns1="http://integration.digitalriver.com/DataValidationService" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ns1:DataValidationResponse">
  <dataPointResponses xmlns="http://integration.digitalriver.com/DataValidationService" xsi:type="ns1:DataPointResponseInfos">
    <item xsi:type="ns1:DataPointResponseInfo">
      <name xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xsi:type="xsd:string">CustomerID</name>
      <value xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xsi:type="xsd:string">12345</value>
      <valueDataType xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xsi:type="xsd:string">string</valueDataType>
    </item>
    <item xsi:type="ns1:DataPointResponseInfo">
      <name xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xsi:type="xsd:string">SRPID</name>
      <value xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xsi:type="xsd:string">67890</value>
      <valueDataType xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xsi:type="xsd:string">string</valueDataType>
    </item>
  </dataPointResponses>
  <valid xmlns:xsd="http://www.w3.org/2001/XMLSchema" xsi:type="xsd:boolean">true</valid>
</ns1:DataValidationResponse>

Unsuccessful Data Validation Response Scenario

The following example shows an invalid Data Validation response:

Note:

A third party must define the required responseCode.

<?xml version="1.0" encoding="utf-8"?>
<ns1:DataValidationResponse xmlns:ns1="http://integration.digitalriver.com/DataValidationService" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ns1:DataValidationResponse">
  <dataPointResponses xmlns="http://integration.digitalriver.com/DataValidationService" xsi:type="ns1:DataPointResponseInfos">
    <item xsi:type="ns1:DataPointResponseInfo">
      <name xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xsi:type="xsd:string">CustomerID</name>
      <value xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xsi:type="xsd:string">12345</value>
      <valueDataType xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xsi:type="xsd:string">string</valueDataType>
    </item>
    <item xsi:type="ns1:DataPointResponseInfo">
      <name xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xsi:type="xsd:string">SRPID</name>
      <value xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xsi:type="xsd:string">67890</value>
      <valueDataType xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xsi:type="xsd:string">string</valueDataType>
    </item>
  </dataPointResponses>
  <valid xmlns:xsd="http://www.w3.org/2001/XMLSchema" xsi:type="xsd:boolean">false</valid>
  <responseCode xmlns:xsd="http://www.w3.org/2001/XMLSchema" xsi:type="xsd:string">DATA_VALIDATION_INVALID</responseCode>
</ns1:DataValidationResponse>