# draftOrderPrepareForBuyerCheckout - admin - MUTATION Version: unstable ## Description Updates a draft order before sending the invoice to the buyer by configuring settings relevant to the draft order. ### Access Scopes `write_draft_orders` access scope. Also: The user must have access to manage draft orders. ## Arguments * [allowDiscountCodesInCheckout](/docs/api/admin/unstable/scalars/Boolean): Boolean - Whether discount codes are allowed during checkout of this draft order. * [bypassCartValidations](/docs/api/admin/unstable/scalars/Boolean): Boolean - Whether to bypass cart validations on this draft order. * [id](/docs/api/admin/unstable/scalars/ID): ID! - The draft order to prepare for buyer checkout. * [lockPricesForBuyer](/docs/api/admin/unstable/enums/LockDraftOrderPricesForBuyer): LockDraftOrderPricesForBuyer - Whether to create price locks when preparing this draft for buyer checkout. ## Returns * [draftOrder](/docs/api/admin/unstable/objects/DraftOrder): DraftOrder The prepared draft order. * [userErrors](/docs/api/admin/unstable/objects/UserError): UserError! The list of errors that occurred from executing the mutation. ## Examples