Salesforce B2C Commerce 23.5 > B2C Commerce API > B2C Commerce Pipelets > Order
Pipelet CreateOrder
This pipelet creates and places an Order from the specified Basket. An optional OrderNo can be specified. Otherwise, the pipelet generates and assigns a number for the new order.

If the order could be created successfully, the basket is marked for removal.

This pipelet does not create an order and ends on the ERROR exit if any of the following conditions are encountered:

The pipelet ignores all empty shipments of the basket. A shipment is empty if

If the basket contains ProductLineItems with associated ProductListItems, the pipelet updates the purchase history of these ProductListItems. For example, if the basket contains items added from a GiftRegistry, the purchase history of the respective GiftRegistry items is updated.

If the basket represents an order that is being edited, this pipelet:

Please note that this pipelet might result in an order with a different customer ID than the originating registered customer attached to the session. This happens if a registered customer logs in with the "RememberMe" flag set to true, but is later logged out (either explicitly, or automatically via session expiration) before calling this pipelet. This is due to the internal order creation logic, which creates a new guest customer and attaches it to the order in such cases. To avoid this situation, have your custom code verify that the customer is authenticated before it calls this pipelet.

The inventory items reserved previously for the order are finalized when the transaction is committed. Since api version 2.10.6 this is only the delta changes compared with an order being replaced.

Group:
Order
Flags:
Error Connector
Transaction Required
Configuration Properties
CreateCustomerNo  :  Boolean (Optional)
If set to 'true', the pipelet creates a customer number and assigns it to the new order if the order is placed by an anonymous customer. If set to 'false' or not set, no customer number is created.
Permissible Values:
Don't create customer no
Create customer no
Input Parameters
Basket  :  Basket (Required)
OrderNo  :  String (Optional)
Optional order no. If not specified, the pipelet creates an order no.
Output Parameters
Order  :  Order  :  (Required)
X Privacy Update: We use cookies to make interactions with our websites and services easy and meaningful, to better understand how they are used. By continuing to use this site you are giving us your consent to do this. Privacy Policy.