Skip to main content

placeOrder

Creates an order that was placed in an external system, e.g. on a marketplace, with the prices that system calculated. The order starts out open, with an open payment and an open delivery, reserves stock and is fulfilled like any other order. Runs the flows configured for a placed order (checkout.order.placed), e.g. the order confirmation mail. Calling the mutation again with the same idempotencyKey returns the order of the first call, without running the flows again. Returns the order.

Required scopes​

The token needs the orders:write access scope.

placeOrder(
input: CreateOrderInput!
): Order!

Arguments​

placeOrder.input ● CreateOrderInput! non-null input​

Type​

Order object​

A customer order.