AlphaAlpha Docs
API ReferenceBilling admin

Preview next billing invoice

Preview the line items that would be generated for the current billing period

GET
/billing/admin/tenants/{tenantId}/invoice-preview
AuthorizationBearer <token>

In: header

Path Parameters

tenantId*string

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "http://localhost:18080/api/v1/billing/admin/tenants/string/invoice-preview"
{
  "alreadyGenerated": true,
  "lines": [
    {
      "description": "string",
      "quantity": 0.1,
      "subdescription": "string",
      "taxRate": 0.1,
      "total": 0.1,
      "unitPrice": 0.1
    }
  ],
  "period": "string",
  "totalExcludingTax": 0.1,
  "totalTax": 0.1,
  "totalWithTax": 0.1
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}