How to create Customers by API?

I’m currently evaluating Snipcart as a e-commerce platform for an existing project.

I’ve blocked on something crucial though; My users already have an account, and I cannot ask them to recreate an account again in order to be able to follow their purchases.

So how can I link my current user database to the purchases made through Snipcart ?

I ran into this issue early on as well.

Unless something has changed, this was what was concluded for me:
There is no support for 3rd-party authentication or user migration.

However, you can use the order webhooks to catch orders and store them in your own database keyed to your users. Personally, I use Auth0 for authentication and I use Firebase to store orders belonging to my users.

The only key limitation of this that I’ve run into is that you can’t store the customers’ payment details because their account isn’t through Snipcart.


As an aside, if anybody from Snipcart reads this… I attempted to provide links to the relevant snipcart documentation but received an error messaging indicating that links to the “docs.snipcart” domain are not allowed.

1 Like

Hi @champion07,

@TorchlightPress is correct here; it is not possible to create customers through the API or connect Snipcart to an external authentication system for the time being.

Our customers dealing with such scenarios are usually keeping the internal user id in the metadata of the cart.

You can use our JavaScript API to set metadata values on a cart, these values will be available through our API and Webhooks and visible in the dashboard as well.

This way, you can track who in your system placed the order.

As for the links @TorchlightPress, it looks like some of your posts were flagged by one of our admin by mistake. We’ll make sure to be extra careful next time!

1 Like

Also on Auth0 and looking to use Snipcart. Is support for either 3rd-party authentication or user migration being planned?