List all tax rules
GET https://{{subdomain}}.commercelayer.io/api/tax_rules
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Authorization | string |
RESPONSES
status: OK
{"data":[{"id":"xYZkjABcde","type":"tax_rules","links":{"self":"https://yourdomain.commercelayer.io/api/tax_rules/xYZkjABcde"},"attributes":{"name":"Fixed 22%","tax_rate":0.22,"country_code_regex":"AT|BE|BG|CZ|DK|EE|DE|HU|LV|LT","not_country_code_regex":"AT|BE|BG|CZ|DK|EE|DE","state_code_regex":"A[KLRZ]|C[AOT]|D[CE]|FL","not_state_code_regex":"A[KLRZ]|C[AOT]","zip_code_regex":"(?i)(JE1|JE2|JE3|JE4|JE5)","not_zip_code_regex":"(?i)(JE1|JE2|JE3)","freight_taxable":false,"payment_method_taxable":false,"gift_card_taxable":false,"adjustment_taxable":false,"breakdown":{"41":{"tax_rate":0.22}},"created_at":"2018-01-01T12:00:00.000Z","updated_at":"2018-01-01T12:00:00.000Z","reference":"ANY-EXTERNAL-REFEFERNCE","reference_origin":"ANY-EXTERNAL-REFEFERNCE-ORIGIN","metadata":{"foo":"bar"}},"relationships":{"manual_tax_calculator":{"links":{"self":"https://yourdomain.commercelayer.io/api/tax_rules/xYZkjABcde/relationships/manual_tax_calculator","related":"https://yourdomain.commercelayer.io/api/tax_rules/xYZkjABcde/manual_tax_calculator"}},"versions":{"links":{"self":"https://yourdomain.commercelayer.io/api/tax_rules/xYZkjABcde/relationships/versions","related":"https://yourdomain.commercelayer.io/api/tax_rules/xYZkjABcde/versions"}}},"meta":{"mode":"test"}},{"other":"... 9 tax_rules (first page)"}],"meta":{"record_count":140,"page_count":14},"links":{"first":"https://yourdomain.commercelayer.io/api/tax_rules?page[number]=1\u0026page[size]=10","next":"https://yourdomain.commercelayer.io/api/tax_rules?page[number]=2\u0026page[size]=10","last":"https://yourdomain.commercelayer.io/api/tax_rules?page[number]=14\u0026page[size]=10"}}