Connect
- List
- https://api.sondahub.com/v1/store/warehouses
- One record
- https://api.sondahub.com/v1/store/warehouses/{id}
- OpenAPI 3
- https://api.sondahub.com/v1/store/openapi.json
- GraphQL
- https://api.sondahub.com/v1/store/graphql
- JSON file
- https://api.sondahub.com/data/store/warehouses.json
- MCP
- https://api.sondahub.com/mcp · list_records
curl "https://api.sondahub.com/v1/store/warehouses?limit=3"
Sample records
Records 1 to 3 of 3, exactly as GET /v1/store/warehouses/{id} answers them. The data file holds all of them.
[
{
"id": 1,
"created_at": "2025-04-19T12:00:00Z",
"updated_at": "2025-04-19T12:00:00Z",
"code": "MIA",
"name": "Miami Fulfillment Center",
"address": {
"line1": "5523 Meadow Ct",
"city": "Miami",
"region": "FL",
"postal_code": "34680",
"country": "US",
"line2": "Suite 577"
},
"timezone": "America/New_York"
},
{
"id": 2,
"created_at": "2025-04-19T12:00:00Z",
"updated_at": "2025-04-19T12:00:00Z",
"code": "AMS",
"name": "Amsterdam Fulfillment Center",
"address": {
"line1": "8532 River Ave",
"city": "Amsterdam",
"region": "North Holland",
"postal_code": "GB03TR",
"country": "NL"
},
"timezone": "Europe/Amsterdam"
},
{
"id": 3,
"created_at": "2025-04-19T12:00:00Z",
"updated_at": "2025-04-19T12:00:00Z",
"code": "SIN",
"name": "Singapore Fulfillment Center",
"address": {
"line1": "3785 Mill Ln",
"city": "Singapore",
"region": "Singapore",
"postal_code": "PRW97W",
"country": "SG",
"line2": "Apt 3"
},
"timezone": "Asia/Singapore"
}
]
Fields
| Field | Type | Notes |
|---|---|---|
idread-only | int | Assigned by the server. Seed records keep their ids across restarts; records you create continue after the seed. |
created_atread-only | datetime | When the record was created (ISO 8601, UTC). |
updated_atread-only | datetime | When the record last changed. |
coderequired | string | |
namerequired | string | |
address | json { line1, city, region, postal_code, country } | |
timezone | string |
Relations: inventory → the inventory whose warehouse_id is this warehouse. Use ?expand=inventory to embed them, or the nested routes.
Endpoints
Try it
curl "https://api.sondahub.com/v1/store/warehouses?limit=3"
curl https://api.sondahub.com/v1/store/warehouses/1
curl "https://api.sondahub.com/v1/store/warehouses/1/inventory?limit=5"
curl -i -X POST https://api.sondahub.com/v1/store/warehouses \
-H "Content-Type: application/json" \
-d '{"code":"MIA","name":"A name"}'
curl "https://api.sondahub.com/v1/store/warehouses?sort=-id&limit=3" \ -H "X-Sondahub-Session: THE_TOKEN_FROM_THE_CREATE"
curl -X PATCH https://api.sondahub.com/v1/store/warehouses/1 \
-H "Content-Type: application/json" \
-d '{"code":"Changed code"}'
curl -X DELETE https://api.sondahub.com/v1/store/warehouses/4 \ -H "X-Sondahub-Session: THE_TOKEN_FROM_THE_CREATE"
Query recipes
Every list option works on warehouses; these are ready to paste. All the options.
| What | Request |
|---|---|
| Page 2, 50 at a time (of 3) | /v1/store/warehouses?page=2&limit=50 |
| Newest first by created at | /v1/store/warehouses?sort=-created_at&limit=5 |
| Code contains “mia” | /v1/store/warehouses?code_like=mia |
| Full-text search | /v1/store/warehouses?q=mia |
| Only some fields | /v1/store/warehouses?fields=id,code&limit=5 |
| Its inventory (nested route) | /v1/store/warehouses/1/inventory?limit=5 |
| Just the count | /v1/store/warehouses?limit=1&fields=id |
GraphQL
The same warehouses as the warehouses query on https://api.sondahub.com/v1/store/graphql, and one warehouse as warehouse(id: 1). Introspection is on. More on the GraphQL API.
{
warehouses(limit: 3, sort: "-id") {
total
data {
id code name timezone
inventory(limit: 2) { id }
}
}
}
curl https://api.sondahub.com/v1/store/graphql -H "Content-Type: application/json" -d '{"query": "{ warehouses(limit: 3, sort: \"-id\") { total data { id code name timezone inventory(limit: 2) { id } } } }"}'
From an AI agent (MCP)
The MCP server reaches the same rows with list_records, get_record, create_record, update_record and delete_record, and as the resource sondahub://store/warehouses.
curl https://api.sondahub.com/mcp \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"list_records","arguments":{"api":"store","collection":"warehouses","limit":3}}}'
More in the Store API
categories (8) · products (2,000) · customers (800) · orders (3,000) · order items (6,219) · reviews (2,500) · inventory (6,000) · carts (200)
The live streams, and the whole API on one page: Store API. Other worlds: fake IoT API, fake banking API, fake social media API, fake helpdesk API, fake flight booking API, fake user directory API.