{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/shopsavvy-com/json-schema/shopsavvy-com-usage-schema.json",
  "title": "Usage",
  "x-generated": "2026-11-22",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/shopsavvy-com-api-openapi.json#/components/schemas/Usage",
  "type": "object",
  "properties": {
    "current_period": {
      "type": "object",
      "properties": {
        "start_date": {
          "type": "string",
          "format": "date"
        },
        "end_date": {
          "type": "string",
          "format": "date"
        },
        "credits_used": {
          "type": "integer"
        },
        "credits_limit": {
          "type": "integer",
          "description": "Monthly allowance, including referral bonus credits."
        },
        "credits_remaining": {
          "type": "integer"
        },
        "requests_made": {
          "type": "integer"
        }
      }
    },
    "usage_percentage": {
      "type": "number"
    },
    "subscription_required": {
      "type": "boolean",
      "description": "true when no active Data API plan is attached; credits_limit is then 0."
    },
    "subscription_status": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "active",
        "trialing",
        "past_due",
        null
      ]
    }
  }
}