Get stock levels
Returns the current stock levels and sellable availability for a single variant.
available is clamped to zero: max(0, on_hand − reserved − safety_stock) — this is the value an availability feed should publish.
Requires the agentic:inventory scope. The merchant is resolved from the token claims; a variant owned by another merchant returns 404.
Request
- Base URLhttps://{prefix}.api.sandbox.checkout.com
- AuthOAuth 2Client credentialsToken URLstringScopesagentic:inventory
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
The merchant-provided identifier for the variant.
Query parameters
Set expand=product to embed an additional product field alongside the stock fields, containing the variant's product knowledge (merchandising details such as title, description, and images). Setting this parameter does not change how available or the other stock fields are calculated. If product knowledge has not been set for the variant, the product field is omitted.
Response
The current stock levels for the variant.
Example response
{
"variant_id": "var_123",
"on_hand": 10,
"reserved": 2,
"safety_stock": 1,
"available": 7,
"state": "in_stock",
"source": "managed",
"created_on": "2026-07-01T09:15:00.0000000+00:00",
"modified_on": "2026-07-13T14:02:11.0000000+00:00",
"product": {
"variant_id": "var_123",
"title": "Classic leather belt, brown",
"description": "A full-grain leather belt with a brushed nickel buckle.",
"product_url": "https://merchant.example.com/products/classic-leather-belt-brown",
"image_url": "https://merchant.example.com/images/belt-brown-main.jpg",
"additional_image_urls": [
"https://merchant.example.com/images/belt-brown-alt1.jpg"
],
"video_url": "https://merchant.example.com/videos/belt-brown.mp4",
"model_3d_url": "https://merchant.example.com/models/belt-brown.glb",
"sku": "BELT-BRN-001",
"gtin": "00012345678905",
"mpn": "MPN-4471",
"brand": "Acme Leathercraft",
"category": "Apparel & Accessories > Belts",
"price": {
"amount": 1999,
"currency": "USD"
},
"sale_price": {
"amount": 1999,
"currency": "USD"
},
"sale_price_starts_at": "2026-08-01T00:00:00.0000000+00:00",
"sale_price_ends_at": "2026-08-31T23:59:59.0000000+00:00",
"group_id": "grp_belt_classic",
"group_title": "Classic leather belt",
"color": "Brown",
"size": "M",
"size_system": "US",
"gender": "unisex",
"condition": "new",
"material": "Full-grain leather",
"age_group": "adult",
"length": 110,
"width": 3.5,
"height": 0.5,
"dimension_unit": "cm",
"weight": 0.2,
"weight_unit": "kg",
"expiration_date": "2027-01-01T00:00:00.0000000+00:00",
"harmonized_system_code": "4203.30",
"country_of_origin": "IT",
"seller_name": "Acme Leathercraft Ltd",
"seller_url": "https://acme-leathercraft.example.com",
"seller_privacy_policy": "https://acme-leathercraft.example.com/privacy",
"seller_tos": "https://acme-leathercraft.example.com/terms",
"created_on": "2026-08-01T09:15:00.0000000+00:00",
"modified_on": "2026-08-13T14:02:11.0000000+00:00",
"_links": {
"self": {
"href": "https://api.checkout.com/inventory/var_123",
"actions": [
"GET"
],
"types": [
"application/json"
]
},
"set": {
"href": "https://api.checkout.com/inventory/var_123",
"actions": [
"GET"
],
"types": [
"application/json"
]
},
"delete": {
"href": "https://api.checkout.com/inventory/var_123",
"actions": [
"GET"
],
"types": [
"application/json"
]
}
}
},
"_links": {
"self": {
"href": "https://api.checkout.com/inventory/var_123",
"actions": [
"GET"
],
"types": [
"application/json"
]
},
"set": {
"href": "https://api.checkout.com/inventory/var_123",
"actions": [
"GET"
],
"types": [
"application/json"
]
}
}
}Changes
No recorded changes to this operation across all 1 revision of this API.