Broadleaf Microservices
  • v1.0.0-latest-prod

Offer Code Responses

Table of Contents

Offer Code Not Applied Reasons

The offer engine returns a map of codes and responses explaining why a potential offer code did not apply.

Response Code Reason

CODE_NOT_FOUND

The code passed in on the order request was not found.

FULFILLMENT_GROUP_CRITERIA_NOT_MET

The fulfillment group did not meet the criteria specified on the offer.

FULFILLMENT_GROUP_ITEM_SUBTOTAL_NOT_MET

The sum of the fulfillment group items did not meet the item subtotal specified on the offer.

ITEM_QUALIFICATIONS_NOT_MET

The qualifying items on this order did not meet the criteria for this offer.

ITEM_QUALIFIERS_NOT_FOUND

Not enough item qualifiers were found to apply the offer.

ITEM_TARGETS_NOT_FOUND

Not enough item targets were found to apply the offer.

ITEM_TARGETS_NOT_MET

The target item criteria for this offer was not met on this order.

NOT_BEST_OFFER_DISCOUNT

The offer did not provide the best adjustment value for this order.

OFFER_DISCOUNT_VALUE_INVALID

The offer could not calculate a valid discount for this order.

OFFER_NOT_ACTIVE

The offer is not currently active.

OFFER_SETUP_ERROR_NO_TARGET_CRITERIA

No target item criteria rules were specified; they are required to exist for this offer. This indicates that this offer’s setup is invalid.

ORDER_CRITERIA_NOT_MET

The order did not meet the criteria specified on the offer.

ORDER_SUBTOTAL_NOT_MET

The order did not meet the minimum subtotal specified on the offer.

QUALIFYING_ITEM_CRITERIA_NOT_MET

The order did not meet the qualifying item criteria for this offer.

QUALIFYING_TOTAL_NOT_MET

The sum of the qualifying items' subtotal on this order did not meet the criteria for this offer.

TARGET_ITEM_CRITERIA_NOT_MET

The order did not meet the target item criteria for this offer.

TARGET_SUBTOTAL_NOT_MET

The target item subtotal for this offer was not met on this order.

TIME_CRITERIA_NOT_MET

The date and/or time of this order request did not meet the criteria specified on the offer.

USES_EXCEEDED

The offer has reached its max usage for the current customer and/or code.