Create a Guest Order? #42
-
Your Create Account API, https://developers.swell.is/backend-api/orders/create-an-order, says that an Account ID is required for an order. If so, how do you create guest orders on the frontend? We have situations where users don't want to have an account with Swell and just want to checkout as guests. Is this not possible? Do we need to create an account on the backend for every order, even if its a guest account? I see that the cart itself has a "guest" boolean field, so presumably people can checkout as guests. if so, why is Account ID required for an order and what do we use there for a guest order? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
From a data model point of view, an account is considered a guest account if it doesn't have a password. The |
Beta Was this translation helpful? Give feedback.
From a data model point of view, an account is considered a guest account if it doesn't have a password. The
guest
field is set automatically if the account does not have a password.