Amberflo · JSON Structure

Billing Invoice Structure

A customer invoice

Type: object Properties: 7
Usage-Based BillingMeteringFinOpsAI Cost ManagementBillingMonetization

Invoice is a JSON Structure definition published by Amberflo, describing 7 properties. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

invoiceId customerId startTime endTime totalAmount currency status

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/amberflo/refs/heads/main/json-structure/billing-invoice-structure.json",
  "name": "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": "int32",
      "description": "Invoice period start in Unix seconds",
      "example": 1718100000
    },
    "endTime": {
      "type": "int32",
      "description": "Invoice period end in Unix seconds",
      "example": 1718186400
    },
    "totalAmount": {
      "type": "double",
      "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"
    }
  }
}