Sites & Organisation

Tax Configurations

A tax configuration is one or more 'sets' of taxes that should apply to a the sale of a single item.

get/shop/tax-configurations

Get revenue centres for a site

getTaxConfigurations

Use this endpoint to retrieve tax configurations.

Query parameters

  • country_codestringoptional

    An optional country code to filter tax configurations

Responses

  • 200

    A list of tax configurations.

  • 401

    The user is unauthenticated

  • 404

    The resource couldn't be found

get/shop/tax-configurations/{taxConfigurationId}

Retrieve a tax configuration

getTaxConfiguration

Retrieve a single tax configuration by ID. The response includes the configuration's name, optional description, and the full set of rate sets that apply to it — useful for surfacing the active tax rules in a back-office editor, or for previewing what rates will be applied before testing a calculation against /calculate.

Path parameters

Responses

  • 200

    A single tax configuration.

  • 401

    The user is unauthenticated

  • 404

    The resource couldn't be found

post/shop/tax-configurations/{taxConfigurationId}/calculate

Test a tax calculation.

actionTestTaxConfiguration

Use this endpoint to test a tax calculation for the given tax configuration.

Path parameters

Request body

  • amountintegeroptional

    Test the tax configuration with the given customer-facing amount.

  • datedate-timeoptionalnullable

    Test the tax configuration as it would be applied on the given date.

Responses

  • 200

    The results of a tax calculation for a tax configuration.

  • 401

    The user is unauthenticated

  • 403

    The authenticated user does not have permission.

  • 404

    The resource couldn't be found

  • 422

    The request didn't pass validation