Usage Product Validation

Output representation of all the performed validations.

JSON Example 

This example shows the validation output with errors and warnings.

1{
2  "errors": [
3    {
4      "errorCode": "VALIDATION_FAILED",
5      "message": "Product validation completed with cross-entity errors",
6      "products": [
7        {
8          "productId": "01txx0000006i2gAAA",
9          "validationResult": {
10            "validationErrors": [
11              {
12                "errors": [
13                  {
14                    "errorCode": "EFFECTIVITY_MISMATCH",
15                    "errorMessages": [
16                      {
17                        "errorMessage": "PUR and RCE effective date ranges must have overlap for proper rating functionality",
18                        "errorDetails": [
19                          {
20                            "relatedObjectAPIName": "ProductUsageRule",
21                            "records": [
22                              {
23                                "id": "a0bxx0000004CqZAAU",
24                                "name": "PUR-001"
25                              }
26                            ]
27                          }
28                        ]
29                      }
30                    ]
31                  }
32                ],
33                "ruleName": "Usage vs Rating Effectivity"
34              }
35            ],
36            "validationWarnings": []
37          }
38        }
39      ]
40    }
41  ],
42  "success": false
43}
Property NameTypeDescriptionFilter Group and VersionAvailable Version
successBooleanIndicates whether the product validation passed (true) or failed (false).Big, 66.066.0
errorsError Details[]List of top-level error details when validation fails.Big, 66.066.0