ItemListingInventory
Type: schema
Description
The seller's inventory snapshot supplied with a marketplace listing. Its version is the stock version, independently of the listing's own event version.
TypeScript Definition
typescript
ItemListingInventory: {{
/** @description Null when the seller has no inventory settings. */
settings: {
/** @description Null when this item has no inventory settings. */
track_quantity?: boolean | null;
/** @description Null when this item has no inventory settings. */
track_lot_batch?: boolean | null;
/** @description Null when this item has no inventory settings. */
allow_backorder?: boolean | null;
/** @description Null when this item has no inventory settings. */
low_stock_threshold?: $Read<number | null>;
} | null;
/** @description One line per warehouse and lot batch. */
stock: {
sku?: $Read<string | null>;
/** @description The warehouse recorded in this store configuration, or null if its details are unavailable. */
warehouse?: {
id?: string | null;
name?: string | null;
gstin?: string | null;
city?: string | null;
address_line1?: string | null;
address_line2?: string | null;
landmark?: string | null;
pincode?: string | null;
state?: string | null;
contact_phone?: string | null;
contact_email?: string | null;
is_default?: boolean | null;
} | null;
/** Format: date */
opening_stock_date?: string | null;
warehouse_id: string;
warehouse_name?: $Read<string | null>;
received_quantity?: $Read<number>;
reserved_quantity?: $Read<number>;
sold_quantity?: $Read<number>;
adjusted_quantity?: $Read<number>;
/** @description Available stock quantity. */
stock_quantity: number;
lot_batch?: string | null;
/** Format: date */
mfg_date?: string | null;
/** Format: date */
exp_date?: string | null;
manufacturer?: string | null;
/** Format: date-time */
created_at?: $Read<string>;
/** Format: date-time */
modified_at?: $Read<string>;
}[];
source_version: components["schemas"]["SourceVersion"];
};
/**
* ItemMarketplaceListing
* @description A product's or variant's listing on a marketplace the store sells through: how it is listed there.
*/
}Component References
| Reference | Resolves To |
|---|---|
components["schemas"]["SourceVersion"] | SourceVersion |
OpenAPI Schema
json
{
"title": "ItemListingInventory",
"description": "The seller's inventory snapshot supplied with a marketplace listing. Its version is the stock version, independently of the listing's own event version.",
"type": "object",
"externalDocs": {
"url": "https://llm-docs.commercengine.io/storefront/schemas/ItemListingInventory",
"description": "API reference for the ItemListingInventory schema"
},
"required": [
"settings",
"stock",
"source_version"
],
"properties": {
"settings": {
"description": "Null when the seller has no inventory settings.",
"type": [
"object",
"null"
],
"properties": {
"track_quantity": {
"description": "Null when this item has no inventory settings.",
"type": [
"boolean",
"null"
]
},
"track_lot_batch": {
"description": "Null when this item has no inventory settings.",
"type": [
"boolean",
"null"
]
},
"allow_backorder": {
"description": "Null when this item has no inventory settings.",
"type": [
"boolean",
"null"
]
},
"low_stock_threshold": {
"description": "Null when this item has no inventory settings.",
"type": [
"number",
"null"
],
"readOnly": true
}
}
},
"stock": {
"description": "One line per warehouse and lot batch.",
"type": "array",
"items": {
"type": "object",
"required": [
"warehouse_id",
"stock_quantity"
],
"properties": {
"sku": {
"type": [
"string",
"null"
],
"readOnly": true
},
"warehouse": {
"description": "The warehouse recorded in this store configuration, or null if its details are unavailable.",
"type": [
"object",
"null"
],
"properties": {
"id": {
"type": [
"string",
"null"
]
},
"name": {
"type": [
"string",
"null"
]
},
"gstin": {
"type": [
"string",
"null"
]
},
"city": {
"type": [
"string",
"null"
]
},
"address_line1": {
"type": [
"string",
"null"
]
},
"address_line2": {
"type": [
"string",
"null"
]
},
"landmark": {
"type": [
"string",
"null"
]
},
"pincode": {
"type": [
"string",
"null"
]
},
"state": {
"type": [
"string",
"null"
]
},
"contact_phone": {
"type": [
"string",
"null"
]
},
"contact_email": {
"type": [
"string",
"null"
]
},
"is_default": {
"type": [
"boolean",
"null"
]
}
}
},
"opening_stock_date": {
"type": [
"string",
"null"
],
"format": "date"
},
"warehouse_id": {
"type": "string"
},
"warehouse_name": {
"type": [
"string",
"null"
],
"readOnly": true
},
"received_quantity": {
"type": "number",
"readOnly": true
},
"reserved_quantity": {
"type": "number",
"readOnly": true
},
"sold_quantity": {
"type": "number",
"readOnly": true
},
"adjusted_quantity": {
"type": "number",
"readOnly": true
},
"stock_quantity": {
"description": "Available stock quantity.",
"type": "number"
},
"lot_batch": {
"type": [
"string",
"null"
]
},
"mfg_date": {
"type": [
"string",
"null"
],
"format": "date"
},
"exp_date": {
"type": [
"string",
"null"
],
"format": "date"
},
"manufacturer": {
"type": [
"string",
"null"
]
},
"created_at": {
"type": "string",
"format": "date-time",
"readOnly": true
},
"modified_at": {
"type": "string",
"format": "date-time",
"readOnly": true
}
}
}
},
"source_version": {
"$ref": "#/components/schemas/SourceVersion"
}
}
}Auto-generated from OpenAPI spec and TypeScript definitions