{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/vaquill-ai/json-schema/vaquill-ai-api-credit-pricing-response-schema.json",
  "title": "ApiCreditPricingResponse",
  "description": "Full pricing information for the API credit system. USD only.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/vaquill-ai-india-pricing-api-openapi.yml#/components/schemas/ApiCreditPricingResponse",
  "properties": {
    "dollarPerCredit": {
      "type": "number",
      "title": "Dollarpercredit",
      "description": "USD cost per 1 credit (0.01 means 1 credit = $0.01)."
    },
    "minCredits": {
      "type": "number",
      "title": "Mincredits",
      "description": "Minimum credits per purchase."
    },
    "maxCredits": {
      "type": "number",
      "title": "Maxcredits",
      "description": "Maximum credits per purchase."
    },
    "costs": {
      "items": {
        "$ref": "#/$defs/ApiCreditCostResponse"
      },
      "type": "array",
      "title": "Costs",
      "description": "Per-endpoint credit costs (USD)."
    }
  },
  "type": "object",
  "required": [
    "dollarPerCredit",
    "minCredits",
    "maxCredits",
    "costs"
  ],
  "$defs": {
    "ApiCreditCostResponse": {
      "properties": {
        "endpoint": {
          "type": "string",
          "title": "Endpoint",
          "description": "API endpoint path."
        },
        "operation": {
          "type": "string",
          "title": "Operation",
          "description": "Human-readable operation name."
        },
        "credits": {
          "type": "number",
          "title": "Credits",
          "description": "Credits consumed per call (1 credit = $0.01 USD)."
        },
        "usdCost": {
          "type": "number",
          "title": "Usdcost",
          "description": "Cost in USD per call."
        },
        "description": {
          "type": "string",
          "title": "Description",
          "description": "What the endpoint does."
        },
        "category": {
          "type": "string",
          "enum": [
            "account",
            "acts",
            "alerts",
            "session_laws",
            "statutes"
          ],
          "title": "Category",
          "description": "Endpoint category."
        },
        "regions": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Regions",
          "description": "Jurisdictions this endpoint serves (e.g. ['US'])."
        }
      },
      "type": "object",
      "required": [
        "endpoint",
        "operation",
        "credits",
        "usdCost",
        "description",
        "category"
      ],
      "title": "ApiCreditCostResponse",
      "description": "Single endpoint credit cost for the pricing matrix."
    }
  }
}