title | description | last_updated | template | originalLink | originalArticleId | redirect_from | related | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Glue API: Retrieve concrete product prices |
Retrieve prices of concrete products. |
Jun 21, 2021 |
glue-api-storefront-guide-template |
7192572b-0b8e-4bbb-a579-570eecffc1e2 |
|
|
This endpoint allows retrieving prices of concrete products.
For detailed information on the modules that provide the API functionality and related installation instructions, see:
To retrieve prices of a concrete product, send the request:
GET
/concrete-products/{% raw %}{{{% endraw %}concrete_product_sku{% raw %}}}{% endraw %}/concrete-product-prices
PATH PARAMETER | DESCRIPTION |
---|---|
{% raw %}{{{% endraw %}concrete_product_sku{% raw %}}}{% endraw %} | SKU of a concrete product to get the price of. |
REQUEST | USAGE |
---|---|
GET https://glue.mysprykershop.com/concrete-products/001_25904006/concrete-product-prices |
Retrieve the prices of the 001_25904006 product. |
GET https://glue.mysprykershop.com/concrete-products/001_25904006/concrete-product-prices?currency=CHF&priceMode=GROSS_MODE |
Retrieve the gross price of the 001_25904006 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 sample: retrieve default prices of a concrete product
{
"data": [
{
"type": "concrete-product-prices",
"id": "001_25904006",
"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/concrete-products/001_25904006/concrete-product-prices"
}
}
],
"links": {
"self": "https://glue.mysprykershop.com/concrete-products/001_25904006/concrete-product-prices"
}
}
Response sample: retrieve default and volume prices of a concrete product
{
"data": [
{
"type": "concrete-product-prices",
"id": "093_24495843",
"attributes": {
"price": 24899,
"prices": [
{
"priceTypeName": "DEFAULT",
"netAmount": null,
"grossAmount": 24899,
"currency": {
"code": "EUR",
"name": "Euro",
"symbol": "€"
},
"volumePrices": [
{
"netAmount": 150,
"grossAmount": 165,
"quantity": 5
},
{
"netAmount": 145,
"grossAmount": 158,
"quantity": 10
},
{
"netAmount": 140,
"grossAmount": 152,
"quantity": 20
}
]
}
]
},
"links": {
"self": "https://glue.mysprykershop.com/concrete-products/093_24495843/concrete-product-prices"
}
}
],
"links": {
"self": "https://glue.mysprykershop.com/concrete-products/093_24495843/concrete-product-prices"
}
}
Response sample: retrieve a gross price in Swiss Franc of a concrete product
{
"data": [
{
"type": "concrete-product-prices",
"id": "001_25904006",
"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/concrete-products/001_25904006/concrete-product-prices"
}
}
],
"links": {
"self": "https://glue.mysprykershop.com/concrete-products/001_25904006/items?currency=CHF&priceMode=GROSS_MODE"
}
}
{% include pbc/all/glue-api-guides/{{page.version}}/concrete-product-prices-response-attributes.md %}
CODE | REASON |
---|---|
302 | Concrete product is not found. |
308 | Can't find concrete product prices. |
312 | Concrete product sku is not specified. |
302 | Concrete product is not found. |
404 | Request URL or type is wrong. |
To view generic errors that originate from the Glue Application, see Reference information: GlueApplication errors.