SourceItems: Magento Source Items
read only REST
- Catalog:
Magento - Schema:
Inventory - Primary Keys:
sku - Label: Source Items
Find SourceItems by SearchCriteria We need to have this method for direct work with SourceItems because this object contains additional data like as qty, status (for example can be searchable by additional field)
Can only retrieve data.
Summary
Find SourceItems by SearchCriteria We need to have this method for direct work with SourceItems because this object contains additional data like as qty, status (for example can be searchable by additional field)
API Source
- Endpoint:
/V1/inventory/source-items - Operation:
get /V1/inventory/source-items
Performance Characteristics
| Characteristic | Value |
|---|---|
| Average access latency (ms) | 43 |
| Full scan rows per minute | 114,833 |
| Point query rows per minute | 1,384 |
| Write rows per minute | 599 |
The result can be cached on the client.
Parameters
| Name | Data Type | Required | Default | Documentation |
|---|---|---|---|---|
search |
`` | Current page. | ||
search |
`` | Condition type | ||
search |
`` | Field | ||
search |
`` | Value | ||
search |
`` | Page size. | ||
search |
`` | Sorting direction. | ||
search |
`` | Sorting field. |
Table Columns
The columns of the table SourceItems are shown below. Each column has an SQL data type. A new non-null value must be provided for every required column at all times during insert and update.
| Name | Data Type | Label | Required | Marks | Documentation |
|---|---|---|---|---|---|
extension_ |
varchar2 |
Extension Attributes | writable | The JSON text of the nested object. | |
quantity |
decimal |
Quantity | filters on the platform, writable, quantity |
Source item quantity | |
sku |
varchar2 |
SKU | filters on the platform, writable, sku |
Source item sku | |
source_ |
varchar2 |
Source Code | filters on the platform, writable, source_ |
Source code | |
status |
int64 |
Status | filters on the platform, writable, status |
Source item status (One of self::STATUS_*) |
Sample Queries
select sim.sku
, sim.source_code
, sim.quantity
from Magento.Inventory.SourceItems sim
where sim.status = 1
and sim.quantity < 5