InvoiceProcessedEvent

Notifies subscribers when 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. InvoiceProcessedEvent is a top-level object that contains a list of InvoiceProcessedDetailEvents, where each detail event represents an attempt to create one invoice. This object is available in API version 55.0 and later.

Supported Calls 

describeSObjects()

Supported Subscribers 

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

Subscription Channel 

/event/InvoiceProcessedEvent

Event Delivery Allocation Enforced 

No

Special Access Rules 

This object is available when Subscription Management is enabled.

Fields 

CorrelationIdentifier 

Type: string

Properties: Nillable

Description: Reserved for future use.

EventUuid 

Type: string

Properties: Nillable

Description: A universally unique identifier (UUID) that identifies a platform event message.

InvoiceErrorDetailEvent 

Type: InvoiceErrorDetailEvent[]

Properties: Nillable

Description: Contains information about errors that occurred during processing.

InvoiceProcessedDetailEvent 

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.

IsSuccess 

Type: boolean

Properties: Defaulted on create

Description: Indicates whether the Create Order from Invoice action was successful. The default value is false.

ReplayId 

Type: string

Properties: Nillable

Description: Represents an ID value that is 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 subscriber can store a replay ID value and use it on resubscription to retrieve missed events that are within the retention window.

RequestIdentifier 

Type: string

Properties: Nillable

Description: The unique ID returned in the /commerce/billing/invoices response. Use this ID to identify the event for a specific request.