Skip to main content

InvoiceCharge

idstringrequired

Unique identifier for the charge

namestringrequired

User friendly name of the charge

quantitydoublerequired

Number of units consumed

unitstringrequired

Consumption unit

totaldoublerequired

Total cost for the charge

tiers object[]required
  • Array [
  • namestringrequired
    quantitydoublerequired

    Number of units consumed

    starting_afterdoublerequired

    Starting point when this tier is applicable

    pricedoublerequired

    Rate per unit

    subtotaldoublerequired

    Total cost for the tier

  • ]
  • charged_quantitydoublerequired

    Actual number of units charged for

    InvoiceCharge
    {
    "id": "string",
    "name": "string",
    "quantity": 0,
    "unit": "string",
    "total": 0,
    "tiers": [
    {
    "name": "string",
    "quantity": 0,
    "starting_after": 0,
    "price": 0,
    "subtotal": 0
    }
    ],
    "charged_quantity": 0
    }