TaxTreatment
Represents information about tax calculation by external engines. Each product requires a tax policy to determine whether to apply tax. Each tax policy requires at least one tax treatment. The tax treatments determine how taxable products are taxed. This object is available in API version 62.0 and later.
create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), undelete(), update(), upsert()
You need the Tax Admin permission set to access this object.
- Type: textarea
- Properties: Create, Filter, Nillable, Sort, Update
- Description: Additional details about the tax treatment.
- Type: boolean
- Properties: Create, Defaulted on create, Filter, Group, Sort, Update
- Description: Required. Indicates whether to calculate tax for the order items covered by the tax treatment (
true) or not (false). When this value istrue, the CalculateTax API is called for the order item during the order item’s creation.
The default value is false.
- Type: dateTime
- Properties: Filter, Nillable, Sort
- Description: The timestamp when the current user last accessed a tax treatment record indirectly, for example, through a list view or related record.
- Type: dateTime
- Properties: Filter, Nillable, Sort
- Description: The timestamp when the current user last viewed a tax treatment record. If this value is null, it’s possible that the user only accessed the tax treatment record or a related list view (
LastReferencedDate), but not viewed the tax treatment record itself.
- Type: reference
- Properties: Create, Filter, Group, Nillable, Sort, Update
- Description: The ID of the legal entity record that’s related to the tax treatment.
This field is a relationship field.
- Relationship Name: LegalEntity
- Refers To: LegalEntity
- Type: string
- Properties: Create, Filter, Group, idLookup, Sort, Update
- Description: Required. The name of the tax treatment.
- Type: string
- Properties: Create, Filter, Group, idLookup, Nillable, Sort, Update
- Description: The code of the product that the tax treatment applies to.
- Type: reference
- Properties: Create, Filter, Group, Nillable, Sort, Update
- Description: The ID of the product that the tax treatment applies to.
This field is a relationship field.
- Relationship Name: Product
- Refers To: Product2
- Type: boolean
- Properties: Create, Defaulted on create, Filter, Group, Sort, Update
- Description: Required. Indicates whether the tax codes and product codes of the related tax treatment items must be used when requesting tax calculations (
true) or not (false).
The default value is false. The tax code and product code of the tax treatment are ignored by default. Available in API version 66.0 and later.
- Type: picklist
- Properties: Create, Filter, Group, Restricted picklist, Sort, Update
- Description: Required. The status of the tax treatment record.
Valid values are Active, Draft, or Inactive.
- Type: string
- Properties: Create, Filter, Group, Nillable, Sort, Update
- Description: The reference code that’s used when an external tax engine calculates tax.
- Type: reference
- Properties: Create, Filter, Group, Nillable, Sort, Update
- Description: The ID of the tax engine record that’s related to the tax treatment. When tax is calculated for an order item, the tax engine that’s related to order item’s tax treatment is used. If the tax treatment’s
IsTaxablefield value isTrue, the treatment requires a tax engine.
This field is a relationship field.
- Relationship Name: TaxEngine
- Refers To: TaxEngine
- Type: reference
- Properties: Create, Filter, Group, Nillable, Sort, Update
- Description: The ID of the tax treatment’s parent tax policy.
This field is a relationship field.
- Relationship Name: TaxPolicy
- Refers To: TaxPolicy