BuildShipBBuildShip
Powered by
captain_cold.C
BuildShip•2y ago•
3 replies
captain_cold.

How to create multiple subscriptions with Lemon Squeezy in Buildship?

I've two subscriptions in the same store, one is monthly & one is yearly. I've created two products for each subscription. Now depending on which subscription user creates, I want to update it in my database. But in buildship, there's no option to select product. There's only one Events trigger which is "subscription created". How can I update depending upon which product is purchased by the user. Please help
Solution
Hey @captain_cold., for the use case you mentioned with two products in the same store with monthly and yearly subscriptions, the
subscription created
subscription created
event in the Lemon Squeezy trigger should suffice.

Here’s some insight on how you can handle the differenciation between the subscriptions for the two products. If you look at the Lemon Squeezy documentation, the subscription object is the payload which would be returned every time a subscription is created. As per the docs, the payload would have a
product_id
product_id
property which would specify the product.

You can use the switch or the branch nodes to handle the cases for different product depending upon your use case.
Jump to solution
BuildShip banner
BuildShipJoin
Join founders, builders, devs using Low-code / No-code to create backend, APIs, scheduled Jobs, automation, AI workflows
7,971Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

How to create a auth2 flow using Buildship
ingridandrade.offgridIingridandrade.offgrid / ❓・buildship-help
2y ago
Buildship with Webstudio
John Ope from CIQ LibrariesJJohn Ope from CIQ Libraries / ❓・buildship-help
2y ago
How to upload files to BuildShip database
BrianBBrian / ❓・buildship-help
11mo ago
BuildShip to integrate Perplexity with Github
keeganKkeegan / ❓・buildship-help
16mo ago