Apex Reference Guide
Summer '25 preview (API version 64.0)
Spring '25 (API version 63.0)
Winter '25 (API version 62.0)
Summer '24 (API version 61.0)
Spring '24 (API version 60.0)
Winter '24 (API version 59.0)
Summer '23 (API version 58.0)
Spring '23 (API version 57.0)
Winter '23 (API version 56.0)
Summer '22 (API version 55.0)
Spring '22 (API version 54.0)
Winter '22 (API version 53.0)
Summer '21 (API version 52.0)
No Results
Search Tips:
- Please consider misspellings
- Try different search keywords
Release Notes
CommerceOrders Namespace
CalculateTaxType Enum
RequestType Enum
ResultCode Enum
TaxTransactionStatus Enum
TaxTransactionType Enum
Context Namespace
DataRetrieval Namespace
ExternalService Namespace
IndustriesDigitalLending Namespace
PlaceQuote Namespace
RevSalesTrxn Namespace
Slack Namespace
CommerceTax Namespace
Manage the communication between Salesforce and an external tax engine.
The CommerceTax namespace includes these classes.
-
AbstractTransactionResponse Class
Abstract class that contains methods for setting tax fields based on the external tax provider's response. Response classes that extend AbstractTransactionResponse inherit these methods. -
AddressesResponse Class
Sets the tax address fields based on a response from the external tax engine. Contains setter methods for the Ship From, Ship To, and Sold To addresses. -
AddressResponse Class
Contains a location code sent from the external tax engine. -
AmountDetailsResponse Class
Sets tax amount fields based on a response from the external tax engine. -
CalculateTaxRequest Class
Represents a request to an external tax engine to calculate tax. Extends the TaxTransactionRequest class and is the top-level request class. -
CalculateTaxResponse Class
Sets the values of the tax transaction following a response from the external tax engine. Extends the AbstractTransactionResponse class and is the top-level response class. -
CalculateTaxType Enum
Shows whether a tax calculation request is for estimated or actual tax. -
ErrorResponse Class
Use to respond with an error after receiving errors from the PaymentGatewayAdapter methods of the CommercePayments namespace, such as request-forbidden responses, custom validation errors, or expired API tokens. -
HeaderTaxAddressesRequest Class
Captures the address values that are applicable for the quote or order transaction. -
ImpositionResponse Class
Stores details of tax impositions from the external tax engine. -
JurisdictionResponse Class
Stores details from the external tax engine about the tax jurisdiction used in the tax calculation process. A tax jurisdiction represents a government entity that collects tax. -
LineItemResponse Class
Response class that stores details of a list of one or more line items on which the tax engine has calculated tax. -
LineTaxAddressesRequest Class
Stores details of the addresses applied per line item in a tax calculation request. -
RequestType Enum
Shows the type of tax request made to the tax engine. -
ResultCode Enum
Code that represents the results of a tax request made to the tax engine. -
RuleDetailsResponse Class
Contains details about the tax rules used for tax calculation. -
TaxAddressesRequest Class
Contains methods to get and set tax address values. -
TaxAddressRequest Class
Contains address details used for tax calculation. -
TaxApiException Class
Contains details about any exceptions during the tax calculation process. Extends the ApexBaseException class. -
TaxCustomerDetailsRequest Class
Contains customer details used in tax calculation. -
TaxDetailsResponse Class
Stores details of the tax values that an external tax engine calculates in response to a tax calculation request. -
TaxEngineAdapter Interface
Retrieves information from the tax engine and evaluates the information to define tax details. -
TaxEngineContext Class
Wrapper class that stores details about the type of a tax calculation request. -
TaxLineItemRequest Class
Contains line item details of a tax request. -
TaxSellerDetailsRequest Class
Contains tax code details used in the tax calculation request. -
TaxTransactionRequest Class
Abstract class for storing customer details used in tax calculation and estimation requests. -
TaxTransactionStatus Enum
Shows whether the tax transaction has been committed or uncommitted. -
TaxTransactionType Enum
Shows whether the tax transaction is for a credit or debit transaction.