Skip to main content

importOrder

Creates an order that was placed before Pickware was used, e.g. when migrating the order history of another system. The order is written directly in the given states and no flows run, so an order imported as completed, cancelled, shipped or returned reserves no stock and gets no fulfillment order. orderDateTime is required. Calling the mutation again with the same idempotencyKey returns the order of the first call. Returns the order.

Required scopes​

The token needs the orders:write access scope.

importOrder(
input: CreateOrderInput!
states: ImportedOrderStatesInput!
): Order!

Arguments​

importOrder.input ● CreateOrderInput! non-null input​

importOrder.states ● ImportedOrderStatesInput! non-null input​

Type​

Order object​

A customer order.