Returned when the Cart contains a ShippingMethod that is not allowed for the Cart. In this case, the ShippingMethodState value is DoesNotMatchCart.

The error is returned as a failed response to the [Create Order from Cart](ctp:api:endpoint:/{projectKey}/orders:POST) or [Create Order in Store from Cart](ctp:api:endpoint:/{projectKey}/in-store/orders:POST) requests.
interface ShippingMethodDoesNotMatchCartError {
    code: "ShippingMethodDoesNotMatchCart";
    message: string;
    [key: string]: any;
}

Indexable

[key: string]: any

Properties

Properties

code: "ShippingMethodDoesNotMatchCart"
message: string

"The predicate does not match the cart."

Generated using TypeDoc