Search…
Data validation
Understand the Data Validation service.
The Data Validation service process is a request/response-based process. The Data Validation Service provides a mechanism that allows you to attach data points on a page in a Digital River store. It also validates each data point on that page 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 responseCode.

Note

A third-party client must define the responseCode.
Request sample
Successful response sample
Unsuccessful response sample
1
{
2
"DataValidationRequest": {
3
"dataPoints": {
4
"item": [
5
{
6
"name": {
7
"_xmlns:xsd": "http://www.w3.org/2001/XMLSchema",
8
"_xsi:type": "xsd:string",
9
"__text": "CustomerID"
10
},
11
"value": {
12
"_xmlns:xsd": "http://www.w3.org/2001/XMLSchema",
13
"_xsi:type": "xsd:string",
14
"__text": "12345"
15
},
16
"valueDataType": {
17
"_xmlns:xsd": "http://www.w3.org/2001/XMLSchema",
18
"_xsi:type": "xsd:string",
19
"__text": "string"
20
},
21
"_xsi:type": "ns1:DataPointInfo"
22
},
23
{
24
"name": {
25
"_xmlns:xsd": "http://www.w3.org/2001/XMLSchema",
26
"_xsi:type": "xsd:string",
27
"__text": "SRPID"
28
},
29
"value": {
30
"_xmlns:xsd": "http://www.w3.org/2001/XMLSchema",
31
"_xsi:type": "xsd:string",
32
"__text": "67890"
33
},
34
"valueDataType": {
35
"_xmlns:xsd": "http://www.w3.org/2001/XMLSchema",
36
"_xsi:type": "xsd:string",
37
"__text": "string"
38
},
39
"_xsi:type": "ns1:DataPointInfo"
40
}
41
],
42
"_xmlns:xsi": "http://www.w3.org/2001/XMLSchema-instance",
43
"_xsi:type": "ns1:DataPointInfos"
44
},
45
"extendedAttributes": {
46
"_xmlns:xsi": "http://www.w3.org/2001/XMLSchema-instance",
47
"_xmlns:ns2": "http://integration.digitalriver.com/Common/1.0",
48
"_xsi:type": "ns2:ExtendedAttributesInfoArray",
49
"_xsi:nil": "true"
50
},
51
"_xmlns:ns1": "http://integration.digitalriver.com/DataValidationService",
52
"__prefix": "ns1"
53
}
54
}
Copied!
1
{
2
"DataValidationResponse": {
3
"dataPointResponses": {
4
"item": [
5
{
6
"name": {
7
"_xmlns": "",
8
"_xmlns:xsd": "http://www.w3.org/2001/XMLSchema",
9
"_xsi:type": "xsd:string",
10
"__text": "CustomerID"
11
},
12
"value": {
13
"_xmlns": "",
14
"_xmlns:xsd": "http://www.w3.org/2001/XMLSchema",
15
"_xsi:type": "xsd:string",
16
"__text": "12345"
17
},
18
"valueDataType": {
19
"_xmlns": "",
20
"_xmlns:xsd": "http://www.w3.org/2001/XMLSchema",
21
"_xsi:type": "xsd:string",
22
"__text": "string"
23
},
24
"_xsi:type": "ns1:DataPointResponseInfo"
25
},
26
{
27
"name": {
28
"_xmlns": "",
29
"_xmlns:xsd": "http://www.w3.org/2001/XMLSchema",
30
"_xsi:type": "xsd:string",
31
"__text": "SRPID"
32
},
33
"value": {
34
"_xmlns": "",
35
"_xmlns:xsd": "http://www.w3.org/2001/XMLSchema",
36
"_xsi:type": "xsd:string",
37
"__text": "67890"
38
},
39
"valueDataType": {
40
"_xmlns": "",
41
"_xmlns:xsd": "http://www.w3.org/2001/XMLSchema",
42
"_xsi:type": "xsd:string",
43
"__text": "string"
44
},
45
"_xsi:type": "ns1:DataPointResponseInfo"
46
}
47
],
48
"_xmlns": "http://integration.digitalriver.com/DataValidationService",
49
"_xsi:type": "ns1:DataPointResponseInfos"
50
},
51
"valid": {
52
"_xmlns:xsd": "http://www.w3.org/2001/XMLSchema",
53
"_xsi:type": "xsd:boolean",
54
"__text": "true"
55
},
56
"_xmlns:ns1": "http://integration.digitalriver.com/DataValidationService",
57
"_xmlns:xsi": "http://www.w3.org/2001/XMLSchema-instance",
58
"_xsi:type": "ns1:DataValidationResponse",
59
"__prefix": "ns1"
60
}
61
}
Copied!
1
{
2
"DataValidationResponse": {
3
"dataPointResponses": {
4
"item": [
5
{
6
"name": {
7
"_xmlns": "",
8
"_xmlns:xsd": "http://www.w3.org/2001/XMLSchema",
9
"_xsi:type": "xsd:string",
10
"__text": "CustomerID"
11
},
12
"value": {
13
"_xmlns": "",
14
"_xmlns:xsd": "http://www.w3.org/2001/XMLSchema",
15
"_xsi:type": "xsd:string",
16
"__text": "12345"
17
},
18
"valueDataType": {
19
"_xmlns": "",
20
"_xmlns:xsd": "http://www.w3.org/2001/XMLSchema",
21
"_xsi:type": "xsd:string",
22
"__text": "string"
23
},
24
"_xsi:type": "ns1:DataPointResponseInfo"
25
},
26
{
27
"name": {
28
"_xmlns": "",
29
"_xmlns:xsd": "http://www.w3.org/2001/XMLSchema",
30
"_xsi:type": "xsd:string",
31
"__text": "SRPID"
32
},
33
"value": {
34
"_xmlns": "",
35
"_xmlns:xsd": "http://www.w3.org/2001/XMLSchema",
36
"_xsi:type": "xsd:string",
37
"__text": "67890"
38
},
39
"valueDataType": {
40
"_xmlns": "",
41
"_xmlns:xsd": "http://www.w3.org/2001/XMLSchema",
42
"_xsi:type": "xsd:string",
43
"__text": "string"
44
},
45
"_xsi:type": "ns1:DataPointResponseInfo"
46
}
47
],
48
"_xmlns": "http://integration.digitalriver.com/DataValidationService",
49
"_xsi:type": "ns1:DataPointResponseInfos"
50
},
51
"valid": {
52
"_xmlns:xsd": "http://www.w3.org/2001/XMLSchema",
53
"_xsi:type": "xsd:boolean",
54
"__text": "false"
55
},
56
"responseCode": {
57
"_xmlns:xsd": "http://www.w3.org/2001/XMLSchema",
58
"_xsi:type": "xsd:string",
59
"__text": "DATA_VALIDATION_INVALID"
60
},
61
"_xmlns:ns1": "http://integration.digitalriver.com/DataValidationService",
62
"_xmlns:xsi": "http://www.w3.org/2001/XMLSchema-instance",
63
"_xsi:type": "ns1:DataValidationResponse",
64
"__prefix": "ns1"
65
}
66
}
Copied!

Data validation schema

Version
Schema Components Table
Raw Schema
Sample XML
Version 1 (Current)
View
View
View
Last modified 11mo ago