List all tax rules

How to fetch a collection of tax rules via API

To fetch a collection of tax rules, send a GET request to the /api/tax_rules endpoint.

Request

GET https://yourdomain.commercelayer.io/api/tax_rules

Example

The following request fetches a collection of tax rules:

curl -g -X GET \
  'https://yourdomain.commercelayer.io/api/tax_rules/' \
  -H 'Accept: application/vnd.api+json' \
  -H 'Authorization: Bearer your-access-token'

Remember that when you fetch a list of resources you get paginated result.

Sortable fields

The list of tax rules can be sorted by the following fields:

  • name

  • tax_rate

  • id

  • created_at

  • updated_at

  • reference

  • reference_origin

Filterable fields

The list of tax rules can be filtered by the following fields:

Attributes

  • name

  • tax_rate

  • freight_taxable

  • payment_method_taxable

  • gift_card_taxable

  • adjustment_taxable

  • id

  • created_at

  • updated_at

  • reference

  • reference_origin

  • metadata

Relationships

  • manual_tax_calculator

Last updated