Fetch SKU Inventory


This API returns the inventory of the SKU code provided as a path parameter.

Basic Information

  • Method: GET
  • URI: /inventory/skus/:sku_code
  • Response Format: JSON

Headers

The following headers should be sent along with the request

  • Accept: application/json
  • Authorization: Your API Key

Request

Below table list the request parameters which can be sent to Fetch SKU Inventory API.

{info} The request parameters should be sent as path parameter in the URL.

Parameter Type Required Description
sku_code String Yes The SKU code for which you want the inventory.


Sample Request

https://dev-fc-api.aymakan.net/api/v1/inventory/skus/airpods-sku

Response

Sample response is added here:

{
    "success": true,
    "message": "",
    "data": {
        "hub_code": "ollkomHub",
        "sku_code": "airpods-sku",
        "available_quantity": 97
    },
    "meta": null
}