Anchor to draftOrderCreateMerchantCheckoutdraft
draftOrderCreateMerchantCheckout
mutation
Requires access scope. Also: The user must have access to pay draft orders by credit card. Requires
access scope.
Creates a merchant checkout for the given draft order.
Anchor to Arguments
Arguments
- •ID!required
Specifies the Draft order's id that we create the checkout for.
Was this section helpful?
Anchor to DraftOrderCreateMerchantCheckoutPayload returnsDraftOrderCreateMerchantCheckoutPayload returns
- Anchor to userErrorsuser•
Errors [UserError!]! non-null The list of errors that occurred from executing the mutation.
Was this section helpful?
Mutation Reference
1mutation draftOrderCreateMerchantCheckout($id: ID!) {2 draftOrderCreateMerchantCheckout(id: $id) {3 userErrors {4 field5 message6 }7 }8}
Input
1{2 "id": "gid://shopify/<objectName>/10079785100"3}
{
"id": "gid://shopify/<objectName>/10079785100"
}