List your allocations
Endpoint:GET /api/stock
Response
Get one variant
Endpoint:GET /api/stock/{variantId}
With an allocation
Without an allocation
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Read the units Wasmou has reserved for your account.
GET /api/stock
{
"status": "success",
"message": "Stock retrieved",
"data": [
{
"variant_id": 15,
"product_id": 15,
"product_name": "Microsoft Windows 10/11 Pro (license key)",
"variant_name": "Microsoft Windows 10|11 Pro (PC)",
"allocated": 12,
"used": 3,
"remaining": 9,
"status": "active",
"expires_at": null
}
]
}
| Field | Description |
|---|---|
allocated | Total units assigned to you. null when released. |
used | Units you already bought. |
remaining | Units you can buy right now. null when released (unrestricted). |
status | active, paused, expired, exhausted or released. |
expires_at | ISO 8601 date, or null. |
GET /api/stock/{variantId}
{
"status": "success",
"message": "Stock retrieved",
"data": {
"variant_id": 15, "allocated": 12, "used": 3, "remaining": 9,
"status": "active", "expires_at": null, "restricted": true
}
}
{
"status": "success",
"message": "No allocation for this variant (unrestricted)",
"data": { "variant_id": 15, "restricted": false }
}