Returned when the Tax Category of at least one of the lineItems, customLineItems, or shippingInfo in the Cart is missing the TaxRate matching country and state given in the shippingAddress of that Cart.

The error is returned as a failed response to:

- [Set Default Shipping Address](ctp:api:type:CustomerSetDefaultShippingAddressAction), [Add LineItem](ctp:api:type:CartAddLineItemAction), [Add CustomLineItem](ctp:api:type:CartAddCustomLineItemAction), [Set Shipping Address](ctp:api:type:CartSetShippingAddressAction), [Add LineItem](ctp:api:type:MyCartAddLineItemAction), [Add LineItem](ctp:api:type:StagedOrderAddLineItemAction), and [Add CustomLineItem](ctp:api:type:StagedOrderAddCustomLineItemAction) update actions
- [Create Order from Cart](ctp:api:endpoint:/{projectKey}/orders:POST) and [Create Order in Store from Cart](ctp:api:endpoint:/{projectKey}/in-store/orders:POST) requests.
interface MissingTaxRateForCountryError {
    code: "MissingTaxRateForCountry";
    country?: string;
    message: string;
    state?: string;
    taxCategoryId: string;
    [key: string]: any;
}

Indexable

[key: string]: any

Properties

code: "MissingTaxRateForCountry"
country?: string

Country code of the geographic location.

message: string

"Tax category $taxCategoryId is missing a tax rate for country $countriesAndStates."

state?: string

State within the country, such as Texas in the United States.

taxCategoryId: string

Unique identifier of the TaxCategory.

Generated using TypeDoc