Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Customer State Endpoint & Webhook #5143

Open
birkjernstrom opened this issue Mar 3, 2025 — with Linear · 0 comments
Open

Customer State Endpoint & Webhook #5143

birkjernstrom opened this issue Mar 3, 2025 — with Linear · 0 comments
Assignees
Labels
dx Efforts to enhance developer experience for creators feature Net new feature development

Comments

Copy link
Member

birkjernstrom commented Mar 3, 2025

Resource specific API endpoints & webhooks are great and especially for more advanced integrations to have complete control.

However, a lot of customers can go a long way (and much easier) if they could fetch a customer (using their own external ID) to get their complete state vs. having to integrate numerous endpoints. Combined with a webhook for the same "aggregated state" once it changes.

E.g an endpoint+webhook that would return the customer along with:

  • Active subscriptions
  • Active benefits
  • Active meters (soon)

These resources should be "thin" to avoid an unnecessarily large response object, i.e no embedded sub-resources on the above by default unless needed.

In addition, all our events related to these resources which have their own dedicated webhooks should fire a customer_state.changed event (and webhook). We should debounce this to avoid it being fired repeatedly within short succession since a lot of events are async and trigger one another for the same fundamental outcome, e.g subscription created.

@birkjernstrom birkjernstrom added dx Efforts to enhance developer experience for creators feature Net new feature development labels Mar 3, 2025 — with Linear
@github-project-automation github-project-automation bot moved this to Backlog in Backlog Mar 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dx Efforts to enhance developer experience for creators feature Net new feature development
Projects
Status: Backlog
Status: No status
Development

No branches or pull requests

2 participants