Imported orders
This section describes how to identify orders that are imported from other systems.
In some scenarios we can have orders that are placed in other systems and later migrated to Litium. To identify these orders, we have "Imported" field in order model and that field will have value = true if the order was imported.
"Imported" field has default value = false.
Note that marking an order as imported does not affect the customer's commercial agreement with Litium. All orders are included in our price model for Litium commerce cloud as default.
Sample code to set the value for "Imported" field when creating an order.
var sampleOrder = new SalesOrder
{
Id = this.UniqueString(),
CurrencyCode = "SEK",
CountryCode = "SE",
MarketSystemId = Guid.NewGuid(),
ChannelSystemId = Guid.NewGuid(),
OrderDate = DateTimeOffset.Now,
AdditionalInfo = new Dictionary<string, object> { { "key", "value" } },
Imported = true,
};
When creating an imported orders you do not have to link it to a payment. The platform will still allow shipments to be created and shipped like regular orders, however without attempting to capture the payment in the process. Additionally, imported orders can be finalized using the Admin API, or the Connect ERP API.
You can download a sample Postman collection demonstrating how to fulfill and finalize imported orders.
State transitions for imported Orders
Standard state transition validations do not apply to imported orders. The order state can be updated in the following sequence.