Location payment methods validation rules for accepted payment types and configuration requirements
Change Detection
CountOfPaymentMethodsIncreased
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that the count of paymentMethods values in latest submittal is less than or matches the count in the store record |
SuspiciousRemovalOfPaymentMethods
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that paymentMethods is present when previously submitted |
Payment Methods
PaymentMethodsListMustNotIncludeNulls
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
| Validate that a list does not include null |
PaymentMethodsMustNotBeEmptyArray
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that paymentMethods is not an empty array |
Example Validation Report
{
"code": "VALIDATION__PaymentMethodsMustNotBeEmptyArray",
"message": "'{{field}}' must be omitted or contain at least one element; empty arrays are not allowed.",
"severity": "VIOLATION",
"context": {
"field": "paymentMethods"
},
"details": {
"compared": [],
"expected": [],
"submitted": [
{
"field": "$.locationDetails.paymentMethods",
"value": "[]"
}
],
"createdDate": "2026-03-03T13:58:43.946Z"
}
}
PaymentMethodsMustBeDistinct
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that each paymentMethods value is distinct |
PaymentMethodsMustBeValid
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that each paymentMethods value is valid | Link |
PaymentMethodsMustNotBeEmpty
| Definition | Severity | API | Sample | Mode |
|---|---|---|---|---|
Validate that paymentMethods is not an empty string |