Skip to main content

Validation rules for call-to-action types including distinctness, validity, existence, and completeness checks

Type

CallToActionsTypeMustBeDistinct

DefinitionSeverityAPISampleMode
Validate that each type (action) is distinct
VIOLATION
POST_AND_PUT
Link
S
Example Validation Report
{
"code": "VALIDATION__CallToActionsTypeMustBeDistinct",
"severity": "VIOLATION",
"message": "Each '{{field}}' must be distinct",
"context": {
"field": "type"
},
"details": {
"createdDate": "2026-02-10T11:36:02.00Z",
"submitted": [
{
"field": ".0.providers.1",
"value": "ORDER"
},
{
"field": ".0.providers.2",
"value": "ORDER"
}
],
"compared": [],
"expected": []
}
}

CallToActionsTypeMustBeValid

DefinitionSeverityAPISampleMode
Validate that type value is valid
VIOLATION
POST_AND_PUT
S
Example Validation Report
{
"code": "VALIDATION__CallToActionsTypeMustBeValid",
"severity": "VIOLATION",
"message": "'type' value '{{value}}' is invalid",
"context": {
"value": "foo_bar"
},
"details": {
"createdDate": "2026-02-10T11:36:02.00Z",
"submitted": [
{
"field": ".0",
"value": "foo_bar"
}
],
"compared": [],
"expected": []
}
}

CallToActionsTypeMustNotBeEmpty

DefinitionSeverityAPISampleMode
Validate that type is not an empty string
VIOLATION
POST_AND_PUT
S
Example Validation Report
{
"code": "VALIDATION__CallToActionsTypeMustNotBeEmpty",
"severity": "VIOLATION",
"message": "Field '{{field}}' is empty",
"context": {
"field": "type"
},
"details": {
"createdDate": "2026-02-10T11:36:02.00Z",
"submitted": [
{
"field": ".0"
}
],
"compared": [],
"expected": []
}
}

CallToActionsTypeIsMissing

DefinitionSeverityAPISampleMode
Validate that a Apple Business action type has a corresponding match in a submittal
VIOLATION
POST_AND_PUT
S
Example Validation Report
{
"code": "VALIDATION__CallToActionsTypeIsMissing",
"severity": "VIOLATION",
"message": "'{{value}}' action 'type' is missing. Fetch latest providers using Get CTAs and try again",
"context": {
"value": "ORDER"
},
"details": {
"createdDate": "2026-02-10T11:36:02.00Z",
"compared": [
{
"field": "type",
"value": "ORDER"
}
],
"expected": [],
"submitted": []
}
}

CallToActionsTypeDoesNotExist

DefinitionSeverityAPISampleMode
Validate that a Apple Business action type has a corresponding match in a submittal
VIOLATION
POST_AND_PUT
S
Example Validation Report
{
"code": "VALIDATION__CallToActionsTypeDoesNotExist",
"severity": "VIOLATION",
"message": "'{{value}}' action 'type' does not exist. Fetch latest providers using Get CTAs and try again",
"context": {
"value": "TICKETS"
},
"details": {
"createdDate": "2026-02-10T11:36:02.00Z",
"compared": [
{
"field": "type",
"value": "TICKETS"
}
],
"expected": [],
"submitted": []
}
}