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
mutation draftOrderCreateMerchantCheckout($id: ID!) {
draftOrderCreateMerchantCheckout(id: $id) {
userErrors {
field
message
}
}
}
Input
{
"id": "gid://shopify/<objectName>/10079785100"
}
{
"id": "gid://shopify/<objectName>/10079785100"
}