Skip to main content
Anchor to draftOrderPrepareForBuyerCheckout

draftOrderPrepareForBuyerCheckout

mutation

Requires write_draft_orders access scope. Also: The user must have access to manage draft orders.

Updates a draft order before sending the invoice to the buyer by configuring settings relevant to the draft order.

Anchor to allowDiscountCodesInCheckoutallowDiscountCodesInCheckout
•Boolean

Whether discount codes are allowed during checkout of this draft order.

Anchor to bypassCartValidationsbypassCartValidations
•Boolean

Whether to bypass cart validations on this draft order.

•ID!
required

The draft order to prepare for buyer checkout.

•LockDraftOrderPricesForBuyer

Whether to create price locks when preparing this draft for buyer checkout.


Was this section helpful?

Anchor to DraftOrderPrepareForBuyerCheckoutPayload returnsDraftOrderPrepareForBuyerCheckoutPayload returns

•DraftOrder

The prepared draft order.

•[UserError!]!
non-null

The list of errors that occurred from executing the mutation.


Was this section helpful?