Sample input examples demonstrating validation scenarios for brand data including display names and country codes
Country Codes
CountryCodesMustBePresent
| Pass Scenario | Failure Scenario |
|---|---|
| ✓ |
Sample Input
{
"countryCodes": null
}
CountryCodesMustBeValid
Scenario One
| Pass Scenario | Failure Scenario |
|---|---|
| ✓ |
Sample Input
{
"countryCodes": [ "Ukraine" ]
}
Scenario Two
ISO 3166 alpha-2-compliant country code
| Pass Scenario | Failure Scenario |
|---|---|
| ✓ |
Sample Input
{
"countryCodes": [ "UA" ]
}
Display Names
DisplayNamesMustBePresent
| Pass Scenario | Failure Scenario |
|---|---|
| ✓ |
Sample Input
{
"brandDetails": {
"partnersBrandId": "456456",
"partnersBrandVersion": "PBV01",
"countryCodes": [ "US" ],
"categories": [ "shopping.store.discount_store", "shopping.store.home_goods_store", "shopping.store.department_store", "shopping.store.electronics_store", "shopping.food_mart.grocery_store" ],
"urls": [
{
"url": "https://www.walmart.com",
"type": "HOMEPAGE"
}
],
"ownershipType": "BRAND_OWNER"
}
}
Locale
DisplayNamesLocaleMustBePresent
| Pass Scenario | Failure Scenario |
|---|---|
| ✓ |
Sample Input
{
"displayNames": [
{
"name": "PizzaExpress",
"primary": true
}
]
}
Name
DisplayNamesNameMustBePresent
| Pass Scenario | Failure Scenario |
|---|---|
| ✓ |
Sample Input
{
"displayNames": [
{
"locale": "en",
"primary": true
}
]
}
DisplayNamesNameMustNotBeDummyCharacters
| Pass Scenario | Failure Scenario |
|---|---|
| ✓ |
Sample Input
{
"displayNames": [
{
"name": "No value",
"locale": "en",
"primary": true
}
]
}
DisplayNamesNameMustNotBeEmpty
name is empty string.
| Pass Scenario | Failure Scenario |
|---|---|
| ✓ |
Sample Input
{
"displayNames": [
{
"name": "",
"locale": "en",
"primary": true
}
]
}
DisplayNamesNameMustNotMatchBrandInSameCountry
- Organization has two (2) brands
- Brand one primary name
TK Maxxis matched in brand two
| Pass Scenario | Failure Scenario |
|---|---|
| ✓ |
Brand One
Sample Input
{
"brandDetails": {
"partnersBrandId": "1111111",
"partnersBrandVersion": "PBV01",
"countryCodes": [ "US" ],
"displayNames": [
{
"name": "TJ Maxx",
"locale": "en",
"primary": true
}
],
"categories": [ "shopping.store.department_store", "shopping.store.clothing_store" ],
"urls": [
{
"url": "https://tjmaxx.tjx.com",
"type": "HOMEPAGE"
}
],
"ownershipType": "BRAND_OWNER"
}
}
Brand Two
Sample Input
{
"brandDetails": {
"partnersBrandId": "2222222",
"partnersBrandVersion": "PBV01",
"countryCodes": [ "US" ],
"displayNames": [
{
"name": "TJ Maxx",
"locale": "en",
"primary": true
}
],
"categories": [ "shopping.store.department_store", "shopping.store.clothing_store" ],
"urls": [
{
"url": "https://tjmaxx.tjx.com",
"type": "HOMEPAGE"
}
],
"ownershipType": "BRAND_OWNER"
}
}