Retrieving abstract product prices

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 prices of abstract products.

Installation

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

Retrieve prices of an abstract product

To retrieve prices of an abstract product, send the request:


GET /abstract-products/{{abstract_product_sku}}/abstract-product-prices


Path parameter Description
{{abstract_product_sku}} SKU of an abstract product to retrieve the prices of.

Request

Request Usage
GET https://glue.mysprykershop.com/abstract-products/001/abstract-product-prices Retrieve the price of the 001 product.
GET https://glue.mysprykershop.com/abstract-products/001/abstract-product-prices?currency=CHF&priceMode=GROSS_MODE Retrieve the gross price of the 001 product in Swiss Franc.
String parameter Description Exemplary values
currency Defines the currency to retrieve the price in. USD, EUR, CHF
priceMode Defines the price mode to retrieve the price in. GROSS_MODE, NET_MODE

Response

Response sample
{
    "data": [
        {
            "type": "abstract-product-prices",
            "id": "001",
            "attributes": {
                "price": 9999,
                "prices": [
                    {
                        "priceTypeName": "DEFAULT",
                        "netAmount": null,
                        "grossAmount": 9999,
                        "currency": {
                            "code": "EUR",
                            "name": "Euro",
                            "symbol": "€"
                        }
                    },
                    {
                        "priceTypeName": "ORIGINAL",
                        "netAmount": null,
                        "grossAmount": 12564,
                        "currency": {
                            "code": "EUR",
                            "name": "Euro",
                            "symbol": "€"
                        }
                    }
                ]
            },
            "links": {
                "self": "https://glue.mysprykershop.com/abstract-products/001/abstract-product-prices"
            }
        }
    ],
    "links": {
        "self": "https://glue.mysprykershop.com/abstract-products/001/abstract-product-prices"
    }
}
Response sample with a gross price in Swiss Franc
{
    "data": [
        {
            "type": "abstract-product-prices",
            "id": "001",
            "attributes": {
                "price": 11499,
                "prices": [
                    {
                        "priceTypeName": "DEFAULT",
                        "netAmount": null,
                        "grossAmount": 11499,
                        "currency": {
                            "code": "CHF",
                            "name": "Swiss Franc",
                            "symbol": "CHF"
                        }
                    },
                    {
                        "priceTypeName": "ORIGINAL",
                        "netAmount": null,
                        "grossAmount": 14449,
                        "currency": {
                            "code": "CHF",
                            "name": "Swiss Franc",
                            "symbol": "CHF"
                        }
                    }
                ]
            },
            "links": {
                "self": "https://glue.mysprykershop.com/abstract-products/001/abstract-product-prices"
            }
        }
    ],
    "links": {
        "self": "https://glue.mysprykershop.com/abstract-products/001/items?currency=CHF&priceMode=GROSS_MODE"
    }
}

| Field | Type | Description | | — | — | — | | price | Integer | Price to pay for that product in cents. | | priceTypeName|String|Price type. | | netAmount|Integer|Net price in cents.| |grossAmount|Integer|Gross price in cents.| |currency.code|String|Currency code.| |currency.name|String|Currency name.| |currency.symbol | String | Currency symbol. |

Possible errors

Code Meaning
307 Can’t find abstract product prices.
311 Abstract product SKU is not specified.

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