Skip to main content
Version: 3.x

orderCreateFromCheckout

Create new order from existing checkout. Requires the following permissions: AUTHENTICATED_APP and HANDLE_CHECKOUTS.

Added in Saleor 3.2.

Note: this API is currently in Feature Preview and can be subject to changes at later point.

orderCreateFromCheckout(
id: ID!
metadata: [MetadataInput!]
privateMetadata: [MetadataInput!]
removeCheckout: Boolean = true
): OrderCreateFromCheckout

Arguments

id (ID!)

ID of a checkout that will be converted to an order.

metadata ([MetadataInput!])

Fields required to update the checkout metadata.

Added in Saleor 3.8.

privateMetadata ([MetadataInput!])

Fields required to update the checkout private metadata.

Added in Saleor 3.8.

removeCheckout (Boolean)

Determines if checkout should be removed after creating an order. Default true.

Type

OrderCreateFromCheckout

Create new order from existing checkout. Requires the following permissions: AUTHENTICATED_APP and HANDLE_CHECKOUTS.

Added in Saleor 3.2.

Note: this API is currently in Feature Preview and can be subject to changes at later point.