Create Orders From Quote Action
Create multiple orders from a single quote instead of a single order, ensuring easier order management and fulfillment operations.
- You can create an order by selecting a subset of quote line items.
- You can split a quote into multiple orders based on quote line group.
- You can split a quote into multiple orders based on a quote line item field, such as Product2.
See Considerations for Creating Multiple Orders from a Quote. This action is available in API version 65.0 and later.
Ensure the Advanced Order Creation From Quote toggle from Revenue Settings from Setup is enabled to access this action.
URI: /services/data/v68.0/actions/standard/createOrdersFromQuote
Formats: JSON, XML
HTTP Methods: POST
Authentication: Authorization: Bearer TOKEN
Where TOKEN is a placeholder for your OAuth access token.
| Input | Type | Description |
|---|---|---|
orderCreationMethod | string | If specified, represents the method used to create orders. Valid values are CreateSingleOrder—Creates a single order from a quote. This method creates the order header and order line items synchronously; CreateOrderByGroup—Create multiple orders based on a quote line group; or CreateOrderByField—Create multiple orders based on a specified quote line item field. If you’re creating multiple orders from a quote, the order header records are created synchronously and order line items are created asynchronously. If unspecified, the default value is CreateSingleOrder. |
orderCreationParameters | Apex-defined | An Apex ConnectApi.OrderCreationParametersInputRepresentation record that contains the additional parameters required by the specified order creation method. |
quoteId | id | Required. The ID of the source quote tied to the orders created. |
quoteLineItemIds | id | List of quote line item IDs to create the orders from. If specified, the orders are created for the list of provided quote line items. If unspecified, orders are created for all quote line items. |
| Output | Type | Description |
|---|---|---|
orderIds | id | List of the created order IDs. |
requestId | string | The request ID used to query the async status. |
statusUrl | string | The status URL that’s used to track the async status. |
Create a Partial Order From a Quote
This example shows a sample request to create a partial order from a quote.
This example shows a sample successful response.
Create Orders From a Quote Based on a Quote Line Group
This example shows a sample request to create orders from a quote based on a quote line group.
This example shows a sample successful response.
Create Orders From a Quote Based on a Quote Line Item Field
This example shows a sample request to create orders from a quote based on a quote line item field
This example shows a sample successful response.