Amberflo · Schema
Invoice
A customer invoice
Usage-Based BillingMeteringFinOpsAI Cost ManagementBillingMonetization
Properties
| Name | Type | Description |
|---|---|---|
| invoiceId | string | Unique invoice identifier |
| customerId | string | Customer identifier |
| startTime | integer | Invoice period start in Unix seconds |
| endTime | integer | Invoice period end in Unix seconds |
| totalAmount | number | Total invoice amount |
| currency | string | Invoice currency code |
| status | string | Invoice payment status |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/api-evangelist/amberflo/refs/heads/main/json-schema/billing-invoice-schema.json",
"title": "Invoice",
"description": "A customer invoice",
"type": "object",
"properties": {
"invoiceId": {
"type": "string",
"description": "Unique invoice identifier",
"example": "inv-500123"
},
"customerId": {
"type": "string",
"description": "Customer identifier",
"example": "customer-123456"
},
"startTime": {
"type": "integer",
"description": "Invoice period start in Unix seconds",
"example": 1718100000
},
"endTime": {
"type": "integer",
"description": "Invoice period end in Unix seconds",
"example": 1718186400
},
"totalAmount": {
"type": "number",
"description": "Total invoice amount",
"example": 99.5
},
"currency": {
"type": "string",
"description": "Invoice currency code",
"example": "USD"
},
"status": {
"type": "string",
"description": "Invoice payment status",
"enum": [
"DRAFT",
"PENDING",
"PAID",
"VOID"
],
"example": "PAID"
}
}
}