Skip to main content

purchaseOrderUpdates

Subscribe to real-time updates for a specific purchase order. This subscription provides live notifications when the specified purchase order is updated.

Authentication Requirements

Requires authentication and the supply:receive_po_updates permission for the brand that owns the purchase order.

Business Rules

  • Purchase order must exist and be accessible to the user
  • User must have access to the brand that owns the purchase order
  • Updates are delivered in real-time as they occur
  • Includes changes to PO status, milestones, items, and other fields

Error Conditions

  • Purchase order not found if the PO ID doesn't exist or is not accessible
  • Authentication required if not logged in
  • Permission denied if user lacks access to the PO's brand
purchaseOrderUpdates(
poId: ID!
): SupplySubscriptionsPayload!

Arguments

purchaseOrderUpdates.poId ● ID! non-null scalar

The Purchase Order ID for which updates will be received.

Type

SupplySubscriptionsPayload object