Retrieve concrete product availability

Edit on GitHub

This endpoint allows retrieving 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: retrieve availability of a concrete product


GET http://glue.mysprykershop.com/concrete-products/001_25904006/concrete-product-availabilities

Response

Response sample: retrieve availability of a concrete product
{
    "data": [{
        "type": "concrete-product-availabilities",
        "id": "001_25904006",
        "attributes": {
            "availability": true,
            "quantity": 10,
            "isNeverOutOfStock": false
        },
        "links": {
            "self": "http://glue.mysprykershop.com/concrete-products/001_25904006/concrete-product-availabilities"
        }
    }],
    "links": {
        "self": "http://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 REASON
302 Concrete product is not found.
306 Availability is not found.
312 Concrete product sku is not specified.

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