How to automatically link existing Stripe customers to Memberstack users via API without manual intervention? Answered

Post author
Fabian Colnaric

Hello Community,

I have a workflow that sends standalone payment links via email using Stripe and the API. To properly assign existing customers, I would like to create a Stripe customer in the flow who already exists in Memberstack. I can do this manually (Create Stripe Customer),

but is it also possible to automate this process via the API?

Looking forward to your response!

Best regards,

Comments

8 comments

  • Comment author
    Chukwudi
    • Official comment

    Hi Fabian,

    Currently, the automation you mentioned isn’t possible at the moment.

    However, you can explore using the Memberstack API to retrieve user information and then create corresponding customers in Stripe via their API.

    To set this up, you could use a server-side script, a webhook, or automation tools like Make or Zapier to trigger this process whenever a new user is added to Memberstack or when syncing existing users.

    While I haven’t personally tested this approach, it’s worth giving it a try to see if it meets your requirements.

  • Comment author
    Patrick Kool

    Chukwudi

    I have a similar use case Fabian Colnaric

    Your suggestion won't work, because the customer won't be connected to the user in Memberstack. This means that their subscription won't show up in Memberstack.

    I would like to allow people to pay through invoice and online payment. Everyone who pays for invoice should automatically be created in Stripe, then a subscription is created and an invoice is sent. This is all possible. The only problem is that we can't add the Stripe customer ID to the Memberstack user ourselves via the API.

    0
  • Comment author
    Tyler Bell

    Hey Patrick, not the from API but we do have a feature in progress that will allow you to set it via the dashboard 🙂

    What's your use case?

    0
  • Comment author
    Patrick

    Tyler Bell We allow users to pay via invoice in Stripe. Unfortunately I can't offer that option at checkout in Stripe, so what I was thinking is:

    • User clicks 'Pay via invoice' on the sign up form, which generates a Memberstack user
    • An automation is triggered that creates a Stripe customer & subscription and sends the invoice.

    Stripe offers these option. The only downside is that I can't link an existing Stripe customer with a Memberstack user.

    Ideally I can update the Memberstack user's Stripe customer ID via the API, which connects the existing customer in Stripe to a member in Memberstack.

    The workaround is that my client gets an email, then goes to Memberstack and clicks 'Create user in Stripe' to then manually create the subscription and send the invoice.

    0
  • Comment author
    Tyler Bell

    Patrick would a configuration option that automatically creates a stripe customer for new members help here?

    I imagine the toggle would say something like "Always Create a Stripe Customer on Signup"

    that way you'd then be able to rely on the customer already created for the member

    https://www.loom.com/share/7eec701a34aa43629100aa7edfad84cd?sid=33ad9107-0bf0-442d-a889-0a0b5e3c8b35

    0
  • Comment author
    Patrick

    Wow that’s amazing!!

    Please do turn it on for me, then I’ll build the invoicing flow on top of it. What do you need from me to turn it on?

    Kudos for the speed as well. I’ve never seen a platform that implements user feedback as fast as Memberstack!

    0
  • Comment author
    Tyler Bell

    Just use your appId 🙂

    0
  • Comment author
    Patrick

    Legend. Thanks!! Tyler Bell

    0

Please sign in to leave a comment.