{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/evictionsapi-com/json-schema/evictionsapi-com-charge-schema.json",
  "title": "Charge",
  "description": "An amount owed to the platform for a case: the platform fee, or court or service costs passed on at cost. The attorney's legal fee is never a charge here: it is separate and paid to the attorney.",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/evictionsapi-com-openapi-openapi.json#/components/schemas/Charge",
  "type": "object",
  "required": [
    "id",
    "kind",
    "description",
    "amountCents",
    "status",
    "collection",
    "paidAt",
    "createdAt"
  ],
  "properties": {
    "id": {
      "type": "string"
    },
    "kind": {
      "enum": [
        "platform_fee",
        "court_costs",
        "service_costs",
        "other"
      ]
    },
    "description": {
      "type": "string"
    },
    "amountCents": {
      "type": "integer",
      "description": "US cents."
    },
    "status": {
      "enum": [
        "due",
        "paid",
        "void",
        "refunded"
      ]
    },
    "collection": {
      "enum": [
        "checkout",
        "automatic"
      ],
      "description": "How the charge is paid. `checkout`: on the payment page (`POST /v1/cases/{id}/charges/{chargeId}/checkout`). `automatic`: a cost of a full-service case, taken from the saved card (`/v1/payment-method`); it is never paid by checkout."
    },
    "paidAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    }
  }
}