You are here:
Understand the Order of Execution for Place Sales Transaction
When you create or update a quote or order using the Place Sales Transaction API, Revenue Cloud processes the request through a defined order of execution. This order describes how configuration, pricing, Apex hooks, and automation run during transaction processing. Understanding this order helps you determine where pricing logic runs and how context data is processed when using Place Sales Transaction.
When Place Sales Transaction processes a request, Revenue Cloud performs these steps in sequence.
-
Saves the sales transaction header.
- Executes triggers associated with the transaction header.
- Synchronizes supported context data back into the transaction context when context data is included in the request payload.
- Hydrates the transaction with data required for configuration and pricing.
- Applies applicable configuration logic to the transaction.
-
Performs pricing.
- Runs the pre-pricing Apex hook, if defined.
- Runs pricing logic.
- Runs the post-pricing Apex hook, if defined.
-
Persists data from the transaction context.
- Executes triggers for affected records.
- Synchronizes supported context data back into the response when context data is included in the request payload.
- Executes record-triggered flows and other custom logic based on the persisted data.

