tax[tax] attribute lets you provide the tax rate of a product. Use this attribute when you need to override the tax settings that you set up in Merchant Center.
When to use
Required for the United States when you need to override the account tax settings that you set up in the Merchant Center. This attribute exclusively covers US sales tax. Don't use for other taxes, such as value-added tax (VAT) or import tax.
If you need to modify or override the tax for a single item, use the
tax [tax] attribute, which will always override account-level tax settings. Keep in mind that instead of submitting this attribute, we recommend that you set up tax rates through Merchant Center settings. Learn more about tax settings
The tax attribute uses four sub-attributes:
rate [rate](required): Tax rate as a percentage of the price (number e.g. 8.75).
country [country](optional): The country an item can be delivered to. Currently, tax settings are available only to products targeting the United States. Include
country [country](US) when including
tax_ship [tax_ship](optional): Whether you charge tax on delivery (
- To submit an area, submit only one of the four available options:
region [region](optional): Submit a state. Submit an ISO 3166-2 code without country prefix (e.g. CA).
postal_code [postcode](optional): A postcode range. Submit one of the following:
- A postcode (e.g. 94043)
- A range of postcodes (e.g. 94002-95460)
- A range of postcodes using a prefix with a wildcard (
*) (e.g. 94*)
- A range of postcodes using 2 prefixes with wildcards (
*) (e.g. 94*–95*)
location_id [location_id](optional): Submit a numeric criteria ID of your location defined by Google Ads API (AdWords API) (e.g. for California use 21137).
location_group_name [location_group_name](optional): Submit a location group that you set up and name through your Merchant Center settings. Use those group names here (e.g. West Coast). Learn more about setting up delivery zones
Follow these formatting guidelines to make sure that we understand the data that you're submitting.
Unicode characters (Recommended: ASCII only)
|Repeated field||Yes. Submit up to 100 times to specify taxes for different locations|
|File format||Example entry|
The format of this attribute depends on the values that you're submitting and their specific order. Include
For example, to submit country, postcode and rate:
If you don't include sub-attributes in the name, we'll assume that your attribute values include all four sub-attributes in this order:
Format the value by submitting the value of each sub-attribute listed in the same order as in the name and separated with a colon ( : ). Don't use quotation marks. For example:
For multiple locations, submit the attribute (with the same name) multiple times. For example:
If you don't want to provide an optional sub-attribute (like
Include a separate attribute for each tax group.
To format your data for Content API, have a look at the Content API for Shopping.
Follow these guidelines to make sure that you submit high-quality data for your products.
These are the requirements that you'll need to meet to show your product. If you don't follow these requirements, we'll disapprove your product and let you know on the Diagnostics page of your Merchant Center account.
- Make sure that you cover every location in the US (even locations where you do not charge tax) if you submit all tax settings through the tax attribute. Specify that you charge no tax for a location by setting the
rate [rate]to 0.
- Submit complete and correct tax information and costs. If you can't provide accurate tax cost, match or overestimate the tax that a user visiting your site would pay.
- Comply with local laws when submitting tax information.
These best practices can help you go beyond the basic requirements to optimise your product data for performance.
- Use tax settings in the Merchant Center. With these settings, you can create simple flat rates or let Google automatically compute tax rates for your products. Use the
tax [tax]attribute as a last resort to override the settings that you created in Merchant Center.
- Use the
tax [tax]attribute for products that are tax exempt or have a unique tax rate. Using your account tax settings, you can't add reduced tax rates or exemptions for individual products. Google calculates tax rates for tangible personal property and doesn't support reduced tax rates or tax exemptions.
- Indicate if you charge tax on delivery. Charging tax on delivery might be legally required for some tax authorities. You can add tax on delivery through the
tax_ship [tax_ship]sub-attribute or through your account settings. Learn more about tax settings
Review each section closely to determine whether the requirements apply to your country or product. If you don't follow requirements that apply to you, we'll disapprove your product and let you know in Diagnostics in your Merchant Center account.
- Don't use the
tax [tax]attribute when targeting countries that aren't the United States. Learn more about tax settings
- Submit the tax rate charged to an individual. Taxes must be accurate for individual users since we don't specifically support business-to-business (B2B) purchases at this time. If you have special conditions for commercial buyers, you can add these to your website, but don't submit these rates in your product data.
To format the name, include
tax [tax], and then, in parentheses, add the names of the sub-attributes that you’re submitting separated by a colon (:).
For example, to submit country, postcode and rate:
Format the value by submitting the value of each sub-attribute listed in the same order as in the name and separated with a colon (
: ). For example:
You can also just submit the price. For example:
If you don’t include sub-attributes in the name, still submit values for all 4 sub-attributes in this order:
If you don't want to provide an optional sub-attribute (like region) for a particular product, then still add a colon (
: ), but leave the text blank. For example:
You can submit up to 100 tax values per item to indicate different costs for individual locations. To submit multiple locations, submit the attribute (with the same name) multiple times. For example:
To submit multiple delivery groups for an XML feed, include a separate attribute for each delivery group. You can submit up to 100
tax [tax] attributes for each product.
US CA 10.00 yes US PA 11.00 yes US NY 9.00 yes
You can submit postcodes through the
postal_code [postcode] sub-attribute. There are several different ways you can submit these values.
Submit single postcode
Include the entire code. For example:
postal_code [postcode] 94043
Submit a range of postcodes
Include 2 full codes separated by a hyphen (
- ). For example:
postal_code [postcode] 94002-95460
Submit a range of codes using a wildcard
Include any number of digits followed by an asterisk (
* ). This example would include all codes starting in 94. For example:
postal_code [postcode] 94*
Submit a range of codes using 2 prefixes with wildcards
Use 2 prefixes with asterisks (
*) and a hyphen (-) to create a more narrow range. Use the same number of digits for both prefixes. For example:
postal_code [postcode] 94*-95*
Indicate that a product isn’t taxable by setting the rate sub-attribute to 0. For example:
rate [rate] 0