Skip to main content

supplyChainUpdatesForParty

Subscribe to real-time notifications for supply chain events targeted to the authenticated party. This subscription delivers feedback from asynchronous operations, errors, and party-specific events within the supply chain module.

Authentication Requirements

Requires authentication and the supply:receive_notifications permission.

Business Rules

  • User must be authenticated
  • Only receives notifications targeted to the subscribed party
  • Updates are delivered in real-time while connected
  • Primarily used for async job feedback and error notifications

Use Cases

  • Job completion notifications
  • Error feedback from async operations
  • Validation errors specific to user actions
  • Success confirmations for critical operations

Error Conditions

  • Authentication required if not logged in
  • Invalid party error if party_id doesn't match authenticated user
  • Permission denied if user lacks notification permissions
supplyChainUpdatesForParty(
brandId: ID
partyId: ID!
): SupplySubscriptionsPayload!

Arguments

supplyChainUpdatesForParty.brandId ● ID scalar

Optional: Filter notifications to a specific brand.

supplyChainUpdatesForParty.partyId ● ID! non-null scalar

The ID of the party that will receive notifications.

Type

SupplySubscriptionsPayload object