Retrieving 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: GET http://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": "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
306 Availability is not found.

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