Problem: cart.validation_failed
One or more Cart rules were not met.
Associated Issues
- cart.not_draft: Cart is not draft
- cart.not_owner: Not the Cart owner
- cart.locked: Cart is locked
- cart.till_not_allowed: Till not allowed
- cart.unknown_item_type: Unknown cart item type
- cart.duplicate_line: Duplicate cart line
- cart.duplicate_client_key: Duplicate cart client key
- cart.max_items: Cart line limit reached
- cart.item_not_editable: Cart line not editable
- cart.empty: Cart is empty
- cart.invalid_reference: Invalid cart reference
- cart.enrollment_kind_invalid: Enrolment type is not supported
- cart.discount_code_invalid: Discount code not valid
- cart.settlement_line_override_not_permitted: Settlement line override not permitted
- cart.anniversary_exclude_not_permitted: Anniversary fee exclusion not permitted
- cart.settlement_account_not_routable: Settlement account not routable
- cart.enrolment_discount_not_permitted: Enrolment discount not permitted
- cart.voucher_redeem_not_permitted: Voucher redemption not permitted
- tax.unknown_code: Unknown tax code
- tax.configuration_conflict: Tax configuration conflict
Example
{
"type": "https://docs.keja.co/reference/problem/cart.validation_failed",
"status": 422,
"title": "Cart validation failed",
"detail": "One or more Cart rules were not met.",
"errors": [
{
"code": "cart.not_draft",
"title": "Cart is not draft",
"detail": "This Cart cannot be changed because Checkout is in progress or it is already complete.",
"severity": "blocking"
}
]
}