Retrieve tax sets when retrieving abstract products

Edit on GitHub

This document describes how to retrieve tax sets of abstract products. To retrieve full information of abstract products, see Retrieve 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 of an abstract product


GET /abstract-products/{{abstract_product_sku}}?include=product-tax-sets


PATH PARAMETER DESCRIPTION
{{abstract_product_sku}} SKU of an abstract product to get information for.

Request

GET https://glue.mysprykershop.com/abstract-products/001?include=product-tax-sets: Retrieve information about the abstract product with SKU 001 with its tax sets.

Response

Response sample: retrieve information about an abstract product with the details about tax sets
{
    "data": {
        "type": "abstract-products",
        "id": "001",
        "attributes": {
            "sku": "001"
        },
        "links": {
            "self": "https://glue.mysprykershop.com/abstract-products/001?include=product-tax-sets"
        },
        "relationships": {
            "product-tax-sets": {
                "data": [
                    {
                        "type": "product-tax-sets",
                        "id": "0e93b0d4-6d83-5fc1-ac1d-d6ae11690406"
                    }
                ]
            }
        }
    },
    "included": [
        {
            "type": "product-tax-sets",
            "id": "0e93b0d4-6d83-5fc1-ac1d-d6ae11690406",
            "attributes": {
                "name": "Entertainment Electronics",
                "restTaxRates": [
                    {
                        "name": "Austria Standard",
                        "rate": "20.00",
                        "country": "AT"
                    },
                    {
                        "name": "Belgium Standard",
                        "rate": "21.00",
                        "country": "BE"
                    },
                    {
                        "name": "Denmark Standard",
                        "rate": "25.00",
                        "country": "DK"
                    },
                    {
                        "name": "France Standard",
                        "rate": "20.00",
                        "country": "FR"
                    },
                    {
                        "name": "Germany Standard",
                        "rate": "19.00",
                        "country": "DE"
                    }
                ]
            },
            "links": {
                "self": "https://glue.mysprykershop.com/abstract-products/001/product-tax-sets"
            }
        }
    ]
}
ATTRIBUTE TYPE DESCRIPTION
sku String SKU of the abstract product.
averageRating String Average rating of the product based on customer rating.
reviewCount Integer Number of reviews left by customer for this abstract product.
name String Name of the abstract product.
description String Description of the abstract product.
attributes Object List of attributes and their values.
superAttributeDefinition String Attributes flagged as super attributes that are, however, not relevant to distinguish between the product variants.
attributeMap Object Each super attribute / value combination and the corresponding concrete product IDs are listed here.
attributeMap.super_attributes Object Applicable super attribute and its values for the product variants.
attributeMap.attribute_variants Object List of super attributes with the list of values.
attributeMap.product_concrete_ids String Product IDs of the product variants.
metaTitle String Meta title of the product.
metaKeywords String Meta keywords of the product.
metaDescription String Meta description of the product.
attributeNames Object All non-super attribute / value combinations for the abstract product.

For the attributes of tax sets, see Retrieve tax sets.

Possible errors

CODE REASON
301 Abstract product is not found.
311 Abstract product SKU is not specified.