Orders Import

Orders can also be imported via the Import API endpoint so you don’t have to create a cart before.

Representations

OrderImportDraft

An order import draft is a snapshot of an order at the time it was imported.

LineItemImportDraft

A line item import draft is a snapshot of a product variant at the time it was imported with the order.

ProductVariantImportDraft

Create an Order by Import

Creates directly an Order by importing it instead of creating it from a Cart. Each LineItem is referencing some existing product variant. You have 3 ways to specify a product reference:

Endpoint: /{projectKey}/orders/import
Method: POST
OAuth2 Scopes: manage_orders:{projectKey}
Request Body Representation: OrderImportDraft
Response Representation: Order

Specific Error Codes:

Importing an order produces the OrderImported message.

comments powered by Disqus