TanqoryDocs

inventoryPurchaseOrder

  • Query
  • Inventory and fulfillment

Requires read_inventory_purchase_orders access scope. About access scopes

Arguments

ArgumentTypeRequiredDefault
idID!Required

Returns

InventoryPurchaseOrder An order for stock placed with a supplier, with its line items, destination location, status, costs and the transfers that receive it.

FieldTypeDescription
archivedAtDateTime
currencyCurrencyCode!
dateCreatedDateTime!
destinationLocationSnapshot
idID!
lineItemsInventoryPurchaseOrderLineItemConnection!
nameString!
orderedAtDateTime
originInventorySupplierSnapshot
statusInventoryPurchaseOrderStatus!
tanqoryExtAcceptedQuantityInt!

Units accepted into stock.

tanqoryExtClosedAtDateTime
tanqoryExtCostAdjustments[TanqoryExtCostAdjustment!]!
tanqoryExtCostSummaryTanqoryExtPurchaseOrderCostSummary!
tanqoryExtDisplayStatusTanqoryExtPurchaseOrderDisplayStatus!

The status the admin shows: DRAFT and ORDERED split by what was received, and CLOSED.

tanqoryExtEventsEventConnection!

The purchase order's timeline, newest first with reverse: true (comments and every change).

tanqoryExtFiles[TanqoryExtPurchaseOrderFile!]!

The files attached to the purchase order (the supplier's invoice), in the order they were attached.

tanqoryExtNoteToSupplierString
tanqoryExtPaymentTermsTanqoryExtPurchaseOrderPaymentTerms!
tanqoryExtReferenceNumberString
tanqoryExtRejectedQuantityInt!

Units rejected on receipt.

tanqoryExtShipmentTanqoryExtPurchaseOrderShipment!

Shipment details: estimated arrival, carrier, tracking number and URL.

tanqoryExtSupplierTanqoryExtSupplier

The live supplier (null when none was chosen or it was deleted; origin.supplierName keeps the saved name).

tanqoryExtSupplierCurrencyCurrencyCode!

The supplier's currency (purchasing information), a label: every amount of the purchase order, and its currency, is in the store currency.

tanqoryExtTags[String!]!
tanqoryExtTotalQuantityInt!

Units ordered (sum of line quantities).

tanqoryExtUnreceivedQuantityInt!

Units neither accepted, rejected nor canceled yet.

transfersInventoryTransferConnection!

Example request

A starting point: required arguments as variables and a few fields of the result. Replace the placeholders.

Set STORE_ID and TANQORY_ACCESS_TOKEN in your environment first (Make your first API call).

curl
curl -X POST "https://api.tanqory.com/admin/2026-10/stores/$STORE_ID/graphql" \
  -H "Authorization: Bearer $TANQORY_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  --data '{"query":"query InventoryPurchaseOrder($id: ID!) {\n  inventoryPurchaseOrder(id: $id) {\n    archivedAt\n    currency\n    dateCreated\n    id\n    name\n    orderedAt\n    status\n    tanqoryExtAcceptedQuantity\n    tanqoryExtClosedAt\n    tanqoryExtDisplayStatus\n  }\n}","variables":{"id":"gid://tanqory/Type/id"}}'

Built from commit c0b3fb3fdef7 · API version 2026-10