purchaseOrdersUpdates
Subscribe to real-time updates for all purchase orders within a specific company. This subscription provides live notifications when purchase orders are created, updated, or their status changes.
Authentication Requirements
Requires authentication and the supply:receive_po_updates permission for the
specified company.
Business Rules
- Only receives updates for purchase orders belonging to the specified company
- User must have access to the company to establish the subscription
- Updates are delivered in real-time as they occur
- Includes changes to PO status, milestones, items, and other fields
Error Conditions
- Authentication required if not logged in
- Permission denied if user lacks access to the specified company
purchaseOrdersUpdates(
brandId: ID
companyId: ID
): SupplySubscriptionsPayload!
Arguments
purchaseOrdersUpdates.brandId ● ID deprecated scalar common
DEPRECATED
Brand is becoming a product-only attribute. Use company_id instead. If provided, purchase order updates will be received in the brand's company context.
The Brand ID for which purchase order updates will be received.
purchaseOrdersUpdates.companyId ● ID scalar common
The Company ID for which purchase order updates will be received.