Retrieving tax sets

Edit on GitHub
You are browsing a previous version of the document. The latest version is 202212.0.

This endpoint allows to retrieve detailed information about tax sets of abstract products.

Installation

For detailed information on the modules that provide the API functionality and related installation instructions, see:

Retrieve tax sets

To retrieve tax sets of a product, send the request:


GET /abstract-products/{{abstract_product_sku}}/tax-sets


Path parameter Description
{{abstract_product_sku}} SKU of an abstract product to get the tax sets of.

Request

Request sample: GET https://glue.mysprykershop.com/abstract-products/209/product-tax-sets

Response

Response sample
{
    "data": [
        {
            "type": "product-tax-sets",
            "id": "deb94215-a1fc-5cdc-af6e-87ec3a847480",
            "attributes": {
                "name": "Communication Electronics",
                "restTaxRates": [
                    {
                        "name": "Austria Standard",
                        "rate": "20.00",
                        "country": "AT"
                    },
                    {
                        "name": "Belgium Standard",
                        "rate": "21.00",
                        "country": "BE"
                    },
                    {
                        "name": "Bulgaria Standard",
                        "rate": "20.00",
                        "country": "BG"
                    },
                    {
                        "name": "Czech Republic Standard",
                        "rate": "21.00",
                        "country": "CZ"
                    },
                    {
                        "name": "Denmark Standard",
                        "rate": "25.00",
                        "country": "DK"
                    },
                    {
                        "name": "France Standard",
                        "rate": "20.00",
                        "country": "FR"
                    },
                    {
                        "name": "Germany Standard",
                        "rate": "19.00",
                        "country": "DE"
                    },
                    {
                        "name": "Hungary Standard",
                        "rate": "27.00",
                        "country": "HU"
                    },
                    {
                        "name": "Italy Standard",
                        "rate": "22.00",
                        "country": "IT"
                    },
                    {
                        "name": "Netherlands Standard",
                        "rate": "21.00",
                        "country": "NL"
                    },
                    {
                        "name": "Romania Standard",
                        "rate": "20.00",
                        "country": "RO"
                    },
                    {
                        "name": "Slovakia Standard",
                        "rate": "20.00",
                        "country": "SK"
                    },
                    {
                        "name": "Slovenia Standard",
                        "rate": "22.00",
                        "country": "SI"
                    },
                    {
                        "name": "Luxembourg Reduced1",
                        "rate": "3.00",
                        "country": "LU"
                    },
                    {
                        "name": "Poland Reduced1",
                        "rate": "5.00",
                        "country": "PL"
                    }
                ]
            },
            "links": {
                "self": "https://glue.mysprykershop.com/abstract-products/177/product-tax-sets"
            }
        }
    ],
    "links": {
        "self": "https://glue.mysprykershop.com/abstract-products/177/product-tax-sets"
    }
}

| Attribute | Description | | — | — | | name | Tax set name | | restTaxRates.name | Tax rate name | | restTaxRates.rate | Tax rate | | restTaxRates.country | Applicable country for the tax rate |

Possible errors

Code Meaning
310 Could not get tax set, product abstract with provided id not found.
311 Abstract product SKU is not specified.

To view generic errors that originate from the Glue Application, see Reference information: GlueApplication errors.