CheckInventoryResponse
Type: schema
TypeScript Definition
typescript
CheckInventoryResponse: {{
allowed_actions: components["schemas"]["InventoryAction"][];
shipment_items: components["schemas"]["AdminShipmentItem"][];
inventory_status: components["schemas"]["InventoryStatus"];
inventory_detail: {
product_id?: string;
variant_id?: string | null;
product_name?: string | null;
variant_name?: string | null;
sku?: string | null;
track_inventory?: boolean;
allow_backorder?: boolean;
requested_quantity?: number;
stock_quantity?: number;
inventory_status?: components["schemas"]["InventoryStatus"];
warehouses?: {
warehouse_id?: string;
warehouse_name?: string | null;
stock_quantity?: number;
inventory_status?: components["schemas"]["InventoryStatus"];
/** @description Stock at the warehouse, also returned as `stock_quantity`. */
quantity?: number;
/** @constant */
is_default?: false;
can_collect?: boolean | null;
can_ship_parcel?: boolean | null;
can_receive_stock?: boolean | null;
accepts_returns?: boolean | null;
is_checkout_point?: boolean | null;
/** @description Opening hours by day, when available. */
opening_hours?: {
[key: string]: unknown;
} | null;
}[];
/** @description Total stock quantity, also returned as `stock_quantity`. */
total_quantity?: number;
/** @description Quantity that can be fulfilled when stock is not tracked. */
allowed_quantity?: number;
packaging?: components["schemas"]["ProductPackaging"];
}[];
recommended_warehouses: {
id?: string;
name?: string;
inventory_status?: components["schemas"]["InventoryStatus"];
}[];
packing_detail_available: boolean;
order: {
order_number: string | null;
/** Format: date-time */
order_date: string | null;
order_status: components["schemas"]["AdminOrderStatus"];
payment_status: components["schemas"]["PaymentStatus"];
customer_name: string;
customer_id: string;
sub_total: number;
shipping_amount: number;
total_tax: number;
coupon_discount_amount: number;
grand_total: number;
coupon_code: string | null;
coupon_discount_percent: number | null;
};
};
/** CollectInStore */
}Component References
| Reference | Resolves To |
|---|---|
components["schemas"]["InventoryAction"] | InventoryAction |
components["schemas"]["AdminShipmentItem"] | AdminShipmentItem |
components["schemas"]["InventoryStatus"] | InventoryStatus |
components["schemas"]["ProductPackaging"] | ProductPackaging |
components["schemas"]["AdminOrderStatus"] | AdminOrderStatus |
components["schemas"]["PaymentStatus"] | PaymentStatus |
OpenAPI Schema
json
{
"type": "object",
"properties": {
"allowed_actions": {
"type": "array",
"items": {
"$ref": "#/components/schemas/InventoryAction"
}
},
"shipment_items": {
"type": "array",
"items": {
"$ref": "#/components/schemas/AdminShipmentItem"
}
},
"inventory_status": {
"$ref": "#/components/schemas/InventoryStatus"
},
"inventory_detail": {
"type": "array",
"items": {
"type": "object",
"properties": {
"product_id": {
"type": "string"
},
"variant_id": {
"type": [
"string",
"null"
]
},
"product_name": {
"type": [
"string",
"null"
]
},
"variant_name": {
"type": [
"string",
"null"
]
},
"sku": {
"type": [
"string",
"null"
]
},
"track_inventory": {
"type": "boolean"
},
"allow_backorder": {
"type": "boolean"
},
"requested_quantity": {
"type": "integer"
},
"stock_quantity": {
"type": "integer"
},
"inventory_status": {
"$ref": "#/components/schemas/InventoryStatus"
},
"warehouses": {
"type": "array",
"items": {
"type": "object",
"properties": {
"warehouse_id": {
"type": "string"
},
"warehouse_name": {
"type": [
"string",
"null"
]
},
"stock_quantity": {
"type": "integer"
},
"inventory_status": {
"$ref": "#/components/schemas/InventoryStatus"
},
"quantity": {
"description": "Stock at the warehouse, also returned as `stock_quantity`.",
"type": "integer"
},
"is_default": {
"type": "boolean",
"const": false
},
"can_collect": {
"type": [
"boolean",
"null"
]
},
"can_ship_parcel": {
"type": [
"boolean",
"null"
]
},
"can_receive_stock": {
"type": [
"boolean",
"null"
]
},
"accepts_returns": {
"type": [
"boolean",
"null"
]
},
"is_checkout_point": {
"type": [
"boolean",
"null"
]
},
"opening_hours": {
"description": "Opening hours by day, when available.",
"type": [
"object",
"null"
],
"additionalProperties": true
}
}
}
},
"total_quantity": {
"description": "Total stock quantity, also returned as `stock_quantity`.",
"type": "integer"
},
"allowed_quantity": {
"description": "Quantity that can be fulfilled when stock is not tracked.",
"type": "integer"
},
"packaging": {
"$ref": "#/components/schemas/ProductPackaging"
}
}
}
},
"recommended_warehouses": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"inventory_status": {
"$ref": "#/components/schemas/InventoryStatus"
}
}
}
},
"packing_detail_available": {
"type": "boolean"
},
"order": {
"type": "object",
"properties": {
"order_number": {
"type": [
"string",
"null"
]
},
"order_date": {
"type": [
"string",
"null"
],
"format": "date-time"
},
"order_status": {
"$ref": "#/components/schemas/AdminOrderStatus"
},
"payment_status": {
"$ref": "#/components/schemas/PaymentStatus"
},
"customer_name": {
"type": "string"
},
"customer_id": {
"type": "string"
},
"sub_total": {
"type": "number"
},
"shipping_amount": {
"type": "number"
},
"total_tax": {
"type": "number"
},
"coupon_discount_amount": {
"type": "number"
},
"grand_total": {
"type": "number"
},
"coupon_code": {
"type": [
"string",
"null"
]
},
"coupon_discount_percent": {
"type": [
"number",
"null"
]
}
},
"required": [
"order_number",
"order_date",
"order_status",
"payment_status",
"customer_name",
"customer_id",
"sub_total",
"shipping_amount",
"total_tax",
"coupon_discount_amount",
"grand_total",
"coupon_code",
"coupon_discount_percent"
]
}
},
"externalDocs": {
"url": "https://llm-docs.commercengine.io/admin-pos/schemas/CheckInventoryResponse"
},
"required": [
"packing_detail_available",
"order",
"inventory_status",
"shipment_items",
"recommended_warehouses",
"inventory_detail",
"allowed_actions"
],
"title": "CheckInventoryResponse"
}Auto-generated from OpenAPI spec and TypeScript definitions