Interface MatchingPriceNotFoundError

All Superinterfaces:
ErrorObject
All Known Implementing Classes:
MatchingPriceNotFoundErrorImpl

public interface MatchingPriceNotFoundError extends ErrorObject

Returned when the Product Variant does not have a Price according to the Product priceMode value for a selected currency, country, Customer Group, or Channel.

The error is returned as a failed response to:

  • Add LineItem, Add CustomLineItem, and Add DiscountCode update actions on Carts.
  • Add LineItem, Add CustomLineItem, and Add DiscountCode update actions on Order Edits.
  • Create Order from Cart and Create Order in Store from Cart requests on Orders.
  • Create Order from Cart and Create Order in Store from Cart requests on My Orders.

Example to create an instance using the builder pattern

     MatchingPriceNotFoundError matchingPriceNotFoundError = MatchingPriceNotFoundError.builder()
             .message("{message}")
             .productId("{productId}")
             .variantId(1)
             .build()