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,
};