Edit in GitHubLog an issue

OrderItemInterface attributes and implementations

OrderItemInterface provides details about items in a customer's order history. It has the following implementations:

  • OrderItem
  • BundleOrderItem
  • DownloadableOrderItem
  • GiftCardOrderItem

Reference

The OrderItemInterface reference provides detailed information about the types and fields defined in this interface.

Example usage

The following query returns details about order ID 000000005. The BundleOrderItem and DownloadableOrderItem fragments return item-specific information.

Request:

Copied to your clipboard
{
customer {
firstname
lastname
email
orders(
filter: {
number: {
eq: "000000005"
}
}) {
items {
id
items {
id
product_name
product_sku
product_type
quantity_ordered
quantity_invoiced
quantity_shipped
quantity_refunded
...on BundleOrderItem {
bundle_options {
id
label
values {
id
product_name
product_sku
quantity
price {
value
currency
}
}
}
}
...on DownloadableOrderItem {
downloadable_links {
uid
title
}
}
}
}
}
}
}

Response:

Copied to your clipboard
{
"data": {
"customer": {
"firstname": "Roni",
"lastname": "Costello",
"email": "roni_cost@example.com",
"orders": {
"items": [
{
"id": "NQ==",
"items": [
{
"id": "MTU=",
"product_name": "Yoga Adventure",
"product_sku": "240-LV06",
"product_type": "downloadable",
"quantity_ordered": 1,
"quantity_invoiced": 1,
"quantity_shipped": 0,
"quantity_refunded": 0,
"downloadable_links": [
{
"uid": "ZG93bmxvYWRhYmxlLzM=",
"title": "Yoga Adventure"
}
]
},
{
"id": "MTY=",
"product_name": "Sprite Yoga Companion Kit",
"product_sku": "24-WG080-24-WG082-blue-24-WG084-24-WG087-24-WG088",
"product_type": "bundle",
"quantity_ordered": 1,
"quantity_invoiced": 1,
"quantity_shipped": 1,
"quantity_refunded": 0,
"bundle_options": [
{
"id": "Mg==",
"label": "Sprite Foam Yoga Brick",
"values": [
{
"id": "MTg=",
"product_name": "Sprite Foam Yoga Brick",
"product_sku": "24-WG084",
"quantity": 1,
"price": {
"value": 5,
"currency": "USD"
}
}
]
},
{
"id": "NA==",
"label": "Sprite Foam Roller",
"values": [
{
"id": "MjA=",
"product_name": "Sprite Foam Roller",
"product_sku": "24-WG088",
"quantity": 1,
"price": {
"value": 19,
"currency": "USD"
}
}
]
},
{
"id": "MQ==",
"label": "Sprite Stasis Ball",
"values": [
{
"id": "MTc=",
"product_name": "Sprite Stasis Ball 65 cm",
"product_sku": "24-WG082-blue",
"quantity": 1,
"price": {
"value": 27,
"currency": "USD"
}
}
]
},
{
"id": "Mw==",
"label": "Sprite Yoga Strap",
"values": [
{
"id": "MTk=",
"product_name": "Sprite Yoga Strap 10 foot",
"product_sku": "24-WG087",
"quantity": 1,
"price": {
"value": 21,
"currency": "USD"
}
}
]
}
]
},
{
"id": "MjE=",
"product_name": "Radiant Tee",
"product_sku": "WS12-XS-Orange",
"product_type": "configurable",
"quantity_ordered": 1,
"quantity_invoiced": 1,
"quantity_shipped": 1,
"quantity_refunded": 1
}
]
}
]
}
}
}
}
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2024 Adobe. All rights reserved.