Data validation

Understand the Data Validation service.

The Data Validation service is a request/response-based process. It provides a mechanism for attaching data points to a page in a Digital River store and validating each data point against an external endpoint provided by a third-party client.

Data Validation Service flow

Data validation details

A successful Data Validation request results in a response that contains a non-null, non-empty element. An unsuccessful Data Validation request results in an invalid response code (responseCode).

Note

A third-party client must define the responseCode.

{
	"DataValidationRequest": {
		"dataPoints": {
			"item": [
				{
					"name": {
						"_xmlns:xsd": "http://www.w3.org/2001/XMLSchema",
						"_xsi:type": "xsd:string",
						"__text": "CustomerID"
					},
					"value": {
						"_xmlns:xsd": "http://www.w3.org/2001/XMLSchema",
						"_xsi:type": "xsd:string",
						"__text": "12345"
					},
					"valueDataType": {
						"_xmlns:xsd": "http://www.w3.org/2001/XMLSchema",
						"_xsi:type": "xsd:string",
						"__text": "string"
					},
					"_xsi:type": "ns1:DataPointInfo"
				},
				{
					"name": {
						"_xmlns:xsd": "http://www.w3.org/2001/XMLSchema",
						"_xsi:type": "xsd:string",
						"__text": "SRPID"
					},
					"value": {
						"_xmlns:xsd": "http://www.w3.org/2001/XMLSchema",
						"_xsi:type": "xsd:string",
						"__text": "67890"
					},
					"valueDataType": {
						"_xmlns:xsd": "http://www.w3.org/2001/XMLSchema",
						"_xsi:type": "xsd:string",
						"__text": "string"
					},
					"_xsi:type": "ns1:DataPointInfo"
				}
			],
			"_xmlns:xsi": "http://www.w3.org/2001/XMLSchema-instance",
			"_xsi:type": "ns1:DataPointInfos"
		},
		"extendedAttributes": {
			"_xmlns:xsi": "http://www.w3.org/2001/XMLSchema-instance",
			"_xmlns:ns2": "http://integration.digitalriver.com/Common/1.0",
			"_xsi:type": "ns2:ExtendedAttributesInfoArray",
			"_xsi:nil": "true"
		},
		"_xmlns:ns1": "http://integration.digitalriver.com/DataValidationService",
		"__prefix": "ns1"
	}
}

Data validation schema

The data validation schema serves as a blueprint for validating data requests. It ensures that the data points and their respective types comply with predefined standards, leading to successful data validation responses. Refer to the links in the table below for more details on the schema components, raw schema, and sample XML.

VersionSchema Components TableRaw SchemaSample XML

Version 1 (Current)

Last updated