OrderItems: Magento Order Items
read only REST
- Catalog:
Magento - Schema:
Sales - Primary Keys:
item_id - Label: Order Items
Lists order items that match specified search criteria. This call returns an array of objects, but detailed information about each object’s attributes might not be included. See https://developer.adobe.com/commerce/webapi/rest/attributes#OrderItemRepositoryInterface to determine which call to use to get detailed information about all attributes for an object.
Can only retrieve data.
Summary
Lists order items that match specified search criteria. This call returns an array of objects, but detailed information about each object’s attributes might not be included. See https://developer.adobe.com/commerce/webapi/rest/attributes#OrderItemRepositoryInterface to determine which call to use to get detailed information about all attributes for an object.
API Source
- Endpoint:
/V1/orders/items - Operation:
get /V1/orders/items
Performance Characteristics
| Characteristic | Value |
|---|---|
| Average access latency (ms) | 54 |
| Full scan rows per minute | 114,833 |
| Point query rows per minute | 1,053 |
| 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 OrderItems 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 |
|---|---|---|---|---|---|
additional_ |
varchar2 |
Additional Data | filters on the platform, writable, additional_ |
Additional data. | |
amount_ |
decimal |
Amount Refunded | filters on the platform, writable, amount_ |
Amount refunded. | |
applied_ |
varchar2 |
Applied Rule IDs | filters on the platform, writable, applied_ |
Applied rule IDs. | |
base_ |
decimal |
Base Amount Refunded | filters on the platform, writable, base_ |
Base amount refunded. | |
base_ |
decimal |
Base Cost | filters on the platform, writable, base_ |
Base cost. | |
base_ |
decimal |
Base Discount Amount | filters on the platform, writable, base_ |
Base discount amount. | |
base_ |
decimal |
Base Discount Invoiced | filters on the platform, writable, base_ |
Base discount invoiced. | |
base_ |
decimal |
Base Discount Refunded | filters on the platform, writable, base_ |
Base discount refunded. | |
base_ |
decimal |
Base Discount Tax Compensation Amount | filters on the platform, writable, base_ |
Base discount tax compensation amount. | |
base_ |
decimal |
Base Discount Tax Compensation Invoiced | filters on the platform, writable, base_ |
Base discount tax compensation invoiced. | |
base_ |
decimal |
Base Discount Tax Compensation Refunded | filters on the platform, writable, base_ |
Base discount tax compensation refunded. | |
base_ |
decimal |
Base Original Price | filters on the platform, writable, base_ |
Base original price. | |
base_ |
decimal |
Base Price | filters on the platform, writable, base_ |
Base price. | |
base_ |
decimal |
Base Price Including Tax | filters on the platform, writable, base_ |
Base price including tax. | |
base_ |
decimal |
Base Row Invoiced | filters on the platform, writable, base_ |
Base row invoiced. | |
base_ |
decimal |
Base Row Total | filters on the platform, writable, base_ |
Base row total. | |
base_ |
decimal |
Base Row Total Including Tax | filters on the platform, writable, base_ |
Base row total including tax. | |
base_ |
decimal |
Base Tax Amount | filters on the platform, writable, base_ |
Base tax amount. | |
base_ |
decimal |
Base Tax Before Discount | filters on the platform, writable, base_ |
Base tax before discount. | |
base_ |
decimal |
Base Tax Invoiced | filters on the platform, writable, base_ |
Base tax invoiced. | |
base_ |
decimal |
Base Tax Refunded | filters on the platform, writable, base_ |
Base tax refunded. | |
base_ |
decimal |
Base WEEE Tax Applied Amount | filters on the platform, writable, base_ |
Base WEEE tax applied amount. | |
base_ |
decimal |
Base WEEE Tax Applied Row Amount | filters on the platform, writable, base_ |
Base WEEE tax applied row amount. | |
base_ |
decimal |
Base WEEE Tax Disposition | filters on the platform, writable, base_ |
Base WEEE tax disposition. | |
base_ |
decimal |
Base WEEE Tax Row Disposition | filters on the platform, writable, base_ |
Base WEEE tax row disposition. | |
created_ |
varchar2 |
Created At | filters on the platform, writable, created_ |
Created-at timestamp. | |
description |
varchar2 |
Description | filters on the platform, writable, description |
Description. | |
discount_ |
decimal |
Discount Amount | filters on the platform, writable, discount_ |
Discount amount. | |
discount_ |
decimal |
Discount Invoiced | filters on the platform, writable, discount_ |
Discount invoiced. | |
discount_ |
decimal |
Discount Percent | filters on the platform, writable, discount_ |
Discount percent. | |
discount_ |
decimal |
Discount Refunded | filters on the platform, writable, discount_ |
Discount refunded. | |
discount_ |
decimal |
Discount Tax Compensation Amount | filters on the platform, writable, discount_ |
Discount tax compensation amount. | |
discount_ |
decimal |
Discount Tax Compensation Canceled | filters on the platform, writable, discount_ |
Discount tax compensation canceled. | |
discount_ |
decimal |
Discount Tax Compensation Invoiced | filters on the platform, writable, discount_ |
Discount tax compensation invoiced. | |
discount_ |
decimal |
Discount Tax Compensation Refunded | filters on the platform, writable, discount_ |
Discount tax compensation refunded. | |
event_ |
int64 |
Event ID | filters on the platform, writable, event_ |
Event ID. | |
ext_ |
varchar2 |
External Order Item ID | filters on the platform, writable, ext_ |
External order item ID. | |
extension_ |
int64 |
Extension Attributes Gift Message Customer ID | filters on the platform, writable, extension_ |
Customer ID. Otherwise, null. | |
extension_ |
varchar2 |
Extension Attributes Gift Message Extension Attributes Entity ID | filters on the platform, writable, extension_ |
||
extension_ |
varchar2 |
Extension Attributes Gift Message Extension Attributes Entity Type | filters on the platform, writable, extension_ |
||
extension_ |
int64 |
Extension Attributes Gift Message Gift Message ID | filters on the platform, writable, extension_ |
Gift message ID. Otherwise, null. | |
extension_ |
varchar2 |
Extension Attributes Gift Message Message | filters on the platform, writable, extension_ |
Message text. | |
extension_ |
varchar2 |
Extension Attributes Gift Message Recipient | filters on the platform, writable, extension_ |
Recipient name. | |
extension_ |
varchar2 |
Extension Attributes Gift Message Sender | filters on the platform, writable, extension_ |
Sender name. | |
free_ |
int64 |
Free Shipping | filters on the platform, writable, free_ |
Free-shipping flag value. | |
gw_ |
decimal |
Gift Wrap Base Price | filters on the platform, writable, gw_ |
GW base price. | |
gw_ |
decimal |
Gift Wrap Base Price Invoiced | filters on the platform, writable, gw_ |
GW base price invoiced. | |
gw_ |
decimal |
Gift Wrap Base Price Refunded | filters on the platform, writable, gw_ |
GW base price refunded. | |
gw_ |
decimal |
Gift Wrap Base Tax Amount | filters on the platform, writable, gw_ |
GW base tax amount. | |
gw_ |
decimal |
Gift Wrap Base Tax Amount Invoiced | filters on the platform, writable, gw_ |
GW base tax amount invoiced. | |
gw_ |
decimal |
Gift Wrap Base Tax Amount Refunded | filters on the platform, writable, gw_ |
GW base tax amount refunded. | |
gw_id |
int64 |
Gift Wrap ID | filters on the platform, writable, gw_id |
GW ID. | |
gw_ |
decimal |
Gift Wrap Price | filters on the platform, writable, gw_ |
GW price. | |
gw_ |
decimal |
Gift Wrap Price Invoiced | filters on the platform, writable, gw_ |
GW price invoiced. | |
gw_ |
decimal |
Gift Wrap Price Refunded | filters on the platform, writable, gw_ |
GW price refunded. | |
gw_ |
decimal |
Gift Wrap Tax Amount | filters on the platform, writable, gw_ |
GW tax amount. | |
gw_ |
decimal |
Gift Wrap Tax Amount Invoiced | filters on the platform, writable, gw_ |
GW tax amount invoiced. | |
gw_ |
decimal |
Gift Wrap Tax Amount Refunded | filters on the platform, writable, gw_ |
GW tax amount refunded. | |
is_ |
int64 |
Is Quantity Decimal | filters on the platform, writable, is_ |
Is-quantity-decimal flag value. | |
is_ |
int64 |
Is Virtual | filters on the platform, writable, is_ |
Is-virtual flag value. | |
item_ |
int64 |
Item ID | filters on the platform, writable, item_ |
Item ID. | |
locked_ |
int64 |
Locked Do Invoice | filters on the platform, writable, locked_ |
Locked DO invoice flag value. | |
locked_ |
int64 |
Locked Do Ship | filters on the platform, writable, locked_ |
Locked DO ship flag value. | |
name |
varchar2 |
Name | filters on the platform, writable, name |
Name. | |
no_ |
int64 |
No Discount | filters on the platform, writable, no_ |
No-discount flag value. | |
order_ |
int64 |
Order ID | filters on the platform, writable, order_ |
Order ID. | |
original_ |
decimal |
Original Price | filters on the platform, writable, original_ |
Original price. | |
parent_ |
int64 |
Parent Item ID | filters on the platform, writable, parent_ |
Parent item ID. | |
price |
decimal |
Price | filters on the platform, writable, price |
Price. | |
price_ |
decimal |
Price Including Tax | filters on the platform, writable, price_ |
Price including tax. | |
product_ |
int64 |
Product ID | filters on the platform, writable, product_ |
Product ID. | |
product_ |
varchar2 |
Product Option Extension Attributes Downloadable Option Downloadable Links | writable, product_ |
The list of downloadable links | |
product_ |
varchar2 |
Product Type | filters on the platform, writable, product_ |
Product type. | |
qty_ |
decimal |
Quantity Backordered | filters on the platform, writable, qty_ |
Quantity backordered. | |
qty_ |
decimal |
Quantity Canceled | filters on the platform, writable, qty_ |
Quantity canceled. | |
qty_ |
decimal |
Quantity Invoiced | filters on the platform, writable, qty_ |
Quantity invoiced. | |
qty_ |
decimal |
Quantity Ordered | filters on the platform, writable, qty_ |
Quantity ordered. | |
qty_ |
decimal |
Quantity Refunded | filters on the platform, writable, qty_ |
Quantity refunded. | |
qty_ |
decimal |
Quantity Returned | filters on the platform, writable, qty_ |
Quantity returned. | |
qty_ |
decimal |
Quantity Shipped | filters on the platform, writable, qty_ |
Quantity shipped. | |
quote_ |
int64 |
Quote Item ID | filters on the platform, writable, quote_ |
Quote item ID. | |
row_ |
decimal |
Row Invoiced | filters on the platform, writable, row_ |
Row invoiced. | |
row_ |
decimal |
Row Total | filters on the platform, writable, row_ |
Row total. | |
row_ |
decimal |
Row Total Including Tax | filters on the platform, writable, row_ |
Row total including tax. | |
row_ |
decimal |
Row Weight | filters on the platform, writable, row_ |
Row weight. | |
sku |
varchar2 |
SKU | filters on the platform, writable, sku |
SKU. | |
store_ |
int64 |
Store ID | filters on the platform, writable, store_ |
Store ID. | |
tax_ |
decimal |
Tax Amount | filters on the platform, writable, tax_ |
Tax amount. | |
tax_ |
decimal |
Tax Before Discount | filters on the platform, writable, tax_ |
Tax before discount. | |
tax_ |
decimal |
Tax Canceled | filters on the platform, writable, tax_ |
Tax canceled. | |
tax_ |
decimal |
Tax Invoiced | filters on the platform, writable, tax_ |
Tax invoiced. | |
tax_ |
decimal |
Tax Percent | filters on the platform, writable, tax_ |
Tax percent. | |
tax_ |
decimal |
Tax Refunded | filters on the platform, writable, tax_ |
Tax refunded. | |
updated_ |
varchar2 |
Updated At | filters on the platform, writable, updated_ |
Updated-at timestamp. | |
weee_ |
varchar2 |
WEEE Tax Applied | filters on the platform, writable, weee_ |
WEEE tax applied. | |
weee_ |
decimal |
WEEE Tax Applied Amount | filters on the platform, writable, weee_ |
WEEE tax applied amount. | |
weee_ |
decimal |
WEEE Tax Applied Row Amount | filters on the platform, writable, weee_ |
WEEE tax applied row amount. | |
weee_ |
decimal |
WEEE Tax Disposition | filters on the platform, writable, weee_ |
WEEE tax disposition. | |
weee_ |
decimal |
WEEE Tax Row Disposition | filters on the platform, writable, weee_ |
WEEE tax row disposition. | |
weight |
decimal |
Weight | filters on the platform, writable, weight |
Weight. |
Sample Queries
select itm.sku
, itm.name
, sum(itm.qty_ordered - itm.qty_shipped) qty_to_ship
from Magento.Sales.OrderItems itm
join Magento.Sales.Orders ord
on ord.entity_id = itm.order_id
where ord.state in ('new', 'processing')
group
by itm.sku
, itm.name