Query tax classes

Query a single tax class

To query a single tax class, you must perform the following:

  1. Get an instance of the orders manager.
    Get an instance of the OrdersManager object.
  2. Get the specified tax class.
    To get the specified tax class, you must either call the GetTaxClass method of the manager and pass the ID of the tax class as an argument, or call the GetTaxClasses method and filter the collection by one of the properties of the tax class (e.g. title).

Use the following code samples to query single tax class by ID and by title:

Query a tax class by ID

Query a tax class by title

Query all tax classes

To query all tax classes, you must perform the following:

  1. Get an instance of the orders manager.
    Get an instance of the OrdersManager object.
  2. Get the tax classes.
    To get the tax classes, you must call the GetTaxClasses method.

Use the following code sample:

Want to learn more?

Sign up for our free beginner training. Boost your credentials through advanced courses and certification.
Register for Sitefinity training and certification.

Was this article helpful?

Next article

Modify tax classes