Creating a business account on submitting an order via frontend api #612
Replies: 3 comments 11 replies
-
|
This guide has some information on how frontend permissions work: https://developers.swell.is/guides/opening-content-permissions It's not possible to update these fields through the cart as it could lead to some security risk allowing guest users to change fields on authenticated accounts. Instead I would recommend using the |
Beta Was this translation helpful? Give feedback.
-
|
Actually I do not see why providing account type, vat-number and locale are adding more risks upon order submission, at least not for Europeans users. |
Beta Was this translation helpful? Give feedback.
-
|
In the standard Swell checkout there’s currently no option to collect a customer’s EU VAT ID. For B2B buyers in the EU, this is a critical field, they often expect a fast, B2C-style checkout flow where they can enter their VAT number on the spot for invoicing (without pre-registration). Has anyone implemented this successfully via the “Add script” option or any API workaround? Or should one use a custom checkout for this. Still trying to figure Swell out. Thanks. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to set account type to 'business' using await swell.cart.update before submitting the cart to an order. I get an error stating I am not allowed to update that field. So how to create a business account on submitting an order via frontend api? I cannot imagine Swell doesn't allow that.
Beta Was this translation helpful? Give feedback.
All reactions