Invoicing
Overview
Invoice lifecycle for a project environment: list/get/create, issue, and cancel.
API
{pe} = /projects/{projectId}/environments/{environmentId}.
| Method | Path | Notes |
|---|---|---|
| GET | /invoicing/health | Health |
| GET/POST | /invoicing{pe}/invoices | RequireAuthorization |
| GET | /invoicing{pe}/invoices/{invoiceId} | RequireAuthorization |
| POST | /invoicing{pe}/invoices/{invoiceId}/issue | RequireAuthorization |
| POST | /invoicing{pe}/invoices/{invoiceId}/cancel | RequireAuthorization |
Clients
| Package | Runtime |
|---|---|
@vijihub/invoicing | server |
VijiHub.Invoicing | .NET |
Implementation
- Enable Invoicing on the environment.
- Create draft invoices, then
issuewhen ready. - Use
cancelfor issued invoices according to your business rules. - Pair with Billing when payments and invoices both apply.
Constraints
- All invoice APIs require authorization.
- Issuing/canceling may be irreversible depending on downstream fiscal rules — confirm status before calling.
- Keep fiscal provider credentials in environment configuration.