Admin APIProducts
Get a kit's component stock
For kit products: how many kits the components on hand allow, and each
component's stock. Empty for products without components. For a
product's own stock per location see GET .../products/{product_id}.
Authorization
bearer_auth AuthorizationBearer <token>
Authorization: Bearer <token>. Either a session access token from POST /auth/login (refresh it with POST /auth/refresh) or a store API token (mobi_st_…). A store API token works only for the store it was issued in, and can do at most what its issuing user can there, narrowed to the scopes it was issued with.
In: header
Path Parameters
store_id*string
Store id
Format
uuidproduct_id*string
Product id
Format
uuidResponse Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/stores/497f6eca-6276-4993-bfeb-53cbbbba6f08/products/497f6eca-6276-4993-bfeb-53cbbbba6f08/stock"{
"available": 0,
"components": [
{
"component": "string",
"component_id": "41afafe5-2a48-424a-baef-34c2ad44ef7b",
"on_hand": 0,
"required": 0,
"reserved": 0,
"sku": "string",
"stock": 0
}
],
"product_id": "0d012afa-f885-4e65-aeca-37e27701e2d1"
}{
"code": "not_found",
"details": {},
"error": "Order not found"
}{
"code": "not_found",
"details": {},
"error": "Order not found"
}{
"code": "not_found",
"details": {},
"error": "Order not found"
}{
"code": "not_found",
"details": {},
"error": "Order not found"
}{
"code": "not_found",
"details": {},
"error": "Order not found"
}