Download OpenAPI specification:
Every API request should be sent with a valid token. The token can be fetched by registering
a remote application in your account's Settings -> Users & Groups -> Remote applications.
The token of the remote application should be passed along with the header X-Auth-Token
and also make sure the remote application is authorized with necessary permissions.
API related to inventory items, including item creation, retrieval, updates, deletion, pricing, variants, ratings, movement, and related item management.
Deletes an existing item from the inventory.
Depending on the current state of the item, the item may either be permanently removed or marked as deleted. Items that have inventory history or serve as the primary variant are soft deleted to preserve data integrity.
Associated search index entries and item image metadata are also removed.
item_id path parameter must be a valid item ID.Items/delete is needed
| item_id required | integer Example: 101 Unique identifier of the item to delete. |
{- "message": "string"
}Retrieves detailed information for a specific item.
This endpoint returns complete information about an item, including pricing, inventory, properties, offers, and optional resources such as descriptions, images, videos, ratings, and variants.
item_id path parameter is required.variants is requested, the response includes the selected item and
all of its variants.variants is requested, the properties field is returned as an
array of property objects instead of a key/value mapping.Any of the following permissions are needed
Items/accessItems/manageItems/manage-content| item_id required | integer Example: 101 Unique identifier of the item. |
| description | boolean Example: description=true Include the plain-text item description. |
| descriptions | boolean Example: descriptions=true Include all available item descriptions. |
| images | boolean Example: images=true Include image metadata. |
| videos | boolean Example: videos=true Include video metadata. |
| ratings | boolean Example: ratings=true Include rating details. |
| variants | boolean Example: variants=true Include all variants of the item. |
| sys_props | string Example: sys_props=1 Include or filter system properties. |
{- "canonical_name": "Dell Inspiron 15",
- "code": "ITEM-001",
- "combo_items": [
- {
- "item": { },
- "quantity": 0
}
], - "combo_packs": [
- { }
], - "description": "string",
- "descriptions": { },
- "id": 101,
- "images": { },
- "inv_parent_id": 0,
- "inv_ratio": 0,
- "is_public": true,
- "launch_date": "2019-08-24",
- "name": "Laptop",
- "num_ratings": 0,
- "num_variants": 0,
- "offers": {
- "sub_title": "string",
- "title": "string",
- "valid_from": "2019-08-24T14:15:22Z",
- "valid_till": "2019-08-24T14:15:22Z"
}, - "opening_stock": 0,
- "properties": { },
- "purchase_discount": 0,
- "purchase_price": 0,
- "rating": 0,
- "ratings": { },
- "sale_discount": 0,
- "sale_price": 0,
- "short_description": "string",
- "stock": 0,
- "stock_tat": 0,
- "stock_threshold": 0,
- "sub_title": "Gaming Laptop",
- "type": "Inventory",
- "type_id": 1,
- "uom": "Nos",
- "variants": [
- { }
]
}Updates an existing item and its associated information.
This endpoint supports updating item details such as pricing, discounts, stock information, unit of measure, item type, visibility, descriptive information, and custom properties. Depending on the supplied parameters, the update may also be applied to all variants of the item.
If the variant_face parameter is supplied, the request updates only the
variant face information instead of performing a general item update.
update_variants option.item_id path parameter must be a valid numeric item ID.purchase_price or purchase_discount requires authorization
to access purchase prices.sale_discount or sale_discount_pr may be supplied.purchase_discount or purchase_discount_pr may be supplied.update_variants is enabled, supported updates are applied to all
variants belonging to the same item.Items/manage is needed
| item_id required | integer Example: 101 Unique identifier of the item to update. |
| canonical_name | string Canonical name. |
| code | string Item code. |
| is_public | boolean Whether the item is publicly visible. |
| launch_date | string <date-time> Launch date. |
| name | string Item name. |
| opening_stock | number Opening stock quantity. |
| purchase_discount | number Purchase discount percentage. |
| purchase_discount_pr | number Purchase discount amount. |
| purchase_price | number Purchase price. |
| sale_discount | number Sale discount percentage. |
| sale_discount_pr | number Sale discount amount. |
| sale_price | number Sale price. |
| short_description | string Short description. |
| stock_tat | number Stock turnaround time. |
| stock_threshold | number Stock threshold. |
| sub_title | string Item subtitle. |
| type | string Item type. |
| uom | string Unit of measure. |
| update_variants | boolean Apply supported updates to all variants of the item. |
| variant_face | string Update only the variant face. |
{- "canonical_name": "string",
- "code": "string",
- "is_public": true,
- "launch_date": "2019-08-24T14:15:22Z",
- "name": "string",
- "opening_stock": 0,
- "purchase_discount": 0,
- "purchase_discount_pr": 0,
- "purchase_price": 0,
- "sale_discount": 0,
- "sale_discount_pr": 0,
- "sale_price": 0,
- "short_description": "string",
- "stock_tat": 0,
- "stock_threshold": 0,
- "sub_title": "string",
- "type": "string",
- "uom": "string",
- "update_variants": true,
- "variant_face": "string"
}{- "message": "string"
}Creates or updates a combo item by associating one or more existing items with a parent item.
This endpoint validates that the parent item exists before updating its combo definition. Items that are already configured as combo items are not allowed to be reused as components of another combo.
item_id path parameter identifies the parent combo item.items collection.Items/manage is needed
| item_id required | integer Example: 101 Unique identifier of the parent combo item. |
| items required | Array of objects List of items to be associated with the combo. |
{- "items": [
- { }
]
}{- "message": "string"
}Retrieves the inventory movement history for an item.
This endpoint returns the inward and outward inventory transactions for the specified item. Each movement corresponds to a claim transaction and can include quantities, damaged quantities, application information, descriptions, remarks, and dates.
The response can be customized by selecting specific fields and applying filters.
item_id must be a valid integer.date.ascdate.descAny of the following permissions are needed
Items/accessItems/manage| item_id required | integer Example: 101 Item identifier. |
| fields | string Example: fields=date,direction,quantity,remarks Comma-separated list of fields to include. Supported values:
|
| max | integer Default: 100 Example: max=50 Maximum number of records to return. |
| sort | string Enum: "date.asc" "date.desc" Example: sort=date.desc Sort order. |
| claim_id | integer Filter by claim identifier. |
| app | string Filter by application identifier. |
| direction | string Enum: "inward" "outward" Filter by movement direction. |
| date | string Filter by movement date. |
[- {
- "app_id": 4,
- "claim_id": 45,
- "damaged_qty": 0,
- "date": "2026-08-01T11:20:00",
- "description": "Sales Invoice INV-1001",
- "direction": "outward",
- "id": 215,
- "quantity": 5,
- "remarks": "Customer order"
}, - {
- "app_id": 5,
- "claim_id": 46,
- "damaged_qty": 1,
- "date": "2026-08-02T09:10:00",
- "description": "Purchase Receipt PR-210",
- "direction": "inward",
- "id": 216,
- "quantity": 10
}
]Retrieves the opening stock details for an item on a specified date.
This endpoint calculates the opening stock by combining the item's initial opening stock with all inward and outward inventory movements recorded before the specified date. Optionally, it can also return a movement summary between the specified date and another date.
date query parameter is mandatory.summary_till is provided, an additional movement summary is returned
for the period between date and summary_till.Any of the following permissions are needed
Items/accessItems/manage| item_id required | integer Example: 101 Unique identifier of the item. |
| date required | string <date-time> Example: date=2026-08-01T00:00:00 Date for which the opening stock is calculated. |
| summary_till | string <date-time> Example: summary_till=2026-08-31T23:59:59 Returns inventory movement summary from |
{- "inward": 350,
- "outward": 120
}Retrieves the sale and/or purchase price details for one or more items.
This endpoint returns the current or historical pricing information for items, including price, discount, discount percentage, discount mode, and the date the price was last updated.
For a single item, both sale and purchase prices are returned. For multiple items, the response can be filtered to include only sale prices, only purchase prices, or both.
item_id path parameter accepts a single item ID or a comma-separated
list of item IDs.date parameter retrieves the price that was effective on
the specified date.type parameter can be used to retrieve only
sale prices or purchase prices.Any of the following permissions are needed
Items/accessItems/manage| item_id required | string Example: 101 Item ID or comma-separated list of item IDs. |
| date | string <date-time> Example: date=2026-08-01T10:00:00 Retrieve the price effective on the specified date. |
| type | string Enum: "sale" "purchase" "sale,purchase" Example: type=sale Price types to retrieve. Applicable only when multiple item IDs are specified. |
[- {
- "id": 101,
- "sale_price": {
- "discount": 100,
- "discount_mode": "amount",
- "discount_pr": 0,
- "price": 1200,
- "updated_date": "2026-08-01T09:30:00"
}
}, - {
- "id": 102,
- "sale_price": {
- "discount": 0,
- "discount_mode": "percentage",
- "discount_pr": 5,
- "price": 850,
- "updated_date": "2026-08-01T09:30:00"
}
}
]Retrieves the properties associated with one or more items.
This endpoint returns the list of properties and their values for the specified item IDs. It supports retrieving either all properties or only the varying properties across multiple items.
item_id path parameter accepts a single item ID or a comma-separated
list of item IDs._, the item ID must be supplied using the
id query parameter.varying=true returns only properties whose values differ among
the specified items.sys_props parameter to include system properties.Any of the following permissions are needed
Items/accessItems/manageItems/manage-content| item_id required | string Example: 101 Item ID, a comma-separated list of item IDs, or |
| id | string Example: id=101,102 Required only when the path parameter is |
| varying | boolean Example: varying=true Return only properties whose values vary across the specified items. |
| sys_props | string Example: sys_props=1 Controls inclusion of system properties. Values:
|
[- {
- "id": 101,
- "properties": [
- {
- "name": "Color",
- "values": [
- "Black"
]
}, - {
- "name": "Size",
- "values": [
- "Large"
]
}
]
}, - {
- "id": 102,
- "properties": [
- {
- "name": "Color",
- "values": [
- "White"
]
}, - {
- "name": "Size",
- "values": [
- "Medium"
]
}
]
}
]Retrieves the variants associated with one or more items.
This endpoint returns all variants belonging to the specified item. Each
variant includes its identifier, code, property values, and inventory
information. Additional item fields can be requested using the fields
query parameter.
When the ids query parameter is specified, only the variant item IDs are
returned instead of the complete variant details.
is_face field.Any of the following permissions are needed
Items/accessItems/manageItems/manage-content| item_id required | string Example: 101 Item ID or comma-separated list of item IDs whose variants are to be retrieved. |
| ids | boolean Example: ids=true Return only variant item IDs instead of complete variant details. |
| fields | string Example: fields=sale_price,stock,uom Comma-separated list of additional item fields to include in each variant. |
| sys_props | string Example: sys_props=1 Include or filter system properties. |
[- 101,
- 102,
- 103
]Retrieves multiple collections of inventory items in a single request.
This endpoint groups items based on one or more item types or custom collection filters and returns the matching items for each collection.
Collections can be generated by supplying item type IDs or by defining custom collection filters using query parameters. Each collection is returned as a separate list of items.
If no item types or collections are specified, the endpoint automatically retrieves items for every available item type.
Collections can be requested in two ways:
max is not supplied, the endpoint returns up to 4 items for
each collection.Any of the following permissions are needed
Items/accessItems/manage| type_ids | string Example: type_ids=1,2,3 Comma-separated list of item type IDs. |
| max | integer Example: max=4 Maximum number of items to return for each collection. |
| coll.{collection_name} | string URL-encoded query string defining filters for a custom collection. |
| type.{type_id} | string Adds an individual item type as a collection. |
{- "1": [
- {
- "code": "WM-001",
- "id": 101,
- "name_unique": "Wireless Mouse",
- "num_ratings": 125,
- "rating": 4.8,
- "sale_discount": 50,
- "sale_price": 799,
- "stock": 120,
- "uom": "unit"
}
], - "Featured": [
- {
- "code": "KB-001",
- "id": 205,
- "name_unique": "Mechanical Keyboard",
- "num_ratings": 87,
- "rating": 4.9,
- "sale_discount": 100,
- "sale_price": 2499,
- "stock": 45,
- "uom": "unit"
}
]
}Deletes one or more inventory items in a single request.
The endpoint accepts a comma-separated list of item IDs and attempts to remove each item from the inventory.
Before deleting an item, the system checks whether it has been referenced by any inventory claims. Items that have never been claimed are permanently deleted along with their associated inventory records, pricing, custom properties and resource references.
Items that are already referenced by claims cannot be permanently removed.
Instead, they are marked as deleted by setting the is_deleted flag and
clearing the item code, allowing historical claim records to remain valid.
Associated item images and search index entries are also removed after the deletion request is processed.
id query parameter is mandatory.is_deleted flag set to true and
their item code cleared.Items/delete is needed
| id required | string Example: id=101,102,103 Comma-separated list of item IDs to delete. |
{- "message": "string"
}Retrieves inventory items based on the supplied filters.
This endpoint returns one or more items from the inventory and supports filtering, searching, sorting, pagination and selective field retrieval.
Depending on the supplied parameters, the endpoint can also generate search suggestions, export item data, include variants, custom properties and active offers.
When the search parameter is supplied, the endpoint performs a
full-text search across inventory items.
Search results are ordered by relevance by default and support
continuation using the page parameter.
Supplying the download query parameter switches the endpoint into
export mode. Instead of returning normal API results, the endpoint
prepares the selected item data for download.
Download is available only for authenticated users.
Include the variants field together with name_unique to retrieve
variant information for each item.
page token.Any of the following permissions are needed
Items/accessItems/manageItems/manage-content| search | string Full-text search query. |
| suggest | boolean Return search suggestions instead of search results. |
| fields | string Example: fields=id,name,code,sale_price Comma-separated list of fields to include in the response. |
| max | integer Maximum number of items to return. |
| page | string Pagination token returned by a previous search request. |
| sort | string Sort order for the returned items. |
| download | boolean Export matching items instead of returning the normal API response. |
[- {
- "code": "WM-001",
- "id": 101,
- "name": "Wireless Mouse",
- "sale_price": 799,
- "stock": 120,
- "type": "Electronics"
}, - {
- "code": "KB-001",
- "id": 102,
- "name": "Keyboard",
- "sale_price": 1299,
- "stock": 45,
- "type": "Electronics"
}
]Creates a new inventory item.
This endpoint registers a new item in the inventory and returns the unique identifier of the newly created item.
The item must have a type and name. If the specified item type does not already exist, the system automatically creates it before creating the item.
The endpoint supports defining pricing information, discounts, inventory settings, unit of measurement, searchable descriptions, visibility options and custom properties during item creation.
type and name are mandatory.opening_stock is specified, the launch date is automatically
initialized.uom is omitted, the default unit unit is used.description is supplied, it is stored separately after the item
has been created.Items/manage is needed
| canonical_name | string Canonical name used for search and indexing. |
| code | string Optional item code or SKU. |
| description | string Detailed description stored separately from the main item. |
| is_public | boolean Indicates whether the item is publicly visible. |
| name required | string Unique name of the item. |
| opening_stock | number Initial stock quantity. |
object Custom item properties. | |
| purchase_discount | number Fixed purchase discount. |
| purchase_discount_pr | number Percentage purchase discount. |
| purchase_price | number Purchase cost of the item. |
| sale_discount | number Fixed sale discount. |
| sale_discount_pr | number Percentage sale discount. |
| sale_price | number Selling price of the item. |
| short_description | string Short searchable description. |
| stock_tat | number Stock turnaround time. |
| stock_threshold | number Minimum stock level before the item is considered low in stock. |
| sub_title | string Optional subtitle displayed with the item. |
| type required | string Item type. A new type is created automatically if it does not already exist. |
| uom | string Unit of Measurement. Defaults to |
{- "canonical_name": "wireless-mouse",
- "code": "WM-001",
- "description": "Premium wireless mouse with silent clicks.",
- "is_public": true,
- "name": "Wireless Mouse",
- "opening_stock": 100,
- "properties": {
- "Brand": [
- "Logitech"
], - "Color": [
- "Black"
], - "Connectivity": [
- "Bluetooth"
]
}, - "purchase_discount": 20,
- "purchase_discount_pr": 2,
- "purchase_price": 650,
- "sale_discount": 50,
- "sale_discount_pr": 5,
- "sale_price": 799,
- "short_description": "Ergonomic wireless mouse",
- "stock_tat": 2,
- "stock_threshold": 10,
- "sub_title": "Bluetooth Mouse",
- "type": "Electronics",
- "uom": "unit"
}{- "id": 101
}Creates one or more new inventory items by duplicating existing items.
Each duplicated item inherits the source item's configuration, including item type, pricing, inventory settings, unit of measurement and custom properties. Additional properties can be applied to every duplicated item, while existing properties may be overridden or removed.
This endpoint can also operate in clone mode by supplying the
clone query parameter. In clone mode, item media such as images are
copied to the newly created items in addition to the item details.
items field is mandatory.Items/manage is needed
| clone | boolean Enables clone mode. When present, associated item media is copied to the newly created items. |
| code_suffix | string Suffix appended to the duplicated item code. |
object Properties that will be added to every duplicated item. | |
required | Array of objects List of items to duplicate. |
| name_suffix | string Suffix appended to the duplicated item name. |
object Properties to add, replace or remove during duplication. |
{- "code_suffix": "-COPY",
- "common_properties": {
- "Warehouse": [
- "Chennai"
]
}, - "items": [
- {
- "id": 101
}, - {
- "id": 105
}
], - "name_suffix": " - Copy",
- "new_properties": {
- "Brand": [
- "Logitech"
], - "Category": [
- "Accessories"
]
}
}{- "101": 220,
- "105": 221
}Performs bulk price updates for items that match the specified filters.
This endpoint allows updating sale or purchase prices and discounts for multiple items in a single request. It also supports saving, executing, and deleting reusable bulk update templates.
title and action
parameters.| action | string Enum: "save" "run" "delete" Template action. |
| set.purchase_discount | number Fixed purchase discount amount. |
| set.purchase_discount_pr | number Purchase discount percentage. |
| set.purchase_price | number New purchase price. |
| set.sale_discount | number Fixed sale discount amount. |
| set.sale_discount_pr | number Sale discount percentage. |
| set.sale_price | number New sale price. |
| title | string Template name used for saving, executing, or deleting a bulk update template. |
{- "brand": "Samsung",
- "category": "Electronics",
- "set.sale_price": 150
}{- "num": 42
}Retrieves all saved bulk price update templates.
This endpoint returns the list of templates stored for bulk price update operations. Each template contains the saved filters, pricing mode, and pricing values that can later be executed or modified.
[- {
- "discount_pr": "10",
- "filters": "category=Electronics&brand=Samsung",
- "price": "1000",
- "sale_purchase": "sale",
- "title": "Festival Offer"
}, - {
- "filters": "supplier=ABC",
- "price": "750",
- "sale_purchase": "purchase",
- "title": "Purchase Update"
}
]Retrieves item property information used throughout the inventory.
This endpoint can return either:
Property values are aggregated across all matching items, making this endpoint suitable for building property filters, faceted search, product filtering, and analytics.
When a search query is provided, only properties belonging to the matching items are returned.
The response also includes a summary object containing:
fields parameter is not supported and returns an error.only_name=true returns only property names.detailed=true returns additional property metadata.sys_props can be used to include system-defined properties.| only_name | boolean Example: only_name=true Return only property names. |
| detailed | boolean Example: detailed=true Include detailed information for property names. |
| sys_props | boolean Example: sys_props=true Include system-defined properties. |
| search | string Example: search=iphone 16 Search items and return aggregated properties for matching results. |
| search_toks | string Example: search_toks=iphone apple Pre-tokenized search string. |
{- "Brand": {
- "Apple": 125,
- "Samsung": 84
}, - "Color": {
- "Black": 76,
- "Blue": 42,
- "White": 35
}, - "__*summary*__": {
- "num_items": 247,
- "sale_price": {
- "avg": 685.45,
- "max": 1599,
- "min": 299
}, - "search_toks": "iphone apple"
}
}Deletes an existing item property.
This endpoint removes an item property using its property name. Any associated property asset files are also removed if they exist.
| property_name required | string Example: Color Name of the item property to delete. |
{- "success": true
}Updates an existing item property.
This endpoint allows modifying the name or visibility of an item property. Only the provided fields are updated.
name or is_public must be provided.| property_name required | string Example: Color Name of the item property to update. |
| is_public | boolean Whether the property is publicly visible. |
| name | string New name for the item property. |
{- "is_public": true,
- "name": "Colour"
}{- "success": true
}Retrieves property values for one or more items.
This endpoint returns the values associated with one or more item properties for the specified item IDs. It can retrieve values for a specific property or for all properties.
* as the property name.item_id query parameter is mandatory.property_name to * to retrieve all properties.sys_props parameter controls inclusion of system properties.Any of the following permissions are needed
Items/accessItems/manage| property_name required | string Example: Color Property name, a comma-separated list of property names, or |
| item_id required | string Example: item_id=101,102,103 Comma-separated list of item IDs. |
| sys_props | string Example: sys_props=1 Include or filter system properties. |
[- {
- "code": "ITEM-001",
- "id": 101,
- "name": "Laptop",
- "prop_name": "Color",
- "value": "Black"
}, - {
- "code": "ITEM-002",
- "id": 102,
- "name": "Monitor",
- "prop_name": "Color",
- "value": "White"
}
]Deletes an existing item type.
If the item type is not referenced by any items, it is permanently removed. Otherwise, it is soft deleted by marking it as deleted and renaming it to maintain uniqueness.
After deletion, the item type cache and search index are updated.
type_id path parameter must be a valid integer.Items/manage is needed
| type_id required | integer Example: 1 Unique identifier of the item type. |
{- "message": "string"
}Updates an existing item type.
This endpoint allows modifying the name, description, and public visibility of an item type. At least one updatable field must be supplied in the request.
After a successful update, the item type cache is cleared. If the name or description is modified, the search index is also updated.
type_id path parameter must be a valid integer.type, description, or is_public must be supplied.is_public value accepts true, false, 1, or 0.Items/manage is needed
| type_id required | integer Example: 1 Unique identifier of the item type. |
| description | string New description for the item type. |
| is_public | boolean Whether the item type is publicly visible. |
| type | string New item type name. |
{- "description": "Electronic items and accessories.",
- "is_public": true,
- "type": "Electronics"
}{- "message": "string"
}Retrieves the list of available item types.
This endpoint returns item types that can be assigned to items. Anonymous users receive only public item types, while authenticated users can retrieve all available item types. Deleted item types are excluded by default unless explicitly requested.
include_deleted is specified.is_public field by supplying
inc_public_acc.Any of the following permissions are needed
Items/accessItems/manage| include_deleted | boolean Include deleted item types in the response. |
| inc_public_acc | boolean Example: inc_public_acc=true Include the |
[- {
- "description": "Electronic items and accessories.",
- "id": 1,
- "is_public": true,
- "type": "Electronics"
}
]Creates one or more item types.
This endpoint allows creating either a single item type or multiple item
types in a single request. A request must contain either the type
parameter or the types collection, but not both.
After a successful creation, the item type search index and cached item type list are automatically updated.
type or types.type and types is not allowed.Items/manage is needed
| description | string Description of the item type. |
| type required | string Name of the item type. |
{- "types": [
- { }
]
}{- "id": 15
}Deletes an existing inventory claim.
Depending on the claim date and the requesting application, the claim is either deleted directly or automatically reversed by creating a new claim with the opposite direction. All associated inventory counts are updated accordingly.
When a claim is deleted on the same day it was created (or by the owning application), the claimed items are removed and the claim is permanently deleted. Otherwise, a reversal claim is created to preserve inventory history.
claim_id path parameter must be a valid integer.Items/claim is needed
| claim_id required | integer Example: 101 Unique identifier of the claim. |
{- "message": "string"
}Retrieves detailed information about a specific inventory claim.
The response includes claim metadata, application information, formatted description and URL (when available), and the list of claimed items associated with the claim.
claim_id path parameter must be a valid integer.Any of the following permissions are needed
Items/claimItems/accessItems/manage| claim_id required | integer Example: 101 Unique identifier of the claim. |
{- "app_code": "string",
- "app_name": "string",
- "date": "2019-08-24T14:15:22Z",
- "description": "string",
- "direction": "inward",
- "items": [
- { }
], - "provider_code": "string",
- "provider_name": "string",
- "remarks": "string",
- "url": "string"
}Updates the details of an existing inventory claim.
This endpoint allows modifying the claim date, remarks, and additional metadata associated with a claim. When the claim date changes, the corresponding monthly inventory summaries and inventory count tracking are updated automatically.
claim_id path parameter must be a valid integer.Items/claim is needed
| claim_id required | integer Example: 101 Unique identifier of the claim. |
| date | string <date-time> Updated claim date. |
| remarks | string Updated remarks for the claim. |
{- "date": "2019-08-24T14:15:22Z",
- "remarks": "string"
}{- "message": "string"
}Removes an item from an existing claim.
The endpoint validates that the claim belongs to the authenticated application and that the specified item is part of the claim before removing it. Inventory counts, monthly inventory summaries, and stock calculations are automatically updated. If offer recalculation is requested, updated offer information is also returned.
claim_id path parameter identifies the claim.item_id path parameter identifies the claimed item to remove.apply_offers request parameter is supplied, the response
includes updated offer information.Items/claim is needed
| claim_id required | integer Example: 1001 Unique identifier of the claim. |
| item_id required | integer Example: 101 Unique identifier of the claimed item. |
| apply_offers | boolean Example: apply_offers=true Recalculate applicable offers after removing the item. |
{- "old_quantity": 5
}Updates the quantity or damaged quantity of an item that has already been added to an inventory claim.
The endpoint recalculates inventory counts, updates monthly inventory statistics, and optionally recalculates applicable offers.
claim_id and item_id path parameters identify the claimed item.quantity or damaged_qty must be supplied.Items/claim is needed
| claim_id required | integer Example: 101 Unique identifier of the claim. |
| item_id required | integer Example: 25 Unique identifier of the claimed item. |
| apply_offers | boolean Recalculate and return applicable offers. |
| damaged_qty | number Updated damaged quantity. |
| quantity | number Updated claimed quantity. |
{- "apply_offers": true,
- "damaged_qty": 0,
- "quantity": 0
}{- "offer": { },
- "old_damaged_qty": 0,
- "old_quantity": 0
}Retrieves the list of items associated with a specific inventory claim.
The response includes all claimed items along with their quantities and, when applicable, the combo item composition for items that are configured as combos.
claim_id path parameter must be a valid integer.Any of the following permissions are needed
Items/claimItems/accessItems/manage| claim_id required | integer Example: 101 Unique identifier of the claim. |
[- {
- "combo": [
- {
- "code": "string",
- "count": 0,
- "id": 0,
- "name": "string",
- "num_variants": 0,
- "type": "string"
}
], - "damaged_qty": 0,
- "id": 0,
- "quantity": 0
}
]Adds, updates, or removes items in an existing inventory claim.
This endpoint manages the items associated with a claim. It supports adding new items, updating existing claimed quantities, and removing previously claimed items. Inventory counts, monthly inventory summaries, combo item quantities, and stock availability are updated automatically.
claim_id path parameter must reference an existing claim.items field.item_id and quantity.quantity must be greater than zero unless the action is delete.update and delete. If omitted, the quantity
is added to the existing claimed quantity.damaged_qty cannot exceed quantity.Any of the following permissions are needed
Items/claimItems/access| claim_id required | integer Example: 101 Unique identifier of the claim. |
required | Array of objects List of items to add, update, or remove. |
{- "items": [
- {
- "action": "update",
- "damaged_qty": 0,
- "item_id": 0,
- "quantity": 0
}
]
}{- "direction": "inward",
- "items": [
- {
- "id": 0,
- "name": "string",
- "qty": 0,
- "stock": 0
}
], - "offer": {
- "items": [
- { }
], - "offers": [
- { }
]
}
}Retrieves inventory claims belonging to the authenticated application.
This endpoint returns inward and outward inventory claims with support for field selection, filtering, sorting, and limiting the number of returned records.
Aggregate information such as the total number of claimed items, total quantity, and total damaged quantity can also be included.
fields parameter controls which fields are returned.num_items, tot_qty, tot_dmgd) are calculated
only when requested.date is supported.Items/claim is needed
| fields | string Example: fields=id,direction,date,remarks Comma-separated list of fields to return. |
| limit | integer Example: limit=10 Maximum number of claims to return. |
| sort | string Example: sort=date.desc Sort by date using |
[- {
- "date": "2026-08-04T10:30:00",
- "direction": "inward",
- "id": 101,
- "num_items": 5,
- "remarks": "Stock received from supplier.",
- "tot_dmgd": 2,
- "tot_qty": 25
}
]Creates a new inward or outward inventory claim.
A claim records the movement of inventory into or out of an application. The endpoint creates the claim and can optionally add claimed items as part of the same request.
For outward claims, the request can optionally perform an availability check before creating the claim.
direction field must be either inward or outward.date is omitted, the current date and time are used.items are supplied, they are automatically added to the newly
created claim.check parameter performs an
availability check before the claim is created.Items/claim is needed
| date | string <date-time> Claim date. Defaults to the current date and time. |
| details | object Additional application-specific claim details. |
| direction required | string Enum: "inward" "outward" Direction of the inventory claim. |
| items | Array of objects Optional list of items to add to the claim. |
| remarks | string Remarks associated with the claim. |
{- "date": "2019-08-24T14:15:22Z",
- "details": { },
- "direction": "inward",
- "items": [
- { }
], - "remarks": "string"
}{- "direction": "inward",
- "id": 101,
- "items": [
- {
- "id": 0,
- "name": "string",
- "qty": 0,
- "stock": 0
}
], - "offer": {
- "items": [
- { }
], - "offers": [
- { }
]
}
}Registers or updates the claim templates for an application.
This endpoint stores the URL template and description template used when generating item claim information for an application. At least one of the templates must be supplied.
The registered templates are stored centrally and associated with the authenticated application.
url_template or description_template must be provided.Items/claim is needed
| description_template | string Template used to generate claim descriptions. |
| url_template | string Template used to generate claim URLs. |
{- "description_template": "Claim item {item_name} using this link.",
}{- "message": "string"
}Retrieves the rating summary for an item.
Ratings are aggregated across all variants of the same item and include the average rating, total number of ratings, and a distribution showing how many customers assigned each rating value.
item_id path parameter identifies the item.avg_rating as nullnum_ratings as 0ratings object.Items/access is needed
| item_id required | integer Example: 101 Unique identifier of the item. |
{- "avg_rating": 4.5,
- "num_ratings": 18,
- "ratings": {
- "1": 0,
- "2": 1,
- "3": 2,
- "4": 6,
- "5": 9
}
}Creates, updates, or removes a customer's rating for an item.
Ratings are stored per customer and are automatically aggregated across all variants of the same item. When a rating is updated, the average rating and total number of ratings are recalculated and synchronized for every variant.
Internal applications may submit ratings on behalf of a customer by
providing the customer_id parameter.
0.item_id path parameter identifies the item to rate.customer_id parameter.rating parameter is mandatory.rating to 0 removes the customer's existing rating.Items/access is needed
| item_id required | integer Example: 101 Unique identifier of the item. |
| rating required | integer [ 0 .. 5 ] Example: rating=5 Rating value. Specify |
| customer_id | integer Example: customer_id=1001 Customer identifier. Required only for authenticated internal applications. |
{- "avg_rating": 4.6,
- "num_ratings": 25
}Retrieves inventory stats based on the supplied filters.
This endpoint supports two modes:
items parameter) returns detailed item statistics and
optionally prepares data for report/download generation.Range filters may be supplied to compare statistics across multiple periods.
items parameter is supplied, detailed item statistics are
returned.download parameter is supplied together with items, the
response contains report generation metadata instead of stats.range.*
query parameters.Items/stats is needed
| items | string Example: items=all Returns detailed item statistics. Use |
| download | boolean Example: download=true Returns report metadata for generating downloadable statistics. |
| range.* | string Example: range.*=2026-01-01;2026-01-31 Comparison range filter. Supports date and field-based ranges. |
{- "fields": [
- "string"
], - "params": { },
- "ranges": { }
}Retrieves a summarized inventory report grouped by item type.
The response contains the total positive and negative stock quantities along with their purchase and sale values for each item type. Stock values are calculated using the latest sale and purchase prices after applying any configured discounts.
app_id = 0).All of the following permissions are needed
Items/manageItems/manage-purchase-price[- {
- "neg_stock": {
- "count": 0,
- "pvalue": 0,
- "svalue": 0
}, - "pos_stock": {
- "count": 150,
- "pvalue": 125000.5,
- "svalue": 158900.75
}, - "type": "Electronics"
}, - {
- "neg_stock": {
- "count": -3,
- "pvalue": -4200,
- "svalue": -5600
}, - "pos_stock": {
- "count": 45,
- "pvalue": 87500,
- "svalue": 112000
}, - "type": "Furniture"
}
]Retrieves all available label templates used for printing item labels.
The templates are read from the label template configuration file and returned as a JSON array. If no templates have been configured, an empty array is returned.
Any of the following permissions are needed
Items/manageItems/accessItems/claim[- {
- "dpi": 300,
- "elements": [ ],
- "label": { },
- "name": "A4_40_LABEL",
- "sheet": { }
}
]Deletes an existing label template used for item label printing.
The template is removed from the label template configuration file and its name is removed from the template registry stored in Redis.
name path parameter identifies the label template.Items/manage is needed
| name required | string Example: A4_40_LABEL Name of the label template to delete. |
{- "message": "string"
}Creates a new label template or updates an existing one.
To create a new template, specify _ as the templ_name path parameter.
To update an existing template, specify the current template name.
A label template defines the layout used for printing item labels, including sheet dimensions, label size, DPI, and printable elements.
_ as the templ_name to create a new template.Items/manage is needed
| templ_name required | string Example: A4_LABEL Template name. Specify |
| dpi | integer Printing DPI. |
| elements | Array of objects List of printable elements. |
| label | object Label dimensions and layout. |
| name | string Template name. |
| sheet | object Sheet configuration. |
{- "dpi": 300,
- "elements": [
- { }
], - "label": { },
- "name": "A4_LABEL",
- "sheet": { }
}{- "message": "string"
}Deletes an existing unit of measure (UOM).
The specified UOM is removed from the system if it exists.
uom_name path parameter identifies the UOM to delete.Items/manage is needed
| uom_name required | string Example: Kilogram Name of the unit of measure to delete. |
{- "message": "string"
}Updates an existing unit of measure (UOM).
You can update the UOM name, its type, or both. The unit type determines whether the UOM represents whole units or fractional units.
uom_name path parameter identifies the UOM to update.uom_type must be either whole or fraction when provided.Items/manage is needed
| uom_name required | string Example: Kilogram Name of the unit of measure to update. |
| uom_name | string New name for the unit of measure. |
| uom_type | string Enum: "whole" "fraction" Updated unit type. |
{- "uom_name": "Kilograms",
- "uom_type": "fraction"
}{- "message": "string"
}Retrieves the list of configured units of measure (UOMs).
The endpoint supports filtering and sorting of results based on the available UOM fields.
iduom_nameuom_type<field>.asc and <field>.desc.Any of the following permissions are needed
Items/accessItems/manageItems/manage-content| max | integer Example: max=50 Maximum number of UOMs to return. |
| sort | string Example: sort=uom_name.asc Sort results using one or more fields separated by commas. Supported fields are |
[- {
- "id": 1,
- "uom_name": "Kilogram",
- "uom_type": "fraction"
}
]Creates a new unit of measure (UOM) that can be assigned to inventory items.
Each UOM must specify whether it represents whole units or fractional units. Duplicate UOM names are not allowed.
uom_type must be either whole or fraction.Items/manage is needed
| uom_name required | string Name of the unit of measure. |
| uom_type required | string Enum: "whole" "fraction" Type of unit of measure. |
{- "uom_name": "Kilogram",
- "uom_type": "fraction"
}{- "id": 12
}APIs for managing shared inventory relationships between items.
Inventory sharing allows multiple items or variants to share the same underlying stock, enabling centralized inventory tracking while maintaining separate item records. These endpoints support creating, updating, retrieving, and deleting inventory sharing configurations.
Creates a new inventory sharing group by linking multiple items to a shared inventory.
A hidden parent inventory item is created automatically, and all selected items share the same inventory based on their configured ratios.
Items/manage is needed
required | Array of objects >= 2 items Items to include in the inventory sharing group. |
| name | string Inventory sharing group name. |
| opening_stock | number <float> Opening stock for the shared inventory. If omitted, it is calculated automatically. |
| stock_threshold | number <float> Low stock threshold for the shared inventory. |
| uom | string Unit of measure for the shared inventory. |
{- "items": [
- {
- "id": 101,
- "ratio": 1
}, - {
- "id": 101,
- "ratio": 1
}
], - "name": "Warehouse Inventory",
- "opening_stock": 100,
- "stock_threshold": 10,
- "uom": "Piece"
}{- "id": 1001,
- "name": "Warehouse Inventory",
- "opening_stock": 100,
- "stock": 98,
- "uom": "Piece"
}Deletes an inventory sharing configuration.
If the specified item is the inventory sharing parent, the entire inventory sharing group is removed. Otherwise, only the specified item is removed from the sharing group.
When only one shared item remains after removal, the inventory sharing group is automatically dissolved.
item_id path parameter may refer to either the inventory sharing
parent or a participating item.Items/manage is needed
| item_id required | integer Example: 1001 Identifier of the inventory sharing parent or participating item. |
{- "message": "string"
}Retrieves the details of an inventory sharing group.
The response includes the shared inventory information along with all items participating in the inventory sharing group and their inventory sharing ratios.
item_id path parameter identifies the inventory sharing parent.Items/manage is needed
| item_id required | integer Example: 1001 Inventory sharing parent item identifier. |
{- "items": [
- {
- "code": "RICE001",
- "id": 101,
- "name": "Rice",
- "num_variants": 0,
- "properties": [
- {
- "name": "Brand",
- "values": [
- "Premium"
]
}
], - "ratio": 1,
- "type": "Grocery"
}
], - "name": "Warehouse Inventory",
- "opening_stock": 100,
- "stock": 98,
- "stock_threshold": 10,
- "uom": "Piece"
}Updates an existing inventory sharing configuration.
This endpoint can be used to update either the inventory sharing parent or an individual shared item.
item_id refers to a shared item, only the ratio field can be updated.item_id refers to the inventory sharing parent, opening_stock,
stock_threshold, uom, and name can be updated.Items/manage is needed
| item_id required | integer Example: 1001 Shared inventory parent ID or shared item ID. |
| name | string Updated inventory sharing group name. |
| opening_stock | number <float> Updated opening stock for the shared inventory. |
| ratio | number <float> Inventory sharing ratio for a shared item. |
| stock_threshold | number <float> Updated low stock threshold. |
| uom | string Updated unit of measure. |
{- "name": "Warehouse Inventory",
- "opening_stock": 250,
- "ratio": 1.5,
- "stock_threshold": 20,
- "uom": "Piece"
}{- "stock": 245
}Adds one or more items to an existing inventory sharing group.
Inventory sharing allows multiple items to share a common inventory pool managed by a parent inventory item. The parent inventory is updated with the supplied opening stock, stock threshold, and unit of measure when provided.
parent_id path parameter identifies the shared inventory parent.Items/manage is needed
| parent_id required | integer Example: 1001 Identifier of the inventory sharing parent. |
required | Array of objects Items to be added to the inventory sharing group. |
| name | string Shared inventory group name. |
| opening_stock | number <float> Opening stock for the shared inventory. |
| stock_threshold | number <float> Low stock threshold for the shared inventory. |
| uom | string Unit of measure for the shared inventory. |
{- "items": [
- {
- "id": 101,
- "ratio": 1
}
], - "name": "Warehouse Inventory",
- "opening_stock": 100,
- "stock_threshold": 10,
- "uom": "Piece"
}{- "id": 1001,
- "name": "Warehouse Inventory",
- "opening_stock": 100,
- "stock": 98,
- "uom": "Piece"
}APIs for creating, managing, retrieving, validating, and deleting item offers and promotional plans.
These endpoints allow applications to:
Deletes or deactivates an offer.
By default, the offer is permanently removed. If the deactivate
query parameter is provided, the offer is marked as deleted and its
validity period ends immediately instead of being removed.
deactivate query parameter performs a soft delete.deactivate, the offer is permanently deleted.Items/manage is needed
| offer_id required | integer Example: 101 Identifier of the offer to delete. |
| deactivate | boolean Example: deactivate=true If present, the offer is deactivated instead of permanently deleted. |
{- "message": "string"
}Retrieves the complete details of one or more offers.
The response includes the offer information, validity period, and the complete offer plan with its target, reward, and matching criteria.
Items/manage is needed
| offer_id required | string Example: 101,102 Offer ID or a comma-separated list of offer IDs. |
[ ]Updates an existing offer.
You can modify the offer title, subtitle, validity period, or replace the entire offer plan. When a new plan is provided, the existing plan is removed and replaced after validation.
plan is supplied, the existing plan is deleted and recreated.valid_from must be earlier than valid_till.Items/manage is needed
| offer_id required | integer Example: 101 Identifier of the offer to update. |
| plan | Array of objects New offer plan that replaces the existing plan. |
| sub_title | string Updated offer subtitle. |
| title | string Updated offer title. |
| valid_from | string <date-time> Updated offer start date and time. |
| valid_till | string <date-time> Updated offer expiry date and time. |
{- "plan": [
- { }
], - "sub_title": "Limited Time Offer",
- "title": "Buy 2 Get 1 Free",
- "valid_from": "2026-08-05T00:00:00Z",
- "valid_till": "2026-08-31T23:59:59Z"
}{- "message": "string"
}Retrieves offers matching the specified filter criteria.
The endpoint supports filtering, sorting, limiting results, and filtering offers by their validity period.
id and valid_from.Items/access is needed
| id | integer Example: id=101 Filter by offer ID. |
| title | string Example: title=Buy 2 Get 1 Free Filter by offer title. |
| sub_title | string Example: sub_title=Weekend Special Filter by offer subtitle. |
| valid_from | string <date-time> Example: valid_from=2026-08-01T00:00:00Z Return offers valid on or after this date. |
| valid_till | string <date-time> Example: valid_till=2026-08-31T23:59:59Z Return offers that remain valid on or after this date. |
| incl_deleted | boolean Include deleted offers in the response. |
| sort | string Example: sort=valid_from.desc Sort results using |
| limit | integer Example: limit=20 Maximum number of offers to return. |
[- {
- "id": 101,
- "is_deleted": false,
- "sub_title": "Weekend Special",
- "title": "Buy 2 Get 1 Free",
- "valid_from": "2019-08-24T14:15:22Z",
- "valid_till": "2019-08-24T14:15:22Z"
}
]Creates a new promotional offer.
An offer consists of one or more matching rules that define the target items and the corresponding reward. Offers can be configured using item, item type, variant, and item property criteria.
title and plan are mandatory.valid_from is omitted, the current date and time is used.valid_till must be later than valid_from.match object.target or reward.Items/manage is needed
required | Array of objects List of offer rules. |
| sub_title | string Optional offer subtitle. |
| title required | string Offer title. |
| valid_from | string <date-time> Offer start date and time. |
| valid_till | string <date-time> Offer expiry date and time. |
{- "plan": [
- {
- "match": {
- "item_id": [
- 101,
- 102
]
}, - "reward": {
- "discount": 25,
- "price": 0,
- "quantity": 1
}, - "target": {
- "price": 500,
- "quantity": 2
}
}
], - "sub_title": "Weekend Promotion",
- "title": "Buy 2 Get 1 Free",
- "valid_from": "2026-08-01T00:00:00",
- "valid_till": "2026-08-31T23:59:59"
}{- "id": 15
}Evaluates the supplied items against all applicable offers and returns the best matching offers along with the resulting item list.
The endpoint can optionally evaluate offers for a specific date and enrich newly added reward items with additional item information or filter them based on stock availability.
items collection.date is omitted, currently active offers are evaluated.new_item.fields appends additional fields to generated reward items.new_item.check_stock removes generated reward items that have no stock.Items/access is needed
| date | string <date-time> Evaluate offers active at the specified date and time. |
| items required | Array of objects Items to evaluate for offers. |
| new_item.check_stock | boolean Exclude generated reward items that are out of stock. |
| new_item.fields | string Comma-separated list of item fields to include for generated reward items. |
{- "date": "2026-08-05T10:30:00Z",
- "items": [
- { }
], - "new_item.check_stock": true,
- "new_item.fields": "name,code,price"
}{- "items": [
- { }
], - "offers": [
- { }
]
}Retrieves the primary face or back image for an item.
This endpoint returns the designated face or back image without requiring the caller to know the actual image file name. If a dedicated back image has not yet been generated, it is automatically resolved from the item's image order when available.
type query parameter.img_type path parameter is typically face or back.type query parameter is supplied, it takes precedence over
the path parameter.Items/access is needed
| item_id required | integer Example: 101 Item identifier. |
| img_type required | string Example: face Image type to retrieve. |
| type | string Enum: "face" "back" Example: type=back Overrides the image type specified in the path. |
{- "message": "string"
}Retrieves an image for the specified item.
The image is returned in the requested size. If the client supports WebP, a WebP image is returned when available; otherwise PNG or JPEG is returned.
Items/access is needed
| item_id required | integer Example: 101 Identifier of the item. |
| img_name required | string Example: front.jpg Image name. |
| size | string Example: size=medium Image size to retrieve. |
{- "message": "string"
}Retrieves the media specification for an item.
The response contains the ordered list of images and videos associated with the item, including their URLs, descriptions, media type, and display order.
src field.video_src field.Any of the following permissions are needed
Items/accessItems/manageItems/manage-content| item_id required | integer Example: 101 Identifier of the item. |
[- {
- "cover": "/aalam/stock/item/101/video/demo.mp4/cover/cover.jpg",
- "description": "Front view of the product.",
- "index": 0,
- "name": "front.jpg",
- "src": "/aalam/stock/item/101/image/front.jpg",
- "type": "image",
- "video_src": "/aalam/stock/item/101/video/demo.mp4"
}
]Uploads and manages images and videos associated with an item.
This endpoint supports uploading new images, videos, embedded videos, updating media descriptions, changing display order, synchronizing existing media, and linking media from the shared media library.
multipart/form-data.Any of the following permissions are needed
Items/manageItems/manage-content| item_id required | integer Example: 101 Identifier of the item. |
Multipart form containing images, videos, media descriptions,
and an optional order definition describing the media layout.
{- "message": "string"
}Retrieves a video associated with the specified item.
The response streams the original video file stored for the item.
Items/access is needed
| item_id required | integer Example: 101 Identifier of the item. |
| video_name required | string Example: demo.mp4 Video file name. |
{- "message": "string"
}Retrieves the cover image associated with a video of the specified item.
The response returns the cover image file used as the video's thumbnail.
Items/access is needed
| item_id required | integer Example: 101 Identifier of the item. |
| video_name required | string Example: demo.mp4 Video file name. |
| cover_name required | string Example: cover.jpg Video cover image file name. |
{- "message": "string"
}Searches the shared item media library.
This endpoint returns images and videos stored in the media library and supports filtering, sorting, field selection, and limiting the number of returned records.
fields is omitted, the default fields are:
id, name, num_refs, is_fav, and type.Any of the following permissions are needed
Items/manageItems/manage-content| fields | string Example: fields=id,name,type,num_refs,is_fav Comma-separated list of fields to return. |
| type | string Example: type=image Filter by media type. |
| title | string Example: title=Banner Filter by media title. |
| name | string Example: name=banner Filter by media name. |
| id | integer Example: id=101 Filter by media resource ID. |
| is_fav | boolean Example: is_fav=true Return only favourite media. |
| max | integer Example: max=20 Maximum number of records to return. |
| sort | string Example: sort=date.desc Sort expression in the format Supported fields:
|
[- {
- "id": 101,
- "is_fav": false,
- "name": "banner",
- "num_refs": 12,
- "type": "image"
}
]Uploads images and videos to the shared item media library.
Media uploaded through this endpoint can be reused by multiple items,
avoiding duplicate uploads. Existing media can be replaced by specifying
the force query parameter.
force=true.multipart/form-data.force=true returns 409 Conflict.Any of the following permissions are needed
Items/manageItems/manage-content| force | boolean Example: force=true Replace existing media if it already exists. |
| image/<media_name> | string <binary> Image file. |
| video/<media_name> | string <binary> Video file. |
| video/<media_name>/cover/<cover_name> | string <binary> Cover image for the uploaded video. |
{- "banner": 101,
- "demo": 103,
- "logo": 102
}Retrieves an image from the shared item media library.
The image is returned in the requested size. If the client supports WebP, a WebP image is returned when available; otherwise PNG or JPEG is returned.
Items/access is needed
| img_name required | string Example: product_front Library image name. |
| size | string Example: size=medium Image size to retrieve. |
{- "message": "string"
}Retrieves the cover image for a video stored in the shared item media library.
This endpoint serves the thumbnail or poster image associated with a library video resource.
video_name identifies the library video.cover_name identifies the cover image file.Items/access is needed
| video_name required | string Example: demo.mp4 Library video resource name. |
| cover_name required | string Example: cover.png Cover image file name. |
{- "message": "string"
}Retrieves a video from the shared item media library.
The response streams the original video file stored in the shared media library.
Items/access is needed
| video_name required | string Example: demo.mp4 Library video file name. |
{- "message": "string"
}Deletes one or more resources from the shared item media library.
Media can be deleted by specifying either resource IDs or media file names.
If a media resource is currently referenced by one or more items, deletion
is blocked unless the force query parameter is supplied.
media_files path parameter or the ids query parameter._ as the path parameter when deleting by IDs.Any of the following permissions are needed
Items/manageItems/manage-content| media_files required | string Example: banner,demo Comma-separated media file names to delete. Use |
| ids | string Example: ids=101,102 Comma-separated media resource IDs. |
| force | boolean Example: force=true Delete media even if it is referenced by items. |
{- "message": "string"
}Deletes one or more images associated with an item type.
This endpoint removes a specific aspect-ratio image for an item type,
or deletes all available type images when * is specified.
The item type can be identified using either its numeric ID or its type name.
*.1-1, 16-9) to
delete a single image.* to delete every image associated with the item type.Any of the following permissions are needed
Items/manageItems/manage-contentrequired | integer or string Example: 5 Item type ID or type name. |
| ar required | string Example: 1-1 Aspect ratio of the image to delete.
Use |
{- "message": "string"
}Retrieves an image representing an item type.
The item type can be specified either by its numeric ID or by its name.
The endpoint first attempts to return an image uploaded specifically for the requested item type. If no matching type image exists, it automatically falls back to the primary (face) image of the latest item belonging to that type.
*.* as the aspect ratio to automatically use the first
available type image.Items/access is needed
| type_id required | string Example: 15 Item type ID or item type name. |
| ar required | string Examples:
Aspect ratio of the requested image. Use |
| size | string Generated image size to return. |
{- "message": "string"
}Retrieves the list of available image aspect ratios for an item type.
The item type can be specified either by its numeric ID or by its name.
Each returned aspect ratio corresponds to an uploaded type image and can be used with the Get Type Image endpoint to retrieve that image.
1-1, 4-3, 16-9).Any of the following permissions are needed
Items/manageItems/manage-content| type_id required | string Example: 15 Item type ID or item type name. |
[- "1-1",
- "4-3",
- "16-9"
]Uploads or updates images for an item type.
Images are uploaded using multipart/form-data, where each form field
name represents the image aspect ratio (for example 1-1, 4-3,
16-9) and the field value contains the corresponding image file.
If an empty file is submitted for an existing aspect ratio, the corresponding type image is removed.
multipart/form-data.Any of the following permissions are needed
Items/manageItems/manage-content| type_id required | integer Example: 15 Item type identifier. |
| property name* additional property | string <binary> |
{ "1-1": "<image file>", "16-9": "<image file>", "4-3": "<image file>" }
{- "message": "string"
}Deletes an existing item description template.
This endpoint removes the description template from the system and deletes its stored HTML content. The template search index entries are also removed after successful deletion.
A template cannot be deleted if it is currently referenced by any items.
Items/manage is needed
| template_id required | integer Example: 25 Description template identifier. |
{- "message": "string"
}Updates an existing item description template.
This endpoint allows modifying the template title, template code, and HTML content. Only the fields provided in the request are updated.
When the HTML content is changed, the updated content is reprocessed and the search index is refreshed.
title, html, or template_code must be provided.-),
and underscore (_).Any of the following permissions are needed
Items/manageItems/manage-content| template_id required | integer Example: 25 Description template identifier. |
| html | string Updated HTML content of the template. |
| template_code | string Updated unique template code. Allowed characters: A-Z, a-z, 0-9, hyphen, underscore. |
| title | string Updated description template title. |
{- "html": "<h2>Updated Details</h2><p>New content</p>",
- "template_code": "updated_product_specification",
- "title": "Updated Product Specification"
}{- "message": "string"
}Retrieves the list of available item description templates.
This endpoint returns reusable description templates that can be used when creating or updating item descriptions.
The response can be customized using filters, selected fields, sorting, and maximum result limits.
desc_templ.Any of the following permissions are needed
Items/accessItems/manage-content| fields | string Example: fields=id,title,template_code Comma-separated list of fields to return. Supported fields:
|
| max | integer Default: 30 Example: max=50 Maximum number of templates to return. |
| sort | string Example: sort=date.desc Sort field and order. Supported sort fields:
Sort order:
|
| title | string Example: title=Specification Filter templates by title. |
| template_code | string Example: template_code=product_specification Filter templates by template code. |
[- {
- "date": "2019-08-24T14:15:22Z",
- "id": 25,
- "is_fav": false,
- "name": "product_specification",
- "num_refs": 12,
- "template_code": "product_specification",
- "title": "Product Specification",
- "type": "desc_templ"
}
]Creates a new reusable description template for items.
A description template contains a title, unique template code, and HTML content. Once created, the template can be assigned to item descriptions.
After creating the template, the HTML content is processed and added to the search index.
title, html, and template_code are mandatory.-),
and underscore (_).Any of the following permissions are needed
Items/manageItems/manage-content| html required | string HTML content of the description template. |
| template_code required | string Unique identifier code for the template. Allowed characters: A-Z, a-z, 0-9, hyphen, underscore. |
| title required | string Description template title. |
{- "html": "<h2>Specifications</h2><p>Product details</p>",
- "template_code": "product_specification",
- "title": "Product Specification"
}{- "id": 25
}Retrieves the details of a description template using its template code.
This endpoint returns the description template metadata and HTML content. It also returns the list of items that are using the template.
template_code path parameter identifies the description template.next_item contains the last returned item ID,
which can be used to fetch the next set of items.next_item query parameter is provided, only the item list pagination
response is returned.Any of the following permissions are needed
Items/accessItems/manage-content| template_code required | string Example: product_details Description template code. |
| next_item | integer Example: next_item=100 Fetch items after the specified item ID. |
| next_id | integer Example: next_id=100 Last item ID used as the pagination reference. |
{- "html": "string",
- "items": [
- {
- "id": 101,
- "name": "Sample Product",
- "type": "Electronics"
}
], - "next_item": 130,
- "template_code": "product_details",
- "title": "Product Description"
}Retrieves the description content configured for an item.
This endpoint returns all available descriptions associated with the item. Descriptions can contain either custom HTML content or references to description templates.
The API supports both the current description storage format and the legacy description format used by older item versions.
Any of the following permissions are needed
Items/accessItems/manage| item_id required | integer Example: 101 Item identifier. |
[- {
- "html": "<p>Product information</p>",
- "template_code": "specification_template",
- "template_id": 10,
- "template_title": "Specifications",
- "title": "Product Details"
}
]Updates the description content of an item.
The description can contain either custom HTML descriptions or predefined description templates. Existing descriptions are replaced with the new description data.
This endpoint also supports copying the updated description to other
items using the dst query parameter.
description is mandatory.dst can be used to copy the same description to other items.Any of the following permissions are needed
Items/manageItems/manage-content| item_id required | integer Example: 101 Item identifier. |
| dst | string Example: dst=102,103 Comma-separated item IDs where the same description should be copied. |
| html | string Custom HTML description content. |
| template_code | string Description template code. |
| template_id | integer Existing description template ID. |
| title | string Description title. |
[- [
- {
- "html": "<p>Product description</p>",
- "title": "Product Details"
}, - {
- "template_code": "specification_template",
- "title": "Specifications"
}
]
]{- "message": "string"
}