Edit in GitHubLog an issue
Thanks to Atwix for contributing this topic!

Step 8. Set email on the cart (guest customers only)

If you place an order as a guest user, you must set a quote email address. Use the setGuestEmailOnCart mutation query for that.

{ CART_ID } is the unique shopping cart ID from Step 2. Create empty cart.

Request:

Copied to your clipboard
mutation {
setGuestEmailOnCart(input: {
cart_id: "{ CART_ID }"
email: "guest@example.com"
}) {
cart {
email
}
}
}

Response:

Copied to your clipboard
{
"data": {
"setGuestEmailOnCart": {
"cart": {
"email": "guest@example.com"
}
}
}
}

Verify this step

There are no additional verification steps. quote.customer_email is displayed for administrator on back-end side.

  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2024 Adobe. All rights reserved.