Get All Order Items
curl --request GET \
--globoff \
--url 'https://api.example.com/{{micro_service_base_url}}/orders/{{order_id}}/order-items'import requests
url = "https://api.example.com/{{micro_service_base_url}}/orders/{{order_id}}/order-items"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/{{micro_service_base_url}}/orders/{{order_id}}/order-items', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/{{micro_service_base_url}}/orders/{{order_id}}/order-items",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/{{micro_service_base_url}}/orders/{{order_id}}/order-items"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/{{micro_service_base_url}}/orders/{{order_id}}/order-items")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/{{micro_service_base_url}}/orders/{{order_id}}/order-items")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"order_id": "<string>",
"total_items": 123,
"items": [
{
"id": "<string>",
"quantity": 123,
"special_instructions": "<string>",
"store_item_price": "<string>",
"store_item_total_price": "<string>",
"store_item_name": "<string>",
"store_item_description": "<string>",
"store_item_category": "<string>",
"fulfillment_status": "<string>",
"item": {},
"modifications": [
{}
]
}
],
"order_summary": {
"total_quantity": 123,
"subtotal": "<string>",
"items_by_category": {},
"items_by_status": {}
}
}Order Items
Get All Order Items
Retrieve all items within a specific order with complete details, modifications, and fulfillment status for each item.
GET
{micro_service_base_url}
/
orders
/
{order_id}
/
order-items
Get All Order Items
curl --request GET \
--globoff \
--url 'https://api.example.com/{{micro_service_base_url}}/orders/{{order_id}}/order-items'import requests
url = "https://api.example.com/{{micro_service_base_url}}/orders/{{order_id}}/order-items"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/{{micro_service_base_url}}/orders/{{order_id}}/order-items', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/{{micro_service_base_url}}/orders/{{order_id}}/order-items",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/{{micro_service_base_url}}/orders/{{order_id}}/order-items"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/{{micro_service_base_url}}/orders/{{order_id}}/order-items")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/{{micro_service_base_url}}/orders/{{order_id}}/order-items")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"order_id": "<string>",
"total_items": 123,
"items": [
{
"id": "<string>",
"quantity": 123,
"special_instructions": "<string>",
"store_item_price": "<string>",
"store_item_total_price": "<string>",
"store_item_name": "<string>",
"store_item_description": "<string>",
"store_item_category": "<string>",
"fulfillment_status": "<string>",
"item": {},
"modifications": [
{}
]
}
],
"order_summary": {
"total_quantity": 123,
"subtotal": "<string>",
"items_by_category": {},
"items_by_status": {}
}
}This endpoint returns a comprehensive list of all items within an order. It’s ideal for order fulfillment, kitchen display systems, packing lists, and complete order review.
This endpoint provides complete item details for all items in an order, making it efficient for bulk operations and comprehensive order management.
Path Parameters
string
required
The unique identifier of the order whose items you want to retrieve
Query Parameters
boolean
default:"true"
Whether to include detailed modification information for each item
string
Filter items by fulfillment status: “pending”, “preparing”, “ready”, “completed”
string
Filter items by product category
Response
string
The order identifier these items belong to
integer
Total number of items in the order
array
Array of all order items with complete details
Show Order Item Object
Show Order Item Object
string
Unique order item identifier
integer
Quantity of this item ordered
string
Item-specific preparation instructions
string
Price per unit for this item
string
Total price for this item (quantity × unit price)
string
Product name as displayed in store
string
Product description
string
Product category classification
string
Current fulfillment status for this item
object
Complete product information including images, UPC, and categories
array
Applied modifications/customizations (when include_modifications=true)
object
Response Example
{
"order_id": "35d18f08-6d54-421d-9476-8cef629111bc",
"total_items": 2,
"items": [
{
"id": "7fbe2819-5bc6-4340-8dfe-a5605272a32b",
"quantity": 1,
"special_instructions": "Cancel this order if this item is not available.",
"store_item_price": "1.00",
"store_item_total_price": "1.00",
"store_item_name": "Jumbo Ring Pop - 1",
"store_item_description": "Jumbo Ring Pop",
"store_item_category": "Others",
"fulfillment_status": "pending",
"item": {
"images": [
"https://example.com/product-image.jpg"
],
"name": "Jumbo Ring Pop",
"description": "Jumbo Ring Pop",
"upc": "4111626331",
"categories": [
{
"id": "12bd6794-a17a-48a2-9a14-64c44a20c232",
"name": "Others"
}
],
"subCategories": [],
"storeItems": [
{
"id": "b7e9d9a6-2e3e-451a-ada9-6c001b17eaa5",
"price": "10",
"external_id": null,
"location": null,
"name": "Jumbo Ring Pop - 1",
"description": null,
"categories": [
{
"id": "12bd6794-a17a-48a2-9a14-64c44a20c232",
"name": "Others"
}
],
"subCategories": []
}
]
},
"modifications": []
},
{
"id": "651daec0-c721-4399-82c8-2ac6afcc1160",
"quantity": 4,
"special_instructions": "Cancel this order if this item is not available.",
"store_item_price": "10.00",
"store_item_total_price": "40.00",
"store_item_name": "test new item 1",
"store_item_description": "",
"store_item_category": "Baby",
"fulfillment_status": "preparing",
"item": {
"images": null,
"name": "test new item 1",
"description": "",
"upc": null,
"categories": [
{
"id": "cef965f2-5a5a-4a30-b166-1350b4c3ff55",
"name": "Baby"
}
],
"subCategories": [
{
"id": "4a525cdb-2c2d-4d23-8764-d2c9f3c14142",
"name": "For Mom"
}
],
"storeItems": [
{
"id": "cf61e0c0-bff4-42dd-8273-1cbf4f8f5b42",
"price": "10.00",
"external_id": null,
"location": null,
"name": "test new item 1",
"description": null,
"categories": [
{
"id": "3c185006-271c-4d1e-903f-de21ec3b4234",
"name": "loo"
}
],
"subCategories": []
}
]
},
"modifications": []
}
],
"order_summary": {
"total_quantity": 5,
"subtotal": "41.00",
"items_by_category": {
"Others": 1,
"Baby": 1
},
"items_by_status": {
"pending": 1,
"preparing": 1
}
}
}
Filter Examples
Filter Examples
Get Items by StatusGet Items by CategoryGet Items Without Modifications
GET {{micro_service_base_url}}/orders/{{order_id}}/order-items?status_filter=pending
GET {{micro_service_base_url}}/orders/{{order_id}}/order-items?category_filter=Baby
GET {{micro_service_base_url}}/orders/{{order_id}}/order-items?include_modifications=false
Performance Optimization: When you only need basic item information, set include_modifications=false to reduce response size and improve performance.
Kitchen Display: Use status_filter=pending to show only items that need preparation, perfect for kitchen display systems.
Use Cases
Common Use Cases
Common Use Cases
Order Fulfillment
- Generate complete packing lists
- Kitchen preparation workflows
- Quality control checklists
- Complete order review with customer
- Item substitution discussions
- Order modification consultations
- Track item demand patterns
- Monitor category performance
- Identify popular product combinations
- Order composition analysis
- Average order value calculations
- Product performance metrics
Error Responses
Common Error Scenarios
Common Error Scenarios
Order Not FoundNo Items FoundAccess Denied
{
"error": "Order not found",
"order_id": "invalid-order-id",
"message": "The specified order does not exist"
}
{
"order_id": "35d18f08-6d54-421d-9476-8cef629111bc",
"total_items": 0,
"items": [],
"message": "No items found matching the specified criteria"
}
{
"error": "Access denied",
"message": "You do not have permission to view this order's items"
}
Large Orders: For orders with many items, consider using pagination or filters to manage response sizes and improve performance.

