InvoiceProcessedEvent

Represents the notification to the customers after the process started by the /commerce/billing/invoices request is complete. The process groups billing schedules by grouping keys and creates one invoice per grouping key. The InvoiceProcessedEvent platform event is a top-level object that contains a list of InvoiceProcessedDetailEvents platform events, where each detail event represents an attempt to create one invoice. This object is available in API version 62.0 and later.

describeSObjects()

SubscriberSupported?
Apex TriggersYes
FlowsYes
ProcessesYes
Pub/Sub APIYes
Streaming API (CometD)Yes

/event/InvoiceProcessedEvent.

No

This object is available when Billing is enabled.

  • InvoiceErrorDetailEvent

    Represents information about the errors that occurred during the processing of a /commerce/billing/invoices request. This object is included in an InvoiceProcessedEvent platform event message. You can’t subscribe to InvoiceProcessedEvent platform event directly. This object is available in API version 62.0 and later.

  • InvoiceProcessedDetailEvent

    Represents the notification to customers regarding the results of an attempt to create an invoice from billing schedules as part of /commerce/billing/invoices request. The InvoiceProcessedDetailEvent platform event contains the results of an attempt to create an invoice from one or more billing schedules that share a grouping key. Each InvoiceProcessedDetailEvent platform event for an action is grouped within the parent InvoiceProcessedDetailEvent platform event. This object is available in API version 62.0 and later.

  • Type: string
  • Properties: Nillable
  • Description: Reserved for future use.
  • Type: string
  • Properties: Nillable
  • Description: A universally unique identifier (UUID) that identifies a platform event message.
  • Type: InvoiceErrorDetailEvent[]
  • Properties: Nillable
  • Description: Information about errors that occurred during processing.
  • Type: InvoiceProcessedDetailEvent[]
  • Properties: Nillable
  • Description: A list of InvoiceProcessedDetailEvent records. Each record contains information about an attempt to create an invoice from one or more billing schedules that share a grouping key.
  • Type: boolean
  • Properties: Defaulted on create
  • Description: Required. Indicates whether the Create Order from Invoice action was successful (true) or not (false).

The default value is false.

  • Type: string
  • Properties: Nillable
  • Description: An identification (ID) value that’s populated by the system and refers to the position of the event in the event stream. Replay ID values aren’t guaranteed to be contiguous for consecutive events. A user can store a replay ID value and use it on resubscription to retrieve missed events that are within the retention window.
  • Type: string
  • Properties: Nillable
  • Description: A unique ID returned in the /commerce/billing/invoices response. Use this ID to identify the event for a specific request.