{
  "data": {
    "invoice": {
      "id": 22590390,
      "invoiceNumber": "INV-PO02637",
      "status": "FLAGGED",
      "workflowState": "flagged",
      "invoiceDate": "2026-08-11",
      "createdAt": "2026-08-11T15:17:28Z",
      "updatedAt": "2026-08-11T15:17:29Z",
      "reference": "Giraffes are Cool",
      "currency": "AUD",
      "totalValue": 112.6,
      "totalValueExTax": 112.6,
      "totalTaxValue": 0.0,
      "hasSuperFlag": false,
      "supplier": {
        "id": 210512,
        "name": "Malcolm's Mushrooms"
      },
      "purchaser": {
        "id": 210499,
        "name": "The Hotel Plus AUS"
      },
      "department": {
        "id": 210500,
        "name": "Food"
      },
      "account": {
        "id": 265555,
        "name": "Cost of Food"
      },
      "purchaseOrder": {
        "id": 29917130,
        "purchaseOrderNumber": "PO02637",
        "totalValue": 112.6
      },
      "flaggingMessages": [
        {
          "type": "INVOICE_FLAGGED_LINE_BLOCKAGE",
          "values": [],
          "financeFlagSetting": "ON_REGULAR"
        }
      ],
      "lineItems": {
        "nodes": [
          {
            "id": 75412521,
            "quantity": 10.0,
            "unitPrice": 0.5,
            "invoicePrice": 0.5,
            "lineTotal": 5.0,
            "orderedQuantity": 10.0,
            "orderedPrice": 0.5,
            "invoicePriceVariance": 0.0,
            "totalReceivedQuantity": 8.0,
            "totalInvoicedQuantity": 10,
            "receivedStatus": "PARTLY_RECEIVED",
            "flaggingMessages": [
              {
                "type": "INVOICE_LINE_RECEIVED_QUANTITY_BLOCKAGE",
                "values": {
                  "quantity": 10.0,
                  "which_quantity": "received",
                  "quantity_to_match": 8.0,
                  "threshold": 0.5
                },
                "financeFlagSetting": "ON_REGULAR"
              }
            ],
            "purchaseOrderLineItem": {
              "id": 106028883,
              "quantity": 10.0,
              "unitPrice": 0.5
            },
            "product": {
              "id": 16969,
              "itemDescription": "Alfalfa Sprouts"
            }
          },
          {
            "id": 75412520,
            "quantity": 1.0,
            "unitPrice": 68.5,
            "invoicePrice": 68.5,
            "lineTotal": 68.5,
            "orderedQuantity": 1.0,
            "orderedPrice": 68.5,
            "invoicePriceVariance": 0.0,
            "totalReceivedQuantity": 1.0,
            "totalInvoicedQuantity": 1,
            "receivedStatus": "FULLY_RECEIVED",
            "flaggingMessages": [],
            "purchaseOrderLineItem": {
              "id": 106028882,
              "quantity": 1.0,
              "unitPrice": 68.5
            },
            "product": {
              "id": 23971,
              "itemDescription": "Artichokes : Jerusalem"
            }
          },
          {
            "id": 75412519,
            "quantity": 1.0,
            "unitPrice": 24.0,
            "invoicePrice": 24.0,
            "lineTotal": 24.0,
            "orderedQuantity": 1.0,
            "orderedPrice": 24.0,
            "invoicePriceVariance": 0.0,
            "totalReceivedQuantity": 1.0,
            "totalInvoicedQuantity": 1,
            "receivedStatus": "FULLY_RECEIVED",
            "flaggingMessages": [],
            "purchaseOrderLineItem": {
              "id": 106028881,
              "quantity": 1.0,
              "unitPrice": 24.0
            },
            "product": {
              "id": 2133930,
              "itemDescription": "Banana Cooking Ctn"
            }
          },
          {
            "id": 75412518,
            "quantity": 2.0,
            "unitPrice": 2.55,
            "invoicePrice": 2.55,
            "lineTotal": 5.1,
            "orderedQuantity": 2.0,
            "orderedPrice": 2.55,
            "invoicePriceVariance": 0.0,
            "totalReceivedQuantity": 2.0,
            "totalInvoicedQuantity": 2,
            "receivedStatus": "FULLY_RECEIVED",
            "flaggingMessages": [],
            "purchaseOrderLineItem": {
              "id": 106028880,
              "quantity": 2.0,
              "unitPrice": 2.55
            },
            "product": {
              "id": 8953545,
              "itemDescription": "Apple Pink Lady Sml"
            }
          },
          {
            "id": 75412517,
            "quantity": 1.0,
            "unitPrice": 10.0,
            "invoicePrice": 10.0,
            "lineTotal": 10.0,
            "orderedQuantity": 1.0,
            "orderedPrice": 10.0,
            "invoicePriceVariance": 0.0,
            "totalReceivedQuantity": 1.0,
            "totalInvoicedQuantity": 1,
            "receivedStatus": "FULLY_RECEIVED",
            "flaggingMessages": [],
            "purchaseOrderLineItem": {
              "id": 106028879,
              "quantity": 1.0,
              "unitPrice": 10.0
            },
            "product": {
              "id": 19342,
              "itemDescription": "Blueberries Fresh Standard Quality"
            }
          }
        ],
        "pageInfo": {
          "endCursor": "NQ",
          "hasNextPage": false
        }
      }
    }
  }
}
