curl --request GET \
--url 'https://api.stateset.com/api/v1/orders/{id}/items' \
--header 'Authorization: Bearer YOUR_API_KEY'
{
"data": [
{
"discount": "5.00",
"id": "item-550e8400-e29b-41d4",
"product_id": "prod-abc123",
"product_name": "Wireless Bluetooth Headphones",
"quantity": 2,
"sku": "WBH-BLK-001",
"tax_amount": "7.60",
"tax_rate": "0.08",
"total_price": "99.98",
"unit_price": "49.99"
}
],
"errors": null,
"message": null,
"meta": null,
"success": true
}
Get order items
Get all items for a specific order
GET
/
api
/
v1
/
orders
/
{id}
/
items
curl --request GET \
--url 'https://api.stateset.com/api/v1/orders/{id}/items' \
--header 'Authorization: Bearer YOUR_API_KEY'
{
"data": [
{
"discount": "5.00",
"id": "item-550e8400-e29b-41d4",
"product_id": "prod-abc123",
"product_name": "Wireless Bluetooth Headphones",
"quantity": 2,
"sku": "WBH-BLK-001",
"tax_amount": "7.60",
"tax_rate": "0.08",
"total_price": "99.98",
"unit_price": "49.99"
}
],
"errors": null,
"message": null,
"meta": null,
"success": true
}
Get all items for a specific order
Path parameters
string
required
Order ID
Responses
ApiResponse_Vec_OrderItem
Order items retrieved successfully
object
Unauthorized
object
Order not found
object
Internal server error
curl --request GET \
--url 'https://api.stateset.com/api/v1/orders/{id}/items' \
--header 'Authorization: Bearer YOUR_API_KEY'
{
"data": [
{
"discount": "5.00",
"id": "item-550e8400-e29b-41d4",
"product_id": "prod-abc123",
"product_name": "Wireless Bluetooth Headphones",
"quantity": 2,
"sku": "WBH-BLK-001",
"tax_amount": "7.60",
"tax_rate": "0.08",
"total_price": "99.98",
"unit_price": "49.99"
}
],
"errors": null,
"message": null,
"meta": null,
"success": true
}
⌘I