You can now run billing for each client workspace through the Nedzo public API. Turn rebilling on, set your markup, add or take credits, read usage and manage payment methods, all from your own CRM or platform. Your clients never have to log in to Nedzo to pay.
This is for agencies that sell Nedzo under their own brand. You already own the client relationship, and now the billing lives with you too.
Why agencies want a workspace billing API
Say you run a dozen clients, each with its own AI agent. Your billing lives in your system and their wallet lives in Nedzo. So every payment means jumping between two places.
With the API, a client pays you in your portal. Your platform adds the credits to their workspace on its own. Their AI agent keeps answering calls, and you never open another tab.
What the billing API covers
Rebilling and markup
Turn rebilling on or off for each workspace and set a markup percentage. Stripe Connect has to be set up before you can turn rebilling on.
Wallet balance, credits and debits
Read a workspace's balance, add credits or take them away. Every credit and debit needs an amount and a reason. Nedzo saves each one as a transaction and writes it to an audit log, so you can trace every change to a balance.
Usage and transaction history
Pull a workspace's transactions, page through them, and filter by date and type. You can also get a usage summary by type for any date range. Use it to build client invoices or to show usage in your own dashboard.
Auto top-up
Read and change a workspace's auto top-up settings. You set the balance that starts a top-up and the amount it adds.
Payment methods
List a workspace's payment methods, start the setup for a new one, and attach it to the workspace.
The endpoints
They all sit under each workspace's billing path:
- PATCH /v1/workspaces/{id}/billing/rebilling
- GET /v1/workspaces/{id}/billing/balance
- POST /v1/workspaces/{id}/billing/wallet/credit
- POST /v1/workspaces/{id}/billing/wallet/debit
- GET /v1/workspaces/{id}/billing/transactions
- GET /v1/workspaces/{id}/billing/usage
- GET and PATCH /v1/workspaces/{id}/billing/auto-topup
- GET /v1/workspaces/{id}/billing/payment-methods
- POST /v1/workspaces/{id}/billing/payment-methods/setup-intent
- POST /v1/workspaces/{id}/billing/payment-methods/attach
You'll find them in the OpenAPI schema with the rest of the public API.
Built to keep client money safe
Every endpoint needs a valid API key, and a key can only touch workspaces in its own account. Nedzo rate limits credit and debit calls. A balance change goes through in full or not at all, so it can't stop halfway. Internal payment ids stay out of the responses.
Want to bill clients under your own brand? Start a free trial.
