json icon

Get Stock Level

v1.0.0queries

Query to fetch the current available stock level for a product.

1{
2  "$schema": "http://json-schema.org/draft-07/schema#",
3  "title": "GetStockLevel",
4  "description": "Query to fetch the current available stock level for a product, and the level returned",
5  "type": "object",
6  "properties": {
7    "request": {
8      "type": "object",
9      "properties": {
10        "productId": { "type": "string", "format": "uuid" }
11      },
12      "required": ["productId"]
13    },
14    "response": {
15      "type": "object",
16      "properties": {
17        "productId": { "type": "string", "format": "uuid" },
18        "available": { "type": "integer", "minimum": 0 },
19        "reserved": { "type": "integer", "minimum": 0 }
20      },
21      "required": ["productId", "available"]
22    }
23  },
24  "required": ["request", "response"]
25}
26

Details

Format
JSON Schema
Resource
queries
Filename
schema.json

Versions