{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/exodus-com/json-schema/exodus-com-subscription-detail-schema.json",
  "title": "SubscriptionDetail",
  "x-generated": "2026-11-16",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/exodus-com-openapi.json#/components/schemas/SubscriptionDetail",
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "enum": [
        "subscription"
      ]
    },
    "id": {
      "type": "string"
    },
    "subscriber": {
      "type": "string"
    },
    "external_customer_id": {
      "type": [
        "string",
        "null"
      ]
    },
    "asset": {
      "type": "string",
      "pattern": "^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}\\/[-a-z0-9]{3,8}:[-.%a-zA-Z0-9]{1,128}$"
    },
    "token_symbol": {
      "type": "string"
    },
    "token_decimals": {
      "type": "number"
    },
    "cap_amount": {
      "type": "string"
    },
    "price": {
      "type": "string"
    },
    "price_currency": {
      "type": [
        "string",
        "null"
      ]
    },
    "period_duration": {
      "type": "number"
    },
    "last_charged_at": {
      "type": [
        "string",
        "null"
      ]
    },
    "next_charge_at": {
      "type": [
        "string",
        "null"
      ]
    },
    "charge_nonce": {
      "type": "number"
    },
    "status": {
      "type": "string",
      "enum": [
        "active",
        "cancelling",
        "cancelled"
      ]
    },
    "paused": {
      "type": "boolean",
      "description": "Deprecated: always `false`, will be removed. A failed charge does not pause the subscription. Classify failures by the charge `failure_reason` and retry on your own schedule.",
      "deprecated": true
    },
    "flagged": {
      "type": "boolean"
    },
    "budget": {
      "type": [
        "string",
        "null"
      ]
    },
    "spent_this_period": {
      "type": [
        "string",
        "null"
      ]
    },
    "remaining_budget": {
      "type": [
        "string",
        "null"
      ]
    },
    "created_at": {
      "type": "string"
    },
    "subscription_manager_address": {
      "type": "string"
    },
    "chain": {
      "type": "string"
    },
    "cancel_url": {
      "type": [
        "string",
        "null"
      ]
    },
    "subscription_checkout_id": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "object",
    "id",
    "subscriber",
    "external_customer_id",
    "asset",
    "token_symbol",
    "token_decimals",
    "cap_amount",
    "price",
    "price_currency",
    "period_duration",
    "last_charged_at",
    "next_charge_at",
    "charge_nonce",
    "status",
    "paused",
    "flagged",
    "budget",
    "spent_this_period",
    "remaining_budget",
    "created_at",
    "subscription_manager_address",
    "chain",
    "cancel_url",
    "subscription_checkout_id"
  ]
}