Skip to main content

orderBulkCreate

Creates multiple orders.

Added in Saleor 3.14
This API is currently in Feature Preview and can be subject to changes at later point.
Requires MANAGE_ORDERS_IMPORTpermission.
orderBulkCreate(
errorPolicy: ErrorPolicyEnum
orders: [OrderBulkCreateInput!]!
stockUpdatePolicy: StockUpdatePolicyEnum
): OrderBulkCreate

Arguments

orderBulkCreate.errorPolicy ● ErrorPolicyEnum enum miscellaneous

Policies of error handling. DEFAULT: REJECT_EVERYTHING

orderBulkCreate.orders ● [OrderBulkCreateInput!]! non-null input orders

Input list of orders to create. Orders limit: 50.

orderBulkCreate.stockUpdatePolicy ● StockUpdatePolicyEnum enum miscellaneous

Determine how stock should be updated, while processing the order. DEFAULT: UPDATE - Only do update, if there is enough stocks.

Type

OrderBulkCreate object orders

Creates multiple orders.

Added in Saleor 3.14
This API is currently in Feature Preview and can be subject to changes at later point.
Requires MANAGE_ORDERS_IMPORTpermission.