Skip to content

feat(multi entities): Add REST endpoint and GraphQL mutation to update a billing entity #3563

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

Merged
merged 7 commits into from
May 14, 2025

Conversation

ancorcruz
Copy link
Contributor

Roadmap Task

👉 https://getlago.canny.io/feature-requests/p/support-billing-from-multiple-entities

Context

Users who invoice the same products across multiple entities face the challenge of managing separate Lago organizations.

This requires duplicating all billable metrics, plans, and setup, while also implementing additional logic to handle two different API keys and ensure the correct one is used for each affiliated entity. This process adds complexity and overhead to their billing operations.

Description

Add PUT /api/v1/billing_entity/:billing_entity_code REST endpoint and Billing Entity Update GraphQL mutation to update a billing entity.

Also fixes the billing entities update service to also allow updating the billing entity name as it was missing.

@ancorcruz ancorcruz self-assigned this Apr 29, 2025
@ancorcruz ancorcruz requested a review from annvelents April 30, 2025 07:54
@ancorcruz ancorcruz marked this pull request as ready for review April 30, 2025 07:54
ancorcruz added 6 commits May 14, 2025 12:36
... to update a billing entity

 ## Roadmap Task

👉 https://getlago.canny.io/feature-requests/p/support-billing-from-multiple-entities

 ## Context

Users who invoice the same products across multiple entities face the
challenge of managing separate Lago organizations.

This requires duplicating all billable metrics, plans, and setup, while
also implementing additional logic to handle two different API keys and
ensure the correct one is used for each affiliated entity. This process
adds complexity and overhead to their billing operations.

 ## Description

Add PUT /api/v1/billing_entity/:billing_entity_code REST endpoint and
Billing Entity Update GraphQL mutation to update a billing entity.

Also fixes the billing entities update service to also allow updating
the billing entity name as it was missing.
@ancorcruz ancorcruz force-pushed the feat/multientities/update-billing-entity-endpoints branch from dd225bb to 00421b5 Compare May 14, 2025 11:37
@ancorcruz ancorcruz merged commit 38a0eb3 into main May 14, 2025
14 checks passed
@ancorcruz ancorcruz deleted the feat/multientities/update-billing-entity-endpoints branch May 14, 2025 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants