Skip to main content

Validation rules for brand categories including sensitive category checks, distinctness, validity, and count thresholds

Categories

BrandHasSensitiveCategory

Preconditions
orgId resolves to organization that is location owner
DefinitionSeverityAPISampleMode
Validate that brand category is not "sensitive" and subject to review
WARNING
POST_AND_PUT
S
Example Validation Report
{
"code": "VALIDATION__BrandHasSensitiveCategory",
"severity": "WARNING",
"message": "Brand category '{{value}}' is subject to review",
"context": {
"value": "travel_and_leisure.adult_entertainment_venue.strip_club"
},
"details": {
"createdDate": "2026-10-10T11:36:02.00Z",
"submitted": [
{
"field": "$.brandDetails.categories[3]",
"value": "travel_and_leisure.adult_entertainment_venue.strip_club"
}
],
"compared": [],
"expected": []
}
}

CategoriesMustBeDistinct

DefinitionSeverityAPISampleMode
Validate that each category is distinct
VIOLATION
POST_AND_PUT
S

CategoriesMustBePresent

DefinitionSeverityAPISampleMode
Validate that categories are present
VIOLATION
POST_AND_PUT
Link
S

CategoriesMustBeValid

DefinitionSeverityAPISampleMode
Validate that category is valid
VIOLATION
POST_AND_PUT
Link
S

CategoriesMustNotBeEmpty

DefinitionSeverityAPISampleMode
Validate that categories is not an empty string
VIOLATION
POST_AND_PUT
S

CountOfItemsInCategoriesListExceedsThreshold

DefinitionSeverityAPISampleMode
Validate that the count of items in categories does not exceed twenty (20)
VIOLATION
POST_AND_PUT
S