Retrieve tax sets

Edit on GitHub

This endpoint allows retrieving 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 Glue API: Products Feature Integration.

Retrieve tax sets

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


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


PATH PARAMETER DESCRIPTION
{{abstract_product_sku}} SKU of an abstract product to get the tax sets of.

Request

Request sample: retrieve tax sets

GET http://glue.mysprykershop.com/abstract-products/209/product-tax-sets

Response

Response sample: retrieve tax sets
{
    "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": "http://glue.mysprykershop.com/abstract-products/177/product-tax-sets"
            }
        }
    ],
    "links": {
        "self": "http://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 REASON
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.