Admin GraphQL API

HI All,

We have a Admin Website for our company where we are pulling the orders and customer information from the Shopify Admin. But the issue is the order has some removed items which i can see in shopify admin but in the API call i see all the items even the removed items. These are not distinguished or removed . Any help.

Here is the order line item api response

  1. allSamples: false
  2. billing_address_formatted: {name: “Eric Stanton”,…}
  3. billling_address_matches_shipping_address: true
  4. canCapture: false
  5. canMarkAsPaid: true
  6. capturable: 0
  7. cartDiscount: 0
  8. closed: false
  9. created_at: 1644935602000
  10. customer: {id: “5209448349789”, displayName: “Eric Stanton”, email: “eric@sudsbox.com”,…}
  11. discounts: 0
  12. draft_id: “859191378013”
  13. draft_name: “D5147”
  14. events: [{id: “gid://shopify/BasicEvent/80359898087517”, createdAt: 1645102921000, attributeToUser: true,…},…]
  15. financial_status: “PENDING”
  16. fulfillment_status: “UNFULFILLED”
  17. fulfillments: [{id: null, status: “CANCELLED”, created_at: 1644935614000, order_id: null, delivered_at: null,…}]
  18. id: “4213369700445”
  19. line_items: [,…]
  20. metafields:
  21. name: “S17334”
  22. next: “4213476196445”
  23. note: “Net30: Sutherland Packaging\nPO# Verbal Eric Stanton\n\nQuote 11862\n\nItem: Digital Sheet (48” x 47.25”)\nStyle: Print Only Sheet\nSize: 48” x 47.25”\nMaterial: 200 B Kemi/Kraft\nPrint Variations: 2\nPrinting: Digital Aqueous 4CP Direct Print + Aqueous OPV (1-Side Print)\nFinishing: Corner Board/Band\n\n\nProduction timing 5-6 business days from proof approval\n\nNeed physical samples first ASAP”
  24. note_attributes:
  25. order_number: 17334
  26. previous: “4213343092829”
  27. processed_at: 1644935602000
  28. properties: {requiresShipping: true, draft: true, requiresProofing: false}
  29. refundable: false
  30. refunded: 0
  31. shipping_address_formatted: {name: “Eric Stanton”,…}
  32. shipping_lines: [{title: “FOB (plant) – TBD – To be invoiced upon completion”, price: 0, discounted_price: 0,…}]
  33. status: {RECEIVED: “02/15/2022 02:33 PM”}
  34. subtotal_price: 74106.6
  35. total_price: 74106.6
  36. total_shipping: 0
  37. total_tax: 0
  38. transactions: [,…]
  39. updated_at: 1645102921000