✨ Add one time purchases to customer state #6584
Replies: 2 comments 2 replies
-
can you share what do you mean by this? to get the customer state, you need to provide the customer ID (vs to obtain the Polar customer ID) |
Beta Was this translation helpful? Give feedback.
-
The mai goal of the customer state is to give a "snapshot" of the current customer state — in particular, "What they should have access to in the product?". If we start to add orders, it'll become really huge (each subscription cycle creates an order!), and we'll need to send an update webhook almost constantly. If the goal is to create a customer portal, then I think the right way to go is to use the other API to retrieve the data as needed. No problem with that. If the goal is to check whether the customer has a particular access to something after a one-time purchase, then I would recommend to rely on a custom benefit. The state embeds all granted benefits, no matter if they come from a one-time purchase or a subscription. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi 👋🏻
I recently began using Polar and discovered that the customer state API returns subscription and usage-based billing information, but it doesn’t include one-time purchase data. This has two drawbacks:
I hope this explanation clarifies the situation and makes developer life easier.
Best Regards,
JD Solanki
Beta Was this translation helpful? Give feedback.
All reactions