Retrieving concrete product availability

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

This endpoint allows to retrieve availability of concrete products.

Installation

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

Retrieve availability of a concrete product


GET /concrete-products/{{concrete_product_sku}}/concrete-product-availabilities


Path parameter Description
{{concrete_product_sku}} SKU of a concrete product to get abailability for.

Request

Request sample: GET https://glue.mysprykershop.com/concrete-products/001_25904006/concrete-product-availabilities

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

Response

Response sample
{
    "data": [{
        "type": "concrete-product-availabilities",
        "id": "001_25904006",
        "attributes": {
            "availability": true,
            "quantity": 10,
            "isNeverOutOfStock": false
        },
        "links": {
            "self": "https://glue.mysprykershop.com/concrete-products/001_25904006/concrete-product-availabilities"
        }
    }],
    "links": {
        "self": "https://glue.mysprykershop.com/concrete-products/001_25904006/concrete-product-availabilities"
    }
}

Field Type Description
availability Boolean Boolean to inform about the availability.
quantity Integer Available stock (all warehouses aggregated).
isNeverOutOfStock Boolean A boolean to show if this is a product that is never out of stock.

Possible errors

Code Meaning
306 Availability is not found.

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