{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/hopdrive/json-schema/hopdrive-get-invoices-id-response-schema.json",
  "title": "GetInvoicesIdResponse",
  "x-generated": "2026-12-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/hopdrive-openapi-generated.yml#/components/schemas/GetInvoicesIdResponse",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer",
      "description": "Invoice identifier."
    },
    "status": {
      "type": "string",
      "description": "Current status of the invoice."
    },
    "due_amount": {
      "type": "number",
      "description": "Total amount due."
    },
    "paid_amount": {
      "type": "number",
      "description": "Total amount paid."
    },
    "discount_amount": {
      "type": "number",
      "description": "Total discount applied."
    },
    "balance_remaining": {
      "type": "number",
      "description": "Remaining balance."
    },
    "payments": {
      "type": "array",
      "description": "List of payment objects."
    },
    "start_datetime": {
      "type": "string",
      "description": "Invoice start datetime."
    },
    "end_datetime": {
      "type": "string",
      "description": "Invoice end datetime."
    },
    "customer": {
      "type": "object",
      "description": "Customer information."
    },
    "charges": {
      "type": "array",
      "description": "List of charge objects."
    }
  }
}