InvoiceItemInterface attributes and implementations

InvoiceItemInterface provides details about items in a customer's order history that were invoiced. It has the following implementations:

Reference

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

Invoice item row totals

data-src=/_includes/saas-only.md

When using Adobe Commerce as a Cloud Service,InvoiceItemInterface includes the following field:

Field
Type
Description
row_total
Money
The stored row subtotal excluding tax and before discount, as printed in the invoice PDF

Commerce returns the row total stored on the invoice item instead of recalculating it from the unit price and invoiced quantity. For partial invoices, Commerce can prorate and round the stored amount, which means the stored amount can differ from the product price multiplied by the invoiced quantity.

The following query fragment returns the row total for each invoice item:

invoices {
  items {
    product_sku
    quantity_invoiced
    row_total {
      value
      currency
    }
  }
}

Example usage

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

Request:

{
  customer {
    firstname
    lastname
    email
    orders(
      filter: {
        number: {
          match: "000000005"
        }
      }) {
      items {
        id
        invoices {
          id
          items {
            id
            product_sku
            product_name
            quantity_invoiced
            ... on BundleInvoiceItem {
              bundle_options {
                id
                values {
                  id
                  product_name
                  product_sku
                  quantity
                  price {
                    value
                    currency
                  }
                }
              }
            }
            ... on DownloadableInvoiceItem {
              id
              downloadable_links {
                uid
                title
              }
            }
          }
        }
      }
    }
  }
}

Response:

{
  "data": {
    "customer": {
      "firstname": "Roni",
      "lastname": "Costello",
      "email": "roni_cost@example.com",
      "orders": {
        "items": [
          {
            "id": "NQ==",
            "invoices": [
              {
                "id": "NA==",
                "items": [
                  {
                    "id": "OQ==",
                    "product_sku": "240-LV06",
                    "product_name": "Yoga Adventure",
                    "quantity_invoiced": 1,
                    "downloadable_links": [
                      {
                        "uid": "ZG93bmxvYWRhYmxlLzM=",
                        "title": "Yoga Adventure"
                      }
                    ]
                  },
                  {
                    "id": "MTA=",
                    "product_sku": "24-WG080-24-WG082-blue-24-WG084-24-WG087-24-WG088",
                    "product_name": "Sprite Yoga Companion Kit",
                    "quantity_invoiced": 1,
                    "bundle_options": [
                      {
                        "id": "Mg==",
                        "values": [
                          {
                            "id": "MTg=",
                            "product_name": "Sprite Foam Yoga Brick",
                            "product_sku": "24-WG084",
                            "quantity": 1,
                            "price": {
                              "value": 5,
                              "currency": "USD"
                            }
                          }
                        ]
                      },
                      {
                        "id": "NA==",
                        "values": [
                          {
                            "id": "MjA=",
                            "product_name": "Sprite Foam Roller",
                            "product_sku": "24-WG088",
                            "quantity": 1,
                            "price": {
                              "value": 19,
                              "currency": "USD"
                            }
                          }
                        ]
                      },
                      {
                        "id": "MQ==",
                        "values": [
                          {
                            "id": "MTc=",
                            "product_name": "Sprite Stasis Ball 65 cm",
                            "product_sku": "24-WG082-blue",
                            "quantity": 1,
                            "price": {
                              "value": 27,
                              "currency": "USD"
                            }
                          }
                        ]
                      },
                      {
                        "id": "Mw==",
                        "values": [
                          {
                            "id": "MTk=",
                            "product_name": "Sprite Yoga Strap 10 foot",
                            "product_sku": "24-WG087",
                            "quantity": 1,
                            "price": {
                              "value": 21,
                              "currency": "USD"
                            }
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "id": "MTU=",
                    "product_sku": "WS12-XS-Orange",
                    "product_name": "Radiant Tee",
                    "quantity_invoiced": 1
                  }
                ]
              }
            ]
          }
        ]
      }
    }
  }
}