{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/curlec/json-schema/curlec-item-schema.json",
  "title": "Item",
  "description": "A reusable catalog item used in invoice line items.",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/curlec-items-api-openapi.yml#/components/schemas/Item",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Item ID. Prefix: item_"
    },
    "entity": {
      "type": "string",
      "enum": [
        "item"
      ]
    },
    "active": {
      "type": "boolean",
      "description": "Whether the item is active and available for use in new invoices."
    },
    "amount": {
      "type": "integer",
      "description": "Item price in paise (smallest INR unit)."
    },
    "unit_amount": {
      "type": "integer",
      "description": "Per-unit price in paise."
    },
    "currency": {
      "type": "string",
      "default": "INR"
    },
    "name": {
      "type": "string",
      "description": "Display name of the item."
    },
    "description": {
      "type": "string"
    },
    "created_at": {
      "type": "integer"
    }
  }
}