Group and Record Constraints

Group and record constraints check for minimum and maximum cardinality.

Group Attributes

If any product in the group causes violation for groupMin or groupMax, the offer is returned as ineligible for the get offer request and invalid for the validation request.

The following attributes are used for group evaluation:

  • groupNumber specifies the unique identifier for the group. If no groupNumber is specified, the product ID is considered as the group number so the product is in its own group.
  • groupMin specifies the minimum number of products that must be ordered for a bundle.
  • groupMax specifies the maximum number of products that can be ordered in a bundle.

Record Attributes

If any product in the offer causes a record violation, the offer is returned as ineligible for the get offer request and invalid for the validation request

The following attributes are used for record evaluation:

  • RecordMin specifies the minimum number of products that must be ordered for a bundle.
  • RecordMax specifies the maximum number of products that can be ordered in a bundle.