---
schema_version: "1"
id: a31ec506d195439ebfddcc69519d40edb44a11b546ced3abaa8685fded0dc1a8
title: CartTax
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_carttax.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_carttax.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 935c7f9a11b70a247cc4b6d1b67ac4816a2b602b5c5b3998a48c293b751de3fe
description: Represents taxes for a line item in a WebCart that’s active in a store built with B2B Commerce or D2C Commerce. This object is available in API version 49.0 and later.
---
# CartTax

Represents taxes for a line item in a WebCart that’s active in a store built with B2B Commerce or D2C Commerce. This object is available in API version 49.0 and later.

## Supported Calls

create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), undelete(), update(), upsert()

## Special Access Rules

The CartTax object is available only if the B2B Commerce or D2C Commerce license is enabled.

## Fields

| Field | Details |
| --- | --- |
| AdjustmentTargetType | 
Type

picklist

Properties

Filter, Group, Nillable, Restricted picklist, Sort

Description

Target for the price adjustment (the cart itself or individual items). This field is available in API version 52.0 and later.

Possible values are:

- Cart
- Item





 |
| Amount | 

Type

currency

Properties

Create, Filter, Sort, Update

Description

Calculated tax amount.



 |
| CartId | 

Type

reference

Properties

Filter, Group, Nillable, Sort

Description

The ID of the WebCart being taxed.



 |
| CartItemId | 

Type

reference

Properties

Create, Filter, Group, Sort

Description

The ID of a cart item being taxed.



 |
| CartItemPriceAdjustmentId | 

Type

reference

Properties

Create, Filter, Group, Sort

Description

The ID of a price adjustment for a cart item being taxed. (This field is available in API version 52.0 and later.)

Refers To

CartItemPriceAdjustment



 |
| CurrencyIsoCode | 

Type

picklist

Properties

Create, Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort, Update

Description

The ISO code for the currency that’s specified on the buyer’s account. Default value is USD. Valid values include:

- USD—U.S. Dollar





 |
| Description | 

Type

textarea

Properties

Create, Nillable, Update

Description

A description of the tax. Enter up to 2000 characters.



 |
| Name | 

Type

string

Properties

Create, Filter, Group, idLookup, Sort, Update

Description

The name of this CartTax record. Name can be up to 255 characters.



 |
| TaxCalculationDate | 

Type

date

Properties

Create, Filter, Group, Sort, Update

Description

The date this tax was calculated.



 |
| TaxRate | 

Type

percent

Properties

Create, Filter, Nillable, Sort, Update

Description

The applied tax rate for this line of tax.



 |
| TaxType | 

Type

picklist

Properties

Create, Filter, Group, Restricted picklist, Sort, Update

Description

The type of tax for this line of tax. Possible values are:

- Actual
- Estimated







 |

## Associated Objects

This object has the following associated objects. Unless it’s noted, associated objects are available in the same API version as this object.

[CartTaxChangeEvent](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_associated_objects_change_event.htm "A ChangeEvent object is available for each object that supports Change Data Capture. You can subscribe to a stream of change events using Change Data Capture to receive data tied to record changes in Salesforce. Changes include record creation, updates to an existing record, deletion of a record, and undeletion of a record. A change event isn’t a Salesforce object—it doesn’t support CRUD operations or queries. It’s included in the object reference so you can discover which Salesforce objects support change events.") (API version 58.0)

Change events are available for the object.

#### See Also

- [WebCart](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_webcart.htm "Represents an online shopping cart for a store built with B2B Commerce or D2C Commerce, with total amounts for products, shipping and handling, and taxes. This object is available in API version 49.0 and later.")