Docs
Dashboard

CartCreateError

Union

Possible results returned for cart create error.

#

Possible Types


CartLineItemPriceNotFoundError
CartLineItemPriceNotFoundError

This exception is thrown when price lookup fails for a line item variant.

CartLineItemUnavailableForPurchase
CartLineItemUnavailableForPurchase

This exception is thrown when a variant or its parent product is unavailable for purchase.

CartLineItemsInsufficientStockError
CartLineItemsInsufficientStockError

This exception is thrown when one or more requested line items do not have enough stock.

CreateCartAddressDoesNotHaveCountryCodeError
CreateCartAddressDoesNotHaveCountryCodeError

This exception is thrown when an address is not null, but does not have a country code.

CreateCartAuthenticationFailedError
CreateCartAuthenticationFailedError

This exception is thrown when cart authentication fails.

CreateCartAuthorizationFailedError
CreateCartAuthorizationFailedError

This exception is thrown when cart authorization fails.

CreateCartChannelDoesNotSupportCountryError
CreateCartChannelDoesNotSupportCountryError

This exception is thrown when a channel does not support the specified country.

CreateCartChannelDoesNotSupportCurrencyError
CreateCartChannelDoesNotSupportCurrencyError

This exception is thrown when a channel does not support the specified currency.

CreateCartChannelHasNoCountriesError
CreateCartChannelHasNoCountriesError

This exception is thrown when a channel has no countries defined.

CreateCartChannelNotFoundError
CreateCartChannelNotFoundError

This exception is thrown when a channel with the specified ID cannot be found.

CreateCartPriceChannelNotFoundError
CreateCartPriceChannelNotFoundError

This exception is thrown when a price channel with the specified ID cannot be found or is not a valid price channel.

CreateCartShippingAddressDoesNotHaveShippingZonesError
CreateCartShippingAddressDoesNotHaveShippingZonesError

This exception is thrown when a shipping address country has no configured shipping zones.

CreateCartStoreNotFoundError
CreateCartStoreNotFoundError

This exception is thrown when a store with the specified ID cannot be found during cart creation.

ProductVariantNotFoundError
ProductVariantNotFoundError

This exception is thrown when a product variant with the specified ID cannot be found.