{
  "schema_version": "1.0.0",
  "generated_by": "tools/build_schema.py",
  "product": "Stripe Sigma",
  "warning": "Column lists are complete only where columns_complete is true, and coverage is not guaranteed current \u2014 Stripe can change the Sigma schema at any time. Run tools/verify_against_sigma.py to confirm and extend this file.",
  "confidence_levels": {
    "documented": "Appears in an official Stripe SQL example or published column table.",
    "conventional": "Synthesized from a structural rule Stripe documents (metadata tables, Connect mirrors).",
    "community": "Curated from experience. Plausible, but not yet directly reproduced within Sigma.",
    "verified": "Confirmed within Sigma."
  },
  "conventions": {
    "$comment": "Structural rules Stripe documents about the Sigma schema. build_schema.py applies these to synthesize whole table families (metadata, Connect mirrors) so they don't have to be hand-listed. Each rule cites the doc page that states it.",
    "dialect": {
      "engine": "Trino",
      "version": "414",
      "previous_engine": "Presto v334",
      "sql_flavor": "ANSI SQL (read-only; no DDL/DML)",
      "identifier_quoting": "double quotes",
      "string_literals": "single quotes",
      "source": "https://docs.stripe.com/data/migrate-queries"
    },
    "metadata_tables": {
      "rule": "Every object table with user-settable metadata has a sibling table named <table>_metadata. Each row is one key/value pair, joined back to the parent by a foreign key named <singular_object>_id.",
      "columns": [
        {
          "name": "<parent>_id",
          "type": "varchar",
          "key": "foreign",
          "description": "References the id column of the parent object table."
        },
        {
          "name": "key",
          "type": "varchar",
          "description": "The metadata key set on the object."
        },
        {
          "name": "value",
          "type": "varchar",
          "description": "The metadata value for that key. Always a string, even when it holds a number or boolean."
        }
      ],
      "grain": "One row per (object, metadata key) pair. Objects with no metadata have no rows.",
      "confidence": "conventional",
      "source": "https://docs.stripe.com/data/query-issuing-data",
      "quote": "The metadata table contains a foreign key to the corresponding object in the primary table that you can use to join the two tables. For example, every row in the issuing_transactions_metadata table has the column issuing_transaction_id that references the id column of a row in the issuing_transactions table.",
      "pivot_recipe": "select parent_id, map_agg(key, value) as md from <table>_metadata group by 1 -- then md['your_key']"
    },
    "connect_mirror_tables": {
      "rule": "Connect platforms get a parallel table for connected-account data, named connected_account_<base table>. It carries the same columns as the base table plus an `account` column holding the connected account id.",
      "extra_columns": [
        {
          "name": "account",
          "type": "varchar",
          "key": "foreign",
          "description": "The connected account (acct_...) this row belongs to.",
          "references": {
            "table": "accounts",
            "column": "id"
          }
        }
      ],
      "confidence": "conventional",
      "source": "https://docs.stripe.com/data/query-connect-data",
      "quote": "Each Connect-specific table has an additional `account` column containing the identifier of a connected account.",
      "caveat": "Which base tables have a connected_account_ mirror varies by account and by product enablement. Only mirrors that Stripe documents or that you have verified are listed as tables here."
    },
    "id_prefixes": {
      "$comment": "Stripe object ids are prefixed by type. Useful for sanity-checking a join and for recognizing what a polymorphic source_id points at.",
      "acct": "accounts",
      "ch": "charges",
      "cus": "customers",
      "dp": "disputes",
      "in": "invoices",
      "ii": "invoice_items",
      "il": "invoice_line_items",
      "pi": "payment_intents",
      "pm": "payment_methods",
      "po": "transfers (payouts, on/after 2017-04-06)",
      "tr": "transfers (payouts before 2017-04-06, and Connect transfers)",
      "trr": "transfer_reversals",
      "re": "refunds",
      "sub": "subscriptions",
      "si": "subscription_items",
      "sub_sched": "subscription_schedules",
      "price": "prices",
      "plan": "plans (legacy)",
      "prod": "products",
      "txn": "balance_transactions",
      "seti": "setup_intents",
      "src": "sources",
      "cn": "credit_notes",
      "cs": "checkout_sessions",
      "plink": "payment_links",
      "promo": "promotion_codes",
      "tax": "tax_transactions",
      "tax_li": "tax_transaction_line_items",
      "txcd": "tax_codes",
      "iauth": "issuing_authorizations",
      "ipi": "issuing_transactions",
      "ic": "issuing_cards",
      "ich": "issuing_cardholders",
      "fa": "treasury_financial_accounts",
      "qt": "quotes"
    },
    "api_to_sigma_divergence": {
      "$comment": "Sigma column names follow API conventions but are NOT mechanically derivable from the API object. Measured against the documented `charges` columns, naive derivation from the OpenAPI spec missed 21 real columns and invented 17 that don't exist. These are the observed rules. Treat them as heuristics for guessing a name to verify, never as proof a column exists.",
      "rules": [
        {
          "rule": "Reference fields gain an _id suffix.",
          "example": "charge.customer -> charges.customer_id; charge.transfer -> charges.transfer_id"
        },
        {
          "rule": "Nested objects are flattened with underscores.",
          "example": "charge.outcome.risk_score -> charges.outcome_risk_score"
        },
        {
          "rule": "Some nested prefixes are dropped entirely when unambiguous.",
          "example": "charge.payment_method_details.card.brand -> charges.card_brand"
        },
        {
          "rule": "Some booleans are exposed as timestamps instead.",
          "example": "charge.captured (boolean) -> charges.captured_at (timestamp)"
        },
        {
          "rule": "The API `object` discriminator field is not present in Sigma.",
          "example": "charge.object -> (no column)"
        },
        {
          "rule": "Deeply nested arrays become their own tables rather than columns.",
          "example": "invoice.lines -> invoice_line_items table"
        }
      ]
    },
    "special_values": {
      "data_load_time": {
        "type": "timestamp",
        "description": "Not a column \u2014 a query-scoped constant available in every Sigma query, holding the time through which your account's data is complete. Use it instead of current_date to make scheduled queries deterministic.",
        "example": "where created >= data_load_time - interval '1' month and created < data_load_time",
        "source": "https://docs.stripe.com/data/data-freshness"
      }
    },
    "amount_units": {
      "default": "Amounts are integers in the currency's smallest unit (cents for USD, yen for JPY). An amount of 1000 with currency usd is 10.00 USD.",
      "source": "https://docs.stripe.com/data/write-queries",
      "exceptions": [
        {
          "tables": [
            "itemized_fees",
            "connected_account_itemized_fees"
          ],
          "note": "amount and tax on these tables are in MAJOR currency units, not minor units. Do not divide by 100.",
          "source": "https://docs.stripe.com/data/query-all-fees-data"
        }
      ]
    }
  },
  "verification": {
    "verified_against_live_account": true,
    "details": {
      "tables_verified": 247,
      "columns_verified": 4027,
      "columns_dropped": 88,
      "columns_gained": 3312,
      "tables_added": 98,
      "primary_keys_assigned": 236,
      "foreign_keys_inferred": 120
    },
    "how_to_verify": "See verification/README.md"
  },
  "stats": {
    "tables": 262,
    "columns": 4168,
    "columns_by_confidence": {
      "community": 36,
      "conventional": 4,
      "documented": 100,
      "verified": 4028
    },
    "tables_with_complete_columns": 247
  },
  "tables": [
    {
      "name": "acceptance_reporting_preaggregated_deduplicated_v2",
      "dataset": "unclassified",
      "source": "api_backed",
      "freshness_hours": null,
      "preview": false,
      "listed_in_stripe_freshness_table": false,
      "description": "",
      "grain": "",
      "primary_key": [],
      "foreign_keys": [],
      "notes": [],
      "columns": [
        {
          "name": "accepted_amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "accepted_amount_in_usd",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "accepted_count",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "attributable_optimization",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "blocked_by_default_high_risk_rule_count",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "blocked_by_radar_rule_count",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "blocked_by_stripe_count",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "card_brand",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "card_country",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "card_input_method",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "card_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "created_day",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "is_connected_account",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": ""
        },
        {
          "name": "outcome_reason",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "outcome_rule_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "outcome_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "transaction_amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "transaction_amount_in_usd",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "transaction_count",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "acceptance_reporting_preaggregated_deduplicated_v3",
      "dataset": "unclassified",
      "source": "api_backed",
      "freshness_hours": null,
      "preview": false,
      "listed_in_stripe_freshness_table": false,
      "description": "",
      "grain": "",
      "primary_key": [],
      "foreign_keys": [],
      "notes": [],
      "columns": [
        {
          "name": "accepted_amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "accepted_amount_in_usd",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "accepted_count",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "attributable_optimization",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "blocked_by_default_high_risk_rule_count",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "blocked_by_radar_rule_count",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "blocked_by_stripe_count",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "card_brand",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "card_country",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "card_input_method",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "card_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "cof",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": ""
        },
        {
          "name": "created_day",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "is_connected_account",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": ""
        },
        {
          "name": "nsf_count",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "outcome_reason",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "outcome_rule_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "outcome_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "transaction_amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "transaction_amount_in_usd",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "transaction_count",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "used_network_tokens",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": ""
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "acceptance_reporting_preaggregated_v2",
      "dataset": "unclassified",
      "source": "api_backed",
      "freshness_hours": null,
      "preview": false,
      "listed_in_stripe_freshness_table": false,
      "description": "",
      "grain": "",
      "primary_key": [],
      "foreign_keys": [],
      "notes": [],
      "columns": [
        {
          "name": "accepted_amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "accepted_amount_in_usd",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "accepted_count",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "attributable_optimization",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "blocked_by_default_high_risk_rule_count",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "blocked_by_radar_rule_count",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "blocked_by_stripe_count",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "card_brand",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "card_country",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "card_input_method",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "card_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "created_day",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "is_connected_account",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": ""
        },
        {
          "name": "outcome_reason",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "outcome_rule_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "outcome_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "transaction_amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "transaction_amount_in_usd",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "transaction_count",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "acceptance_reporting_preaggregated_v3",
      "dataset": "unclassified",
      "source": "api_backed",
      "freshness_hours": null,
      "preview": false,
      "listed_in_stripe_freshness_table": false,
      "description": "",
      "grain": "",
      "primary_key": [],
      "foreign_keys": [],
      "notes": [],
      "columns": [
        {
          "name": "accepted_amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "accepted_amount_in_usd",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "accepted_count",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "attributable_optimization",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "blocked_by_default_high_risk_rule_count",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "blocked_by_radar_rule_count",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "blocked_by_stripe_count",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "card_brand",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "card_country",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "card_input_method",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "card_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "cof",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": ""
        },
        {
          "name": "created_day",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "is_connected_account",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": ""
        },
        {
          "name": "nsf_count",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "outcome_reason",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "outcome_rule_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "outcome_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "transaction_amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "transaction_amount_in_usd",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "transaction_count",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "used_network_tokens",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": ""
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "acceptance_reporting_v3_itemized",
      "dataset": "other",
      "source": "derived",
      "freshness_hours": 68,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Itemized payment acceptance reporting: authorization attempts with decline and retry classification.",
      "grain": "One row per acceptance event.",
      "primary_key": [],
      "columns": [
        {
          "name": "amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "amount_in_usd",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "attributable_optimization",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "blocked_reason",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "card_brand",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "card_country",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "card_input_method",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "card_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "charge_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "cof",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": ""
        },
        {
          "name": "created",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "decline_reason",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "final_charge_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "gateway_conversation_avs_outcome",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "gateway_conversation_cvc_outcome",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "invoice_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "is_connected_account",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": ""
        },
        {
          "name": "is_final_attempt",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": ""
        },
        {
          "name": "outcome_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "payment_intent_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "tds_flow_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "tds_is_in_sca_scope",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": ""
        },
        {
          "name": "tds_outcome",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "tds_outcome_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "tds_reason",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "tds_sca_exemption_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "tds_triggered",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": ""
        },
        {
          "name": "transaction_initiator",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "used_network_tokens",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": ""
        }
      ],
      "foreign_keys": [
        {
          "columns": [
            "charge_id"
          ],
          "references": {
            "table": "charges",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        },
        {
          "columns": [
            "invoice_id"
          ],
          "references": {
            "table": "invoices",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        },
        {
          "columns": [
            "payment_intent_id"
          ],
          "references": {
            "table": "payment_intents",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "account_capabilities_v2",
      "dataset": "unclassified",
      "source": "api_backed",
      "freshness_hours": null,
      "preview": false,
      "listed_in_stripe_freshness_table": false,
      "description": "",
      "grain": "",
      "primary_key": [],
      "foreign_keys": [
        {
          "columns": [
            "account_id"
          ],
          "references": {
            "table": "accounts",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        }
      ],
      "notes": [],
      "columns": [
        {
          "name": "account_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "acss_debit_payments",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "affirm_payments",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "afterpay_clearpay_payments",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "amazon_pay_payments",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "au_becs_debit_payments",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "bacs_debit_payments",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "bancontact_payments",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "bank_transfer_payments",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "blik_payments",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "boleto_payments",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "card_issuing",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "card_payments",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "cartes_bancaires_payments",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "cashapp_payments",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "eps_payments",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "fpx_payments",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "giropay_payments",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "grabpay_payments",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "ideal_payments",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "india_international_payments",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "jcb_payments",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "klarna_payments",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "konbini_payments",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "legacy_payments",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "link_payments",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "mobilepay_payments",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "multibanco_payments",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "oxxo_payments",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "p24_payments",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "paynow_payments",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "promptpay_payments",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "revolut_pay_payments",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "sepa_debit_payments",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "sofort_payments",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "swish_payments",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "tax_reporting_us_1099_k",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "tax_reporting_us_1099_misc",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "transfers",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "twint_payments",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "us_bank_account_ach_payments",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "zip_payments",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "accounts",
      "dataset": "connect",
      "source": "api_backed",
      "freshness_hours": 3,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Your own account and, for Connect platforms, your connected accounts.",
      "grain": "One row per account.",
      "primary_key": [
        "id"
      ],
      "columns_complete": true,
      "columns": [
        {
          "name": "id",
          "type": "varchar",
          "key": "primary",
          "description": "Unique identifier, prefixed acct_.",
          "confidence": "verified"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "business_name",
          "type": "varchar",
          "description": "Business name on the account.",
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "business_profile_mcc",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "business_url",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "capabilities_acss_debit_payments",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "capabilities_affirm_payments",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "capabilities_afterpay_clearpay_payments",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "capabilities_amazon_pay_payments",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "capabilities_au_becs_debit_payments",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "capabilities_bacs_debit_payments",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "capabilities_bancontact_payments",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "capabilities_bank_transfer_payments",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "capabilities_blik_payments",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "capabilities_boleto_payments",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "capabilities_card_issuing",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "capabilities_card_payments",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "capabilities_cartes_bancaires_payments",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "capabilities_cashapp_payments",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "capabilities_eps_payments",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "capabilities_fpx_payments",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "capabilities_giropay_payments",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "capabilities_grabpay_payments",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "capabilities_ideal_payments",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "capabilities_india_international_payments",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "capabilities_jcb_payments",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "capabilities_klarna_payments",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "capabilities_konbini_payments",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "capabilities_legacy_payments",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "capabilities_link_payments",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "capabilities_mobilepay_payments",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "capabilities_multibanco_payments",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "capabilities_oxxo_payments",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "capabilities_p24_payments",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "capabilities_paynow_payments",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "capabilities_promptpay_payments",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "capabilities_revolut_pay_payments",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "capabilities_sepa_debit_payments",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "capabilities_sofort_payments",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "capabilities_swish_payments",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "capabilities_tax_reporting_us_1099_k",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "capabilities_tax_reporting_us_1099_misc",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "capabilities_transfers",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "capabilities_twint_payments",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "capabilities_us_bank_account_ach_payments",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "capabilities_zip_payments",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "charges_enabled",
          "type": "boolean",
          "description": "Whether the account can create charges.",
          "confidence": "verified",
          "raw_type": "boolean"
        },
        {
          "name": "controller_fees_payer",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "controller_losses_payments",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "controller_requirement_collection",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "controller_stripe_dashboard_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "country",
          "type": "varchar",
          "description": "Two-letter ISO country of the account.",
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "created",
          "type": "timestamp",
          "description": "When the account was created (UTC).",
          "confidence": "verified",
          "raw_type": "timestamp"
        },
        {
          "name": "debit_negative_balances",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": ""
        },
        {
          "name": "decline_charge_on_avs_failure",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": ""
        },
        {
          "name": "decline_charge_on_cvc_failure",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": ""
        },
        {
          "name": "default_currency",
          "type": "varchar",
          "description": "Account's default currency. Commonly used as the reporting currency when converting multi-currency figures.",
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "details_submitted",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": ""
        },
        {
          "name": "display_name",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "email",
          "type": "varchar",
          "description": "Account email address.",
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "future_requirements_current_deadline",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "future_requirements_currently_due",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "future_requirements_eventually_due",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "future_requirements_past_due",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "future_requirements_pending_verification",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "legal_entity_address_city",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "legal_entity_address_country",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "legal_entity_address_kana_city",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "legal_entity_address_kana_country",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "legal_entity_address_kana_line1",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "legal_entity_address_kana_line2",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "legal_entity_address_kana_postal_code",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "legal_entity_address_kana_state",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "legal_entity_address_kanji_city",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "legal_entity_address_kanji_country",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "legal_entity_address_kanji_line1",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "legal_entity_address_kanji_line2",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "legal_entity_address_kanji_postal_code",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "legal_entity_address_kanji_state",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "legal_entity_address_line1",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "legal_entity_address_line2",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "legal_entity_address_postal_code",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "legal_entity_address_state",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "legal_entity_business_name",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "legal_entity_business_name_kana",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "legal_entity_business_name_kanji",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "legal_entity_business_tax_id_provided",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": ""
        },
        {
          "name": "legal_entity_business_vat_id_provided",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": ""
        },
        {
          "name": "legal_entity_dob_day",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "legal_entity_dob_month",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "legal_entity_dob_year",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "legal_entity_first_name",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "legal_entity_first_name_kana",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "legal_entity_first_name_kanji",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "legal_entity_gender",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "legal_entity_last_name",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "legal_entity_last_name_kana",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "legal_entity_last_name_kanji",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "legal_entity_maiden_name",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "legal_entity_personal_address_city",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "legal_entity_personal_address_country",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "legal_entity_personal_address_kana_city",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "legal_entity_personal_address_kana_country",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "legal_entity_personal_address_kana_line1",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "legal_entity_personal_address_kana_line2",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "legal_entity_personal_address_kana_postal_code",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "legal_entity_personal_address_kana_state",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "legal_entity_personal_address_kanji_city",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "legal_entity_personal_address_kanji_country",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "legal_entity_personal_address_kanji_line1",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "legal_entity_personal_address_kanji_line2",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "legal_entity_personal_address_kanji_postal_code",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "legal_entity_personal_address_kanji_state",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "legal_entity_personal_address_line1",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "legal_entity_personal_address_line2",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "legal_entity_personal_address_postal_code",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "legal_entity_personal_address_state",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "legal_entity_personal_id_number_provided",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": ""
        },
        {
          "name": "legal_entity_phone_number",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "legal_entity_ssn_last_4_provided",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": ""
        },
        {
          "name": "legal_entity_tax_id_registrar",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "legal_entity_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "legal_entity_verification_details",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "legal_entity_verification_details_code",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "legal_entity_verification_document_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "legal_entity_verification_status",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "payout_schedule_delay_days",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "payout_schedule_interval",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "payout_schedule_monthly_anchor",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "payout_schedule_weekly_anchor",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "payout_statement_descriptor",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "payouts_enabled",
          "type": "boolean",
          "description": "Whether the account can receive payouts.",
          "confidence": "verified",
          "raw_type": "boolean"
        },
        {
          "name": "product_description",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "requirements_current_deadline",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "requirements_currently_due",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "requirements_eventually_due",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "requirements_past_due",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "requirements_pending_verification",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "statement_descriptor",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "support_email",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "support_phone",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "timezone",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "tos_acceptance_date",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "tos_acceptance_ip",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "tos_acceptance_user_agent",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "type",
          "type": "varchar",
          "description": "Connect account type.",
          "enum": [
            "standard",
            "express",
            "custom",
            "none"
          ],
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "verification_disabled_reason",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "verification_due_by",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "verification_fields_needed",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        }
      ],
      "notes": [
        "Connect platforms also have a connected_accounts table with richer onboarding and requirements detail."
      ],
      "foreign_keys": [],
      "verified_against_account": true
    },
    {
      "name": "accounts_metadata",
      "dataset": "connect",
      "source": "api_backed",
      "freshness_hours": 3,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Metadata key/value pairs set on accounts. One row per (object, metadata key) pair. Objects with no metadata have no rows.",
      "grain": "One row per (object, metadata key) pair. Objects with no metadata have no rows.",
      "primary_key": [
        "key"
      ],
      "columns": [
        {
          "name": "account_id",
          "type": "varchar",
          "key": "foreign",
          "description": "References the id column of the parent object table.",
          "confidence": "verified"
        },
        {
          "name": "key",
          "type": "varchar",
          "description": "The metadata key set on the object.",
          "confidence": "verified",
          "key": "primary"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "value",
          "type": "varchar",
          "description": "The metadata value for that key. Always a string, even when it holds a number or boolean.",
          "confidence": "verified",
          "raw_type": "varchar"
        }
      ],
      "columns_complete": true,
      "foreign_keys": [
        {
          "columns": [
            "account_id"
          ],
          "references": {
            "table": "accounts",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        }
      ],
      "notes": [
        "Values are always strings, even when they hold numbers or booleans.",
        "Pivot to columns with: select account_id, map_agg(key, value) as md from accounts_metadata group by 1"
      ],
      "derived_from_convention": "metadata_tables",
      "verified_against_account": true
    },
    {
      "name": "activity_report_itemized",
      "dataset": "other",
      "source": "derived",
      "freshness_hours": 80,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Itemized activity report backing Stripe's Dashboard reporting, one row per balance-affecting event with reporting classifications.",
      "grain": "One row per reportable activity item.",
      "primary_key": [],
      "notes": [
        "Aligns with Stripe's Reporting exports rather than the raw API objects."
      ],
      "columns": [],
      "foreign_keys": [],
      "columns_complete": false,
      "verified_against_account": false
    },
    {
      "name": "aggregate_optimization_details",
      "dataset": "analytics",
      "source": "derived",
      "freshness_hours": 24,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Aggregated view of Stripe's payment optimizations (such as Adaptive Acceptance) and their measured impact.",
      "grain": "One row per aggregation window and optimization type.",
      "primary_key": [],
      "columns": [
        {
          "name": "card_updates",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "day",
          "type": "double",
          "confidence": "verified",
          "raw_type": "double",
          "description": ""
        },
        {
          "name": "dynamic_validations",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        }
      ],
      "foreign_keys": [],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "analytics_acceptance_itemized",
      "dataset": "analytics",
      "source": "derived",
      "freshness_hours": 24,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Itemized acceptance analytics used by Stripe's authorization rate reporting.",
      "grain": "One row per acceptance analytics record.",
      "primary_key": [],
      "columns": [
        {
          "name": "amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "amount_in_usd",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "block_reason",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "buyer_country",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "card_bank",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "card_bin",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "card_brand",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "card_country",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "card_input_method",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "card_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "charge_country",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "charge_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "created",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "customer_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "failure_reason",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "final_charge_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "gateway_conversation_avs_outcome",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "gateway_conversation_cvc_outcome",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "interaction_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "invoice_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "is_connected_account",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": ""
        },
        {
          "name": "is_final_attempt",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": ""
        },
        {
          "name": "is_link",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": ""
        },
        {
          "name": "locality_zone",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "mcc",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "outcome_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "payment_intent_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "payment_method_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "payment_processor",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "retry_status",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "three_d_s_challenge_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "three_d_s_is_in_sca_scope",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": ""
        },
        {
          "name": "three_d_s_outcome",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "three_d_s_outcome_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "three_d_s_reason",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "three_d_s_sca_exemption_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "three_d_s_used",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": ""
        },
        {
          "name": "used_network_tokens",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": ""
        }
      ],
      "foreign_keys": [
        {
          "columns": [
            "charge_id"
          ],
          "references": {
            "table": "charges",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        },
        {
          "columns": [
            "invoice_id"
          ],
          "references": {
            "table": "invoices",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        },
        {
          "columns": [
            "payment_intent_id"
          ],
          "references": {
            "table": "payment_intents",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "analytics_acceptance_summarized",
      "dataset": "unclassified",
      "source": "api_backed",
      "freshness_hours": null,
      "preview": false,
      "listed_in_stripe_freshness_table": false,
      "description": "",
      "grain": "",
      "primary_key": [],
      "foreign_keys": [],
      "notes": [],
      "columns": [
        {
          "name": "_viewing_merchant",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "accepted_amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "accepted_amount_in_usd",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "accepted_count",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "block_reason",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "buyer_country",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "card_brand",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "card_country",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "card_input_method",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "card_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "created_hour",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "failure_reason",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "gateway_conversation_avs_outcome",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "gateway_conversation_cvc_outcome",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "interaction_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "is_connected_account",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": ""
        },
        {
          "name": "is_final_attempt",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": ""
        },
        {
          "name": "is_link",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": ""
        },
        {
          "name": "locality_zone",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "outcome_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "payment_amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "payment_amount_in_usd",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "payment_count",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "payment_method_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "payment_processor",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "retry_status",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "three_d_s_challenge_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "three_d_s_is_in_sca_scope",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": ""
        },
        {
          "name": "three_d_s_outcome",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "three_d_s_outcome_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "three_d_s_reason",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "three_d_s_sca_exemption_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "three_d_s_used",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": ""
        },
        {
          "name": "used_network_tokens",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": ""
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "application_fee_refunds",
      "dataset": "connect-fees",
      "source": "api_backed",
      "freshness_hours": 3,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Refunds of application fees back to connected accounts.",
      "grain": "One row per application fee refund.",
      "primary_key": [
        "id"
      ],
      "columns": [
        {
          "name": "id",
          "type": "varchar",
          "key": "primary",
          "description": "Unique identifier, prefixed fr_.",
          "confidence": "verified"
        },
        {
          "name": "amount",
          "type": "bigint",
          "description": "Refunded amount in minor currency units.",
          "confidence": "verified",
          "raw_type": "bigint"
        },
        {
          "name": "balance_transaction_id",
          "type": "varchar",
          "key": "foreign",
          "description": "Balance transaction recording the refund.",
          "confidence": "verified"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "created",
          "type": "timestamp",
          "description": "When the refund was created (UTC).",
          "confidence": "verified",
          "raw_type": "timestamp"
        },
        {
          "name": "currency",
          "type": "varchar",
          "description": "Three-letter ISO currency code, lowercase.",
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "fee_id",
          "type": "varchar",
          "key": "foreign",
          "description": "Application fee being refunded.",
          "confidence": "verified"
        }
      ],
      "foreign_keys": [
        {
          "columns": [
            "fee_id"
          ],
          "references": {
            "table": "application_fees",
            "columns": [
              "id"
            ]
          }
        },
        {
          "columns": [
            "balance_transaction_id"
          ],
          "references": {
            "table": "balance_transactions",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "application_fee_refunds_metadata",
      "dataset": "connect-fees",
      "source": "api_backed",
      "freshness_hours": 3,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Metadata key/value pairs set on application_fee_refunds. One row per (object, metadata key) pair. Objects with no metadata have no rows.",
      "grain": "One row per (object, metadata key) pair. Objects with no metadata have no rows.",
      "primary_key": [
        "key"
      ],
      "columns": [
        {
          "name": "application_fee_refund_id",
          "type": "varchar",
          "key": "foreign",
          "description": "References the id column of the parent object table.",
          "confidence": "verified"
        },
        {
          "name": "key",
          "type": "varchar",
          "description": "The metadata key set on the object.",
          "confidence": "verified",
          "key": "primary"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "value",
          "type": "varchar",
          "description": "The metadata value for that key. Always a string, even when it holds a number or boolean.",
          "confidence": "verified",
          "raw_type": "varchar"
        }
      ],
      "columns_complete": true,
      "foreign_keys": [
        {
          "columns": [
            "application_fee_refund_id"
          ],
          "references": {
            "table": "application_fee_refunds",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        }
      ],
      "notes": [
        "Values are always strings, even when they hold numbers or booleans.",
        "Pivot to columns with: select application_fee_refund_id, map_agg(key, value) as md from application_fee_refunds_metadata group by 1"
      ],
      "derived_from_convention": "metadata_tables",
      "verified_against_account": true
    },
    {
      "name": "application_fees",
      "dataset": "connect-fees",
      "source": "api_backed",
      "freshness_hours": 3,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Fees your Connect platform collected from connected accounts.",
      "grain": "One row per application fee.",
      "primary_key": [
        "id"
      ],
      "columns": [
        {
          "name": "id",
          "type": "varchar",
          "key": "primary",
          "description": "Unique identifier, prefixed fee_.",
          "confidence": "verified"
        },
        {
          "name": "account_id",
          "type": "varchar",
          "key": "foreign",
          "description": "Connected account the fee was collected from.",
          "confidence": "verified"
        },
        {
          "name": "amount",
          "type": "bigint",
          "description": "Fee amount in minor currency units.",
          "confidence": "verified",
          "raw_type": "bigint"
        },
        {
          "name": "amount_refunded",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "application_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "balance_transaction_id",
          "type": "varchar",
          "key": "foreign",
          "description": "Balance transaction recording the fee.",
          "confidence": "verified"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "charge_id",
          "type": "varchar",
          "key": "foreign",
          "description": "Charge that generated the fee.",
          "confidence": "verified"
        },
        {
          "name": "created",
          "type": "timestamp",
          "description": "When the fee was created (UTC).",
          "confidence": "verified",
          "raw_type": "timestamp"
        },
        {
          "name": "currency",
          "type": "varchar",
          "description": "Three-letter ISO currency code, lowercase.",
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "fee_source_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "fee_source_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "originating_transaction_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "refunded",
          "type": "boolean",
          "description": "Whether the fee was fully refunded.",
          "confidence": "verified",
          "raw_type": "boolean"
        }
      ],
      "foreign_keys": [
        {
          "columns": [
            "charge_id"
          ],
          "references": {
            "table": "charges",
            "columns": [
              "id"
            ]
          }
        },
        {
          "columns": [
            "balance_transaction_id"
          ],
          "references": {
            "table": "balance_transactions",
            "columns": [
              "id"
            ]
          }
        },
        {
          "columns": [
            "account_id"
          ],
          "references": {
            "table": "accounts",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "authentication_report_attempts",
      "dataset": "analytics",
      "source": "derived",
      "freshness_hours": 100,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Individual 3D Secure authentication attempts, including the resulting charge outcome.",
      "grain": "One row per authentication attempt. An intent can have several.",
      "primary_key": [
        "attempt_id"
      ],
      "columns_complete": true,
      "columns": [
        {
          "name": "attempt_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "authentication_flow",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "card_bin_country",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "charge_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "charge_outcome",
          "type": "varchar",
          "description": "What happened to the charge afterwards, e.g. authorized.",
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "charge_outcome_reason",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "created",
          "type": "timestamp",
          "description": "When the attempt occurred (UTC).",
          "confidence": "verified",
          "raw_type": "timestamp"
        },
        {
          "name": "currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "device_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "final_attempt_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "intent_id",
          "type": "varchar",
          "key": "foreign",
          "description": "PaymentIntent or SetupIntent the attempt belongs to.",
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "intent_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "is_authenticated_by_digital_wallet",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": ""
        },
        {
          "name": "is_final_attempt",
          "type": "boolean",
          "description": "Whether this was the last attempt for the intent. Filter on this to avoid double counting.",
          "confidence": "verified",
          "raw_type": "boolean"
        },
        {
          "name": "is_in_sca_scope",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": ""
        },
        {
          "name": "is_threeds_triggered",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": ""
        },
        {
          "name": "merchant_country",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "protocol_version",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "sca_exemption_mechanism",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "sca_exemption_requested",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "sca_exemption_status",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "threeds_outcome_result",
          "type": "varchar",
          "description": "Result of the 3DS challenge, e.g. authenticated.",
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "threeds_outcome_result_reason",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "threeds_reason",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        }
      ],
      "foreign_keys": [
        {
          "columns": [
            "intent_id"
          ],
          "references": {
            "table": "payment_intents",
            "columns": [
              "id"
            ]
          },
          "confidence": "documented"
        },
        {
          "columns": [
            "charge_id"
          ],
          "references": {
            "table": "charges",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        }
      ],
      "verified_against_account": true
    },
    {
      "name": "balance_transaction_fee_details",
      "dataset": "payments",
      "source": "api_backed",
      "freshness_hours": 3,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Line-item breakdown of the fee column on balance_transactions.",
      "grain": "One row per fee component of a balance transaction. A balance transaction can have several.",
      "primary_key": [
        "id"
      ],
      "columns_complete": true,
      "columns": [
        {
          "name": "balance_transaction_id",
          "type": "varchar",
          "key": "foreign",
          "description": "The balance transaction this fee component belongs to.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-issuing-data.md",
            "data_query-transactions.md"
          ]
        },
        {
          "name": "id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "amount",
          "type": "bigint",
          "description": "Amount of the fee, in cents.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-issuing-data.md"
          ],
          "raw_type": "bigint"
        },
        {
          "name": "application",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "ID of the Connect application that earned the fee."
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": "The time in epoch format at which updates to the object were processed through the Stripe Data Pipeline. If the object hasn't changed, the time remains unchanged. This field isn't available in Sigma. It's only available for core API tables, including Connect versions, exported through the Stripe Data Pipeline."
        },
        {
          "name": "currency",
          "type": "varchar",
          "description": "Three-letter ISO currency code, in lowercase. Must be a supported currency.",
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "description",
          "type": "varchar",
          "description": "An arbitrary string attached to the object. Often useful for displaying to users.",
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "type",
          "type": "varchar",
          "description": "Type of the fee, one of: application_fee, payment_method_passthrough_fee, stripe_fee, tax, or withheld_tax.",
          "enum": [
            "application_fee",
            "payment_method_passthrough_fee",
            "stripe_fee",
            "tax",
            "withheld_tax"
          ],
          "confidence": "verified",
          "doc_sources": [
            "data_query-issuing-data.md",
            "data_query-transactions.md"
          ],
          "raw_type": "varchar"
        }
      ],
      "foreign_keys": [
        {
          "columns": [
            "balance_transaction_id"
          ],
          "references": {
            "table": "balance_transactions",
            "columns": [
              "id"
            ]
          },
          "confidence": "documented"
        }
      ],
      "notes": [
        "Summing amount here reproduces balance_transactions.fee for the same balance transaction."
      ],
      "verified_against_account": true
    },
    {
      "name": "balance_transactions",
      "dataset": "payments",
      "source": "api_backed",
      "freshness_hours": 3,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Ledger-style record of every event that moves money into or out of your Stripe balance. The canonical starting point for accounting and reconciliation, because it covers charges, refunds, transfers, payouts, adjustments and fees in one immutable table.",
      "grain": "One row per balance transaction. Rows are never mutated after creation.",
      "primary_key": [
        "id"
      ],
      "columns_complete": true,
      "columns": [
        {
          "name": "id",
          "type": "varchar",
          "key": "primary",
          "description": "Unique identifier for the object.",
          "confidence": "verified",
          "doc_sources": [
            "data_data-freshness.md",
            "data_query-all-fees-data.md",
            "data_query-issuing-data.md",
            "data_query-transactions.md"
          ]
        },
        {
          "name": "amount",
          "type": "bigint",
          "description": "Gross amount of this transaction (in cents). A positive value represents funds charged to another party, and a negative value represents funds sent to another party.",
          "confidence": "verified",
          "doc_sources": [
            "data_data-freshness.md",
            "data_query-transactions.md",
            "data_write-queries.md"
          ],
          "raw_type": "bigint"
        },
        {
          "name": "automatic_transfer_id",
          "type": "varchar",
          "key": "foreign",
          "description": "ID of the automatically created transfer associated with this balance transaction (only set if your account is on an automatic payout schedule).",
          "confidence": "verified",
          "doc_sources": [
            "data_query-transactions.md"
          ]
        },
        {
          "name": "available_on",
          "type": "timestamp",
          "description": "The date that the transaction's net funds become available in the Stripe balance.",
          "confidence": "verified",
          "raw_type": "timestamp"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": "The time in epoch format at which updates to the object were processed through the Stripe Data Pipeline. If the object hasn't changed, the time remains unchanged. This field isn't available in Sigma. It's only available for core API tables, including Connect versions, exported through the Stripe Data Pipeline."
        },
        {
          "name": "created",
          "type": "timestamp",
          "description": "Time at which the object was created. Measured in seconds since the Unix epoch.",
          "confidence": "verified",
          "doc_sources": [
            "data_data-freshness.md",
            "data_query-transactions.md",
            "data_write-queries.md"
          ],
          "raw_type": "timestamp"
        },
        {
          "name": "currency",
          "type": "varchar",
          "description": "Three-letter ISO currency code, in lowercase. Must be a supported currency.",
          "confidence": "verified",
          "doc_sources": [
            "data_data-freshness.md",
            "data_query-transactions.md",
            "data_write-queries.md"
          ],
          "raw_type": "varchar"
        },
        {
          "name": "description",
          "type": "varchar",
          "description": "An arbitrary string attached to the object. Often useful for displaying to users.",
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "exchange_rate",
          "type": "double",
          "description": "This field is populated for Balance Transactions created beyond January 26th, 2026.\n\nIf applicable, the exchange rate used on this Balance Transaction. Divide the amount of the transaction by this rate to determine the amount in the original currency. For example, consider a Balance Transaction that has an amount of 1234 and an exchange_rate of 1.234. The original amount would then be equal to 1234 / 1.234 = 1000.",
          "confidence": "verified",
          "raw_type": "double"
        },
        {
          "name": "fee",
          "type": "bigint",
          "description": "Fees (in cents) paid for this transaction. Represented as a positive integer when assessed.",
          "confidence": "verified",
          "doc_sources": [
            "data_data-freshness.md",
            "data_query-transactions.md"
          ],
          "raw_type": "bigint"
        },
        {
          "name": "net",
          "type": "bigint",
          "description": "Net impact to a Stripe balance (in cents). A positive value represents incrementing a Stripe balance, and a negative value decrementing a Stripe balance. You can calculate the net impact of a transaction on a balance by amount - fee",
          "confidence": "verified",
          "doc_sources": [
            "data_query-transactions.md"
          ],
          "raw_type": "bigint"
        },
        {
          "name": "reporting_category",
          "type": "varchar",
          "description": "A new categorization of balance transactions, meant to improve on the current type field. Learn more. Please let us know what would be most helpful using the Feedback link at the bottom of this page.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-all-fees-data.md"
          ],
          "raw_type": "varchar"
        },
        {
          "name": "source_id",
          "type": "varchar",
          "key": "foreign",
          "description": "This transaction relates to the Stripe object.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-transactions.md",
            "data_write-queries.md"
          ],
          "raw_type": "varchar"
        },
        {
          "name": "status",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The transaction's net funds status in the Stripe balance, which are either available or pending.",
          "enum": [
            "available",
            "pending"
          ]
        },
        {
          "name": "type",
          "type": "varchar",
          "description": "Transaction type: tax_fund, adjustment, advance, advance_funding, anticipation_repayment, application_fee, application_fee_refund, charge, climate_order_purchase, climate_order_refund, connect_collection_transfer, contribution, inbound_transfer, inbound_transfer_reversal, issuing_authorization_hold, issuing_authorization_release, issuing_dispute, issuing_transaction, obligation_outbound, obligation_reversal_inbound, payment, payment_failure_refund, payment_network_reserve_hold, payment_network_reserve_release, payment_refund, payment_reversal, payment_unreconciled, payout, payout_cancel, payout_failure, payout_minimum_balance_hold, payout_minimum_balance_release, refund, refund_failure, reserve_transaction, reserved_funds, reserve_hold, reserve_release, stripe_fee, stripe_fx_fee, stripe_balance_payment_debit, stripe_balance_payment_debit_reversal, tax_fee, topup, topup_reversal, transfer, transfer_cancel, transfer_failure, transfer_refund, or fee_credit_funding. Learn more about balance transaction types and what they represent. To classify transactions for accounting purposes, consider reporting_category instead.",
          "enum": [
            "charge",
            "refund",
            "adjustment",
            "application_fee",
            "application_fee_refund",
            "transfer",
            "payment",
            "payout",
            "payout_cancel",
            "payout_failure",
            "stripe_fee",
            "network_cost"
          ],
          "confidence": "verified",
          "doc_sources": [
            "data_query-transactions.md",
            "data_write-queries.md"
          ],
          "raw_type": "varchar"
        }
      ],
      "foreign_keys": [
        {
          "columns": [
            "automatic_transfer_id"
          ],
          "references": {
            "table": "transfers",
            "columns": [
              "id"
            ]
          },
          "confidence": "documented"
        },
        {
          "columns": [
            "source_id"
          ],
          "references": {
            "table": "sources",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        }
      ],
      "notes": [
        "Prefer this table over charges/refunds for anything accounting-related; it is the only table that nets out fees consistently.",
        "source_id is polymorphic and has no single FK target. Join conditionally on type.",
        "A charge and its refund are separate rows; refunding never mutates the original row."
      ],
      "verified_against_account": true
    },
    {
      "name": "balance_transactions_product_enrichment",
      "dataset": "unclassified",
      "source": "api_backed",
      "freshness_hours": null,
      "preview": false,
      "listed_in_stripe_freshness_table": false,
      "description": "",
      "grain": "",
      "primary_key": [
        "balance_transaction_id"
      ],
      "foreign_keys": [],
      "notes": [],
      "columns": [
        {
          "name": "balance_transaction_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "product_ids",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "product_names",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "reporting_category",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "source_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "billing_credit_balance_transactions",
      "dataset": "unclassified",
      "source": "api_backed",
      "freshness_hours": null,
      "preview": false,
      "listed_in_stripe_freshness_table": false,
      "description": "",
      "grain": "",
      "primary_key": [
        "id"
      ],
      "foreign_keys": [],
      "notes": [],
      "columns": [
        {
          "name": "id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "bill_item_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "created",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "credit_amount_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "credit_grant_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "credit_monetary_amount_currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "credit_monetary_amount_value",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "credit_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "debit_amount_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "debit_monetary_amount_currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "debit_monetary_amount_value",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "debit_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "effective_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "invoice_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "invoice_line_item_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "billing_credit_grant_metadata",
      "dataset": "unclassified",
      "source": "api_backed",
      "freshness_hours": null,
      "preview": false,
      "listed_in_stripe_freshness_table": false,
      "description": "",
      "grain": "",
      "primary_key": [],
      "foreign_keys": [],
      "notes": [],
      "columns": [
        {
          "name": "credit_grant_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "key",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "value",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "billing_credit_grants",
      "dataset": "unclassified",
      "source": "api_backed",
      "freshness_hours": null,
      "preview": false,
      "listed_in_stripe_freshness_table": false,
      "description": "",
      "grain": "",
      "primary_key": [
        "id"
      ],
      "foreign_keys": [],
      "notes": [],
      "columns": [
        {
          "name": "id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "amount_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "applicability_config_scope_price_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "category",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "created",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "custom_pricing_unit_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "custom_pricing_unit_value",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "customer_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "effective_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "expires_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "monetary_amount_currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "monetary_amount_value",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "name",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "service_action_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "updated",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "voided_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "billing_meter_dimensions",
      "dataset": "unclassified",
      "source": "api_backed",
      "freshness_hours": null,
      "preview": false,
      "listed_in_stripe_freshness_table": false,
      "description": "",
      "grain": "",
      "primary_key": [
        "dimension_payload_key"
      ],
      "foreign_keys": [],
      "notes": [],
      "columns": [
        {
          "name": "dimension_payload_key",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "meter_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "billing_meter_event_summaries",
      "dataset": "billing",
      "source": "derived",
      "freshness_hours": null,
      "preview": false,
      "listed_in_stripe_freshness_table": false,
      "evidence": "https://docs.stripe.com/data/query-billing-data",
      "description": "Aggregated meter usage per customer over a time window.",
      "grain": "One row per (meter, customer, window).",
      "primary_key": [
        "id"
      ],
      "columns_complete": true,
      "columns": [
        {
          "name": "id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "aggregated_value",
          "type": "double",
          "description": "Aggregated usage value for the window.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-billing-data.md"
          ],
          "raw_type": "double"
        },
        {
          "name": "customer_id",
          "type": "varchar",
          "key": "foreign",
          "description": "Customer the usage belongs to.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-billing-data.md"
          ]
        },
        {
          "name": "end_time",
          "type": "timestamp",
          "description": "Exclusive end of the summary window.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-billing-data.md"
          ],
          "raw_type": "timestamp"
        },
        {
          "name": "livemode",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": ""
        },
        {
          "name": "meter_id",
          "type": "varchar",
          "key": "foreign",
          "description": "Meter being summarized.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-billing-data.md"
          ]
        },
        {
          "name": "segment_hash",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "start_time",
          "type": "timestamp",
          "description": "Inclusive start of the summary window.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-billing-data.md"
          ],
          "raw_type": "timestamp"
        },
        {
          "name": "value_grouping_window",
          "type": "varchar",
          "description": "Granularity of the window, e.g. 'hourly' or 'daily'.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-billing-data.md"
          ],
          "raw_type": "varchar"
        }
      ],
      "foreign_keys": [
        {
          "columns": [
            "meter_id"
          ],
          "references": {
            "table": "billing_meters",
            "columns": [
              "id"
            ]
          },
          "confidence": "documented"
        },
        {
          "columns": [
            "customer_id"
          ],
          "references": {
            "table": "customers",
            "columns": [
              "id"
            ]
          },
          "confidence": "documented"
        }
      ],
      "notes": [
        "Always filter on value_grouping_window or you will double count across granularities."
      ],
      "verified_against_account": true
    },
    {
      "name": "billing_meter_event_summary_segments",
      "dataset": "unclassified",
      "source": "api_backed",
      "freshness_hours": null,
      "preview": false,
      "listed_in_stripe_freshness_table": false,
      "description": "",
      "grain": "",
      "primary_key": [
        "dimension_key"
      ],
      "foreign_keys": [],
      "notes": [],
      "columns": [
        {
          "name": "dimension_key",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "event_summary_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "dimension_value",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "billing_meter_invalid_events",
      "dataset": "billing",
      "source": "api_backed",
      "freshness_hours": null,
      "preview": false,
      "listed_in_stripe_freshness_table": false,
      "evidence": "https://docs.stripe.com/data/query-billing-data",
      "description": "Meter events that failed validation and were not counted toward usage.",
      "grain": "One row per invalid event.",
      "primary_key": [
        "id"
      ],
      "columns_complete": true,
      "columns": [
        {
          "name": "id",
          "type": "varchar",
          "key": "primary",
          "description": "Unique identifier for the invalid event.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-billing-data.md"
          ]
        },
        {
          "name": "created",
          "type": "timestamp",
          "description": "When the invalid event was received (UTC).",
          "confidence": "verified",
          "raw_type": "timestamp"
        },
        {
          "name": "error_code",
          "type": "varchar",
          "description": "Machine-readable validation error code.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-billing-data.md"
          ],
          "raw_type": "varchar"
        },
        {
          "name": "error_message",
          "type": "varchar",
          "description": "Human-readable validation error.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-billing-data.md"
          ],
          "raw_type": "varchar"
        },
        {
          "name": "event_name",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "livemode",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": ""
        },
        {
          "name": "meter_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "received",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        }
      ],
      "notes": [
        "The original event payload is in billing_meter_invalid_events_payload, joined on event_id."
      ],
      "foreign_keys": [],
      "verified_against_account": true
    },
    {
      "name": "billing_meter_invalid_events_payload",
      "dataset": "billing",
      "source": "api_backed",
      "freshness_hours": null,
      "preview": false,
      "listed_in_stripe_freshness_table": false,
      "evidence": "https://docs.stripe.com/data/query-billing-data",
      "description": "Key/value payload of each invalid meter event.",
      "grain": "One row per (invalid event, payload key).",
      "primary_key": [
        "key"
      ],
      "columns_complete": true,
      "columns": [
        {
          "name": "event_id",
          "type": "varchar",
          "key": "foreign",
          "description": "The invalid event this payload entry belongs to.",
          "confidence": "verified"
        },
        {
          "name": "key",
          "type": "varchar",
          "description": "Payload key, e.g. stripe_customer_id.",
          "confidence": "verified",
          "key": "primary"
        },
        {
          "name": "value",
          "type": "varchar",
          "description": "Payload value for that key.",
          "confidence": "verified",
          "raw_type": "varchar"
        }
      ],
      "foreign_keys": [
        {
          "columns": [
            "event_id"
          ],
          "references": {
            "table": "billing_meter_invalid_events",
            "columns": [
              "id"
            ]
          },
          "confidence": "documented"
        }
      ],
      "verified_against_account": true
    },
    {
      "name": "billing_meters",
      "dataset": "billing",
      "source": "api_backed",
      "freshness_hours": null,
      "preview": false,
      "listed_in_stripe_freshness_table": false,
      "evidence": "https://docs.stripe.com/data/query-billing-data",
      "description": "Usage-based billing meters that aggregate metered events.",
      "grain": "One row per meter.",
      "primary_key": [
        "id"
      ],
      "columns_complete": true,
      "columns": [
        {
          "name": "id",
          "type": "varchar",
          "key": "primary",
          "description": "Unique identifier, prefixed mtr_.",
          "confidence": "verified"
        },
        {
          "name": "created",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "customer_mapping_event_payload_key",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "customer_mapping_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "deactivated",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "default_aggregation_formula",
          "type": "varchar",
          "description": "How events are aggregated, e.g. sum or count.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-billing-data.md"
          ],
          "raw_type": "varchar"
        },
        {
          "name": "display_name",
          "type": "varchar",
          "description": "Human-readable meter name.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-billing-data.md"
          ],
          "raw_type": "varchar"
        },
        {
          "name": "event_name",
          "type": "varchar",
          "description": "Name of the event this meter listens for.",
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "event_time_window",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "livemode",
          "type": "boolean",
          "description": "False for sandbox/test data.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-billing-data.md"
          ],
          "raw_type": "boolean"
        },
        {
          "name": "status",
          "type": "varchar",
          "description": "Meter status. Note the documented example filters on the uppercase value 'ACTIVE'.",
          "enum": [
            "ACTIVE",
            "INACTIVE"
          ],
          "confidence": "verified",
          "doc_sources": [
            "data_query-billing-data.md"
          ],
          "raw_type": "varchar"
        },
        {
          "name": "updated",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "value_settings_event_payload_key",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        }
      ],
      "notes": [
        "status is uppercase in this table ('ACTIVE'), unlike most Sigma enum columns which are lowercase."
      ],
      "foreign_keys": [],
      "verified_against_account": true
    },
    {
      "name": "billing_schedule_applies_tos",
      "dataset": "unclassified",
      "source": "api_backed",
      "freshness_hours": null,
      "preview": false,
      "listed_in_stripe_freshness_table": false,
      "description": "",
      "grain": "",
      "primary_key": [
        "billing_schedule_key",
        "parent_id"
      ],
      "foreign_keys": [
        {
          "columns": [
            "price_id"
          ],
          "references": {
            "table": "prices",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        }
      ],
      "notes": [],
      "columns": [
        {
          "name": "billing_schedule_key",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "parent_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "price_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "billing_schedules",
      "dataset": "unclassified",
      "source": "api_backed",
      "freshness_hours": null,
      "preview": false,
      "listed_in_stripe_freshness_table": false,
      "description": "",
      "grain": "",
      "primary_key": [
        "key",
        "parent_id"
      ],
      "foreign_keys": [],
      "notes": [],
      "columns": [
        {
          "name": "key",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "parent_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "bill_until_computed_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "bill_until_duration_interval",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "bill_until_duration_interval_count",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "bill_until_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "bill_until_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "captures",
      "dataset": "unclassified",
      "source": "api_backed",
      "freshness_hours": null,
      "preview": false,
      "listed_in_stripe_freshness_table": false,
      "description": "",
      "grain": "",
      "primary_key": [
        "id"
      ],
      "foreign_keys": [
        {
          "columns": [
            "balance_transaction_id"
          ],
          "references": {
            "table": "balance_transactions",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        },
        {
          "columns": [
            "charge_id"
          ],
          "references": {
            "table": "charges",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        }
      ],
      "notes": [],
      "columns": [
        {
          "name": "id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "balance_transaction_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "charge_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "created",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "card_testing",
      "dataset": "radar",
      "source": "derived",
      "freshness_hours": 120,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Radar signals about suspected card testing activity on your account.",
      "grain": "One row per detected card testing event or aggregate window.",
      "primary_key": [],
      "columns": [],
      "foreign_keys": [],
      "columns_complete": false,
      "verified_against_account": false
    },
    {
      "name": "cardsauth_eight_digit_bins",
      "dataset": "unclassified",
      "source": "api_backed",
      "freshness_hours": null,
      "preview": false,
      "listed_in_stripe_freshness_table": false,
      "description": "",
      "grain": "",
      "primary_key": [],
      "foreign_keys": [],
      "notes": [],
      "columns": [
        {
          "name": "_viewing_compartment",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "_viewing_merchant",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "account_funding_source",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "card_bin",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "card_brand",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "country",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "description",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "issuer_name",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "locality_zone",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "cau_fees",
      "dataset": "other",
      "source": "derived",
      "freshness_hours": 72,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Card Account Updater fees, charged when Stripe automatically refreshes stored card credentials.",
      "grain": "One row per CAU fee.",
      "primary_key": [
        "billing_amount",
        "card_id"
      ],
      "columns": [
        {
          "name": "balance_transaction_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "billing_amount",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "card_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "balance_transaction_created_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "billing_currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "customer_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "event_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "fixed_per_item_amount",
          "type": "double",
          "confidence": "verified",
          "raw_type": "double",
          "description": ""
        },
        {
          "name": "fixed_per_item_count",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "fx_rate",
          "type": "double",
          "confidence": "verified",
          "raw_type": "double",
          "description": ""
        },
        {
          "name": "incurred_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "previous_card_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "subtotal_amount",
          "type": "double",
          "confidence": "verified",
          "raw_type": "double",
          "description": ""
        },
        {
          "name": "tax_amount",
          "type": "double",
          "confidence": "verified",
          "raw_type": "double",
          "description": ""
        },
        {
          "name": "tax_rate",
          "type": "double",
          "confidence": "verified",
          "raw_type": "double",
          "description": ""
        },
        {
          "name": "total_amount",
          "type": "double",
          "confidence": "verified",
          "raw_type": "double",
          "description": ""
        }
      ],
      "foreign_keys": [
        {
          "columns": [
            "balance_transaction_id"
          ],
          "references": {
            "table": "balance_transactions",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        },
        {
          "columns": [
            "customer_id"
          ],
          "references": {
            "table": "customers",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "charge_groups",
      "dataset": "other",
      "source": "derived",
      "freshness_hours": 72,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Groupings that link related charges, such as a retried payment and its original attempt.",
      "grain": "One row per (group, charge).",
      "primary_key": [],
      "columns": [
        {
          "name": "charge_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "amount_in_usd",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "created",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "final_charge_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        }
      ],
      "foreign_keys": [
        {
          "columns": [
            "charge_id"
          ],
          "references": {
            "table": "charges",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "charge_optimization_details",
      "dataset": "analytics",
      "source": "derived",
      "freshness_hours": 72,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Per-charge record of which Stripe payment optimizations were applied and what they recovered.",
      "grain": "One row per charge that had an optimization applied.",
      "primary_key": [],
      "columns": [
        {
          "name": "charge_id",
          "type": "varchar",
          "key": "foreign",
          "description": "Charge the optimization applied to.",
          "confidence": "community"
        }
      ],
      "foreign_keys": [
        {
          "columns": [
            "charge_id"
          ],
          "references": {
            "table": "charges",
            "columns": [
              "id"
            ]
          }
        }
      ],
      "columns_complete": false,
      "verified_against_account": false
    },
    {
      "name": "charges",
      "dataset": "payments",
      "source": "api_backed",
      "freshness_hours": 3,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "One row per Charge object. Use for charge-level analysis such as card brand mix, decline reasons and fraud outcomes. For accounting totals use balance_transactions instead.",
      "grain": "One row per charge, including failed charges.",
      "primary_key": [
        "id"
      ],
      "columns_complete": true,
      "columns": [
        {
          "name": "id",
          "type": "varchar",
          "key": "primary",
          "description": "Unique identifier for the object.",
          "confidence": "verified",
          "doc_sources": [
            "data_migrate-queries.md",
            "data_query-connect-data.md",
            "data_query-disputes-and-fraud-data.md",
            "data_query-transactions.md"
          ]
        },
        {
          "name": "amount",
          "type": "bigint",
          "description": "Amount intended to be collected by this payment. A positive integer representing how much to charge in the smallest currency unit (e.g., 100 cents to charge $1.00 or 100 to charge \u00a5100, a zero-decimal currency). The minimum amount is $0.50 US or equivalent in charge currency. The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99).",
          "confidence": "verified",
          "doc_sources": [
            "data_migrate-queries.md",
            "data_query-connect-data.md",
            "data_query-disputes-and-fraud-data.md"
          ],
          "raw_type": "bigint"
        },
        {
          "name": "amount_refunded",
          "type": "bigint",
          "description": "Amount in cents refunded (can be less than the amount attribute on the charge if a partial refund was issued).",
          "confidence": "verified",
          "raw_type": "bigint"
        },
        {
          "name": "application_fee_id",
          "type": "varchar",
          "key": "foreign",
          "description": "The application fee (if any) for the charge. See the Connect documentation for details.",
          "confidence": "verified"
        },
        {
          "name": "application_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "ID of the Connect application that created the charge."
        },
        {
          "name": "balance_transaction_id",
          "type": "varchar",
          "key": "foreign",
          "description": "ID of the balance transaction that describes the impact of this charge on your account balance (not including refunds or disputes).",
          "confidence": "verified"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": "The time in epoch format at which updates to the object were processed through the Stripe Data Pipeline. If the object hasn't changed, the time remains unchanged. This field isn't available in Sigma. It's only available for core API tables, including Connect versions, exported through the Stripe Data Pipeline."
        },
        {
          "name": "calculated_statement_descriptor",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The full statement descriptor that is passed to card networks, and that is displayed on your customers' credit card and bank statements. Allows you to see what the statement descriptor looks like after the static and dynamic portions are combined. This value only exists for card payments."
        },
        {
          "name": "captured",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": "If the charge was created without capturing, this Boolean represents whether it is still uncaptured or has since been captured."
        },
        {
          "name": "captured_at",
          "type": "timestamp",
          "description": "When the charge was captured. Null if never captured. Note the API exposes this as a boolean `captured`.",
          "confidence": "verified",
          "raw_type": "timestamp"
        },
        {
          "name": "card_address_city",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "City/District/Suburb/Town/Village."
        },
        {
          "name": "card_address_country",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "Billing address country, if provided when creating card."
        },
        {
          "name": "card_address_line1",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "Address line 1 (Street address/PO Box/Company name)."
        },
        {
          "name": "card_address_line1_check",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "If address_line1 was provided, results of the check: pass, fail, unavailable, or unchecked."
        },
        {
          "name": "card_address_line2",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "Address line 2 (Apartment/Suite/Unit/Building)."
        },
        {
          "name": "card_address_state",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "State/County/Province/Region."
        },
        {
          "name": "card_address_zip",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "ZIP or postal code."
        },
        {
          "name": "card_address_zip_check",
          "type": "varchar",
          "description": "If address_zip was provided, results of the check: pass, fail, unavailable, or unchecked.",
          "enum": [
            "pass",
            "fail",
            "unavailable",
            "unchecked"
          ],
          "confidence": "verified",
          "doc_sources": [
            "data_query-disputes-and-fraud-data.md"
          ],
          "raw_type": "varchar"
        },
        {
          "name": "card_brand",
          "type": "varchar",
          "description": "Card brand. Can be American Express, Cartes Bancaires, Diners Club, Discover, Eftpos Australia, Girocard, JCB, MasterCard, UnionPay, Visa, or Unknown.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-disputes-and-fraud-data.md",
            "data_query-transactions.md"
          ],
          "raw_type": "varchar",
          "enum": [
            "American Express",
            "Cartes Bancaires",
            "Diners Club",
            "Discover",
            "Eftpos Australia",
            "Girocard",
            "JCB",
            "MasterCard",
            "UnionPay",
            "Visa",
            "Unknown"
          ]
        },
        {
          "name": "card_country",
          "type": "varchar",
          "description": "Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-disputes-and-fraud-data.md"
          ],
          "raw_type": "varchar"
        },
        {
          "name": "card_currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "card_customer_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "The customer that this card belongs to. This attribute will not be in the card object if the card belongs to an account or recipient instead.",
          "key": "foreign"
        },
        {
          "name": "card_cvc_check",
          "type": "varchar",
          "description": "If a CVC was provided, results of the check: pass, fail, unavailable, or unchecked. A result of unchecked indicates that CVC was provided but hasn't been checked yet. Checks are typically performed when attaching a card to a Customer object, or when creating a charge. For more details, see Check if a card is valid without a charge.",
          "enum": [
            "pass",
            "fail",
            "unavailable",
            "unchecked"
          ],
          "confidence": "verified",
          "doc_sources": [
            "data_query-disputes-and-fraud-data.md"
          ],
          "raw_type": "varchar"
        },
        {
          "name": "card_default_for_currency",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": "Only applicable on payout external account card belonging to merchant (not as payment source customer card in charge)."
        },
        {
          "name": "card_dynamic_last4",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "(For tokenized numbers only.) The last four digits of the device account number."
        },
        {
          "name": "card_exp_month",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": "Two-digit number representing the card's expiration month."
        },
        {
          "name": "card_exp_year",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": "Four-digit number representing the card's expiration year."
        },
        {
          "name": "card_fingerprint",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "Uniquely identifies this particular card number. You can use this attribute to check whether two customers who\u2019ve signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number.\n\nAs of May 1, 2021, card fingerprint in India for Connect changed to allow two fingerprints for the same card---one for India and one for the rest of the world."
        },
        {
          "name": "card_funding",
          "type": "varchar",
          "description": "Card funding type. Can be credit, debit, prepaid, or unknown.",
          "enum": [
            "credit",
            "debit",
            "prepaid",
            "unknown"
          ],
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "card_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "Unique identifier for the object.",
          "key": "foreign"
        },
        {
          "name": "card_last4",
          "type": "varchar",
          "description": "The last four digits of the card.",
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "card_name",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "Cardholder name."
        },
        {
          "name": "card_network",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "Identifies which network this charge was processed on. Can be amex, cartes_bancaires, diners, discover, eftpos_au, interac, jcb, link, mastercard, unionpay, visa, or unknown.",
          "enum": [
            "amex",
            "cartes_bancaires",
            "diners",
            "discover",
            "eftpos_au",
            "interac",
            "jcb",
            "link",
            "mastercard",
            "unionpay",
            "visa",
            "unknown"
          ]
        },
        {
          "name": "card_recipient_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "card_token_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "If the card number is tokenized, this is the token type. For Apple Pay it can be dpan, mpan. For Google Pay Gateway integration it can be pan, dpan, ecommerce_token, pan_with_3ds. For Google Pay legacy integration it can be fpan, dpan_or_ecommerce_token.",
          "enum": [
            "dpan",
            "mpan"
          ]
        },
        {
          "name": "card_tokenization_method",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "If the card number is tokenized, this is the method that was used. Can be android_pay (includes Google Pay), apple_pay, masterpass, visa_checkout, or null.",
          "enum": [
            "android_pay",
            "apple_pay",
            "masterpass",
            "visa_checkout"
          ]
        },
        {
          "name": "created",
          "type": "timestamp",
          "description": "Time at which the object was created. Measured in seconds since the Unix epoch.",
          "confidence": "verified",
          "doc_sources": [
            "data_migrate-queries.md",
            "data_query-connect-data.md",
            "data_query-disputes-and-fraud-data.md",
            "data_query-transactions.md"
          ],
          "raw_type": "timestamp"
        },
        {
          "name": "currency",
          "type": "varchar",
          "description": "Three-letter ISO currency code, in lowercase. Must be a supported currency.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-disputes-and-fraud-data.md"
          ],
          "raw_type": "varchar"
        },
        {
          "name": "customer_id",
          "type": "varchar",
          "key": "foreign",
          "description": "ID of the customer this charge is for if one exists.",
          "confidence": "verified",
          "doc_sources": [
            "data_migrate-queries.md",
            "data_query-transactions.md"
          ]
        },
        {
          "name": "description",
          "type": "varchar",
          "description": "An arbitrary string attached to the object. Often useful for displaying to users.",
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "destination_id",
          "type": "varchar",
          "key": "foreign",
          "description": "Connected account funds were routed to. Joins to accounts.id / connected_accounts.id.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-disputes-and-fraud-data.md"
          ]
        },
        {
          "name": "dispute_id",
          "type": "varchar",
          "key": "foreign",
          "description": "Dispute against this charge, if any.",
          "confidence": "verified"
        },
        {
          "name": "failure_code",
          "type": "varchar",
          "description": "Error code explaining reason for charge failure if available (see the errors section for a list of codes).",
          "confidence": "verified",
          "doc_sources": [
            "data_query-transactions.md"
          ],
          "raw_type": "varchar"
        },
        {
          "name": "failure_message",
          "type": "varchar",
          "description": "Message to user further explaining reason for charge failure if available.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-transactions.md"
          ],
          "raw_type": "varchar"
        },
        {
          "name": "invoice_id",
          "type": "varchar",
          "key": "foreign",
          "description": "ID of the invoice this charge is for if one exists.",
          "confidence": "verified"
        },
        {
          "name": "on_behalf_of_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "The account (if any) the charge was made on behalf of without triggering an automatic transfer. See the Connect documentation for details.",
          "key": "foreign"
        },
        {
          "name": "order_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "outcome_advice_code",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "An enumerated value providing a more detailed explanation on how to proceed with an error."
        },
        {
          "name": "outcome_network_advice_code",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "For charges declined by the network, a 2 digit code which indicates the advice returned by the network on how to proceed with an error."
        },
        {
          "name": "outcome_network_decline_code",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "For charges declined by the network, an alphanumeric code which indicates the reason the charge failed."
        },
        {
          "name": "outcome_network_status",
          "type": "varchar",
          "description": "Possible values are approved_by_network, declined_by_network, not_sent_to_network, and reversed_after_approval. The value reversed_after_approval indicates the payment was blocked by Stripe after bank authorization, and may temporarily appear as \"pending\" on a cardholder's statement.",
          "confidence": "verified",
          "raw_type": "varchar",
          "enum": [
            "approved_by_network",
            "declined_by_network",
            "not_sent_to_network",
            "reversed_after_approval"
          ]
        },
        {
          "name": "outcome_reason",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "An enumerated value providing a more detailed explanation of the outcome's type. Charges blocked by Radar's default block rule have the value highest_risk_level. Charges placed in review by Radar's default review rule have the value elevated_risk_level. Charges blocked because the payment is unlikely to be authorized have the value low_probability_of_authorization. Charges authorized, blocked, or placed in review by custom rules have the value rule. See understanding declines for more details."
        },
        {
          "name": "outcome_risk_level",
          "type": "varchar",
          "description": "Bucketed risk level.",
          "enum": [
            "normal",
            "elevated",
            "highest",
            "not_assessed",
            "unknown"
          ],
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "outcome_risk_score",
          "type": "bigint",
          "description": "Radar risk score from 0 to 100. Higher is riskier.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-disputes-and-fraud-data.md"
          ],
          "raw_type": "bigint"
        },
        {
          "name": "outcome_rule_id",
          "type": "varchar",
          "key": "foreign",
          "description": "The ID of the Radar rule that matched the payment, if applicable.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-disputes-and-fraud-data.md"
          ]
        },
        {
          "name": "outcome_seller_message",
          "type": "varchar",
          "description": "A human-readable description of the outcome type and reason, designed for you (the recipient of the payment), not your customer.",
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "outcome_type",
          "type": "varchar",
          "description": "Possible values are authorized, manual_review, issuer_declined, blocked, and invalid. See understanding declines and Radar reviews for details.",
          "enum": [
            "authorized",
            "manual_review",
            "issuer_declined",
            "blocked",
            "invalid"
          ],
          "confidence": "verified",
          "doc_sources": [
            "data_query-disputes-and-fraud-data.md"
          ],
          "raw_type": "varchar"
        },
        {
          "name": "paid",
          "type": "boolean",
          "description": "true if the charge succeeded, or was successfully authorized for later capture.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-disputes-and-fraud-data.md"
          ],
          "raw_type": "boolean"
        },
        {
          "name": "payment_intent",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "ID of the PaymentIntent associated with this charge, if one exists."
        },
        {
          "name": "payment_method_id",
          "type": "varchar",
          "key": "foreign",
          "description": "ID of the payment method used in this charge.",
          "confidence": "verified"
        },
        {
          "name": "payment_method_type",
          "type": "varchar",
          "description": "The type of transaction-specific details of the payment method used in the payment. See PaymentMethod.type for the full list of possible types. An additional hash is included on payment_method_details with a name matching this value. It contains information specific to the payment method.",
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "presentment_amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": "Amount intended to be collected by this payment, denominated in presentment_currency."
        },
        {
          "name": "presentment_currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "Currency presented to the customer during payment."
        },
        {
          "name": "receipt_email",
          "type": "varchar",
          "description": "This is the email address that the receipt for this charge was sent to.",
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "receipt_number",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "This is the transaction number that appears on email receipts sent for this charge. This attribute will be null until a receipt has been sent."
        },
        {
          "name": "refunded",
          "type": "boolean",
          "description": "Whether the charge has been fully refunded. If the charge is only partially refunded, this attribute will still be false.",
          "confidence": "verified",
          "raw_type": "boolean"
        },
        {
          "name": "shipping_address_city",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "City, district, suburb, town, or village."
        },
        {
          "name": "shipping_address_country",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "Two-letter country code (ISO 3166-1 alpha-2)."
        },
        {
          "name": "shipping_address_line1",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "Address line 1, such as the street, PO Box, or company name."
        },
        {
          "name": "shipping_address_line2",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "Address line 2, such as the apartment, suite, unit, or building."
        },
        {
          "name": "shipping_address_postal_code",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "ZIP or postal code."
        },
        {
          "name": "shipping_address_state",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "State, county, province, or region (ISO 3166-2)."
        },
        {
          "name": "source_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "source_transfer_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "The transfer ID which created this charge. Only present if the charge came from another Stripe account. See the Connect documentation for details.",
          "key": "foreign"
        },
        {
          "name": "statement_descriptor",
          "type": "varchar",
          "description": "For a non-card charge, text that appears on the customer's statement as the statement descriptor. This value overrides the account's default statement descriptor. For information about requirements, including the 22-character limit, see the Statement Descriptor docs.\n\nFor a card charge, this value is ignored unless you don't specify a statement_descriptor_suffix, in which case this value is used as the suffix.",
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "statement_descriptor_suffix",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "Provides information about a card charge. Concatenated to the account's statement descriptor prefix to form the complete statement descriptor that appears on the customer's statement. If the account has no prefix value, the suffix is concatenated to the account's statement descriptor."
        },
        {
          "name": "status",
          "type": "varchar",
          "description": "The status of the payment is either succeeded, pending, or failed.",
          "enum": [
            "succeeded",
            "pending",
            "failed"
          ],
          "confidence": "verified",
          "doc_sources": [
            "data_query-transactions.md"
          ],
          "raw_type": "varchar"
        },
        {
          "name": "transfer_group",
          "type": "varchar",
          "description": "A string that identifies this transaction as part of a group. See the Connect documentation for details.",
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "transfer_id",
          "type": "varchar",
          "key": "foreign",
          "description": "ID of the transfer to the destination account (only applicable if the charge was created using the destination parameter).",
          "confidence": "verified",
          "doc_sources": [
            "data_query-connect-data.md"
          ]
        }
      ],
      "foreign_keys": [
        {
          "columns": [
            "customer_id"
          ],
          "references": {
            "table": "customers",
            "columns": [
              "id"
            ]
          },
          "confidence": "documented"
        },
        {
          "columns": [
            "invoice_id"
          ],
          "references": {
            "table": "invoices",
            "columns": [
              "id"
            ]
          }
        },
        {
          "columns": [
            "balance_transaction_id"
          ],
          "references": {
            "table": "balance_transactions",
            "columns": [
              "id"
            ]
          }
        },
        {
          "columns": [
            "transfer_id"
          ],
          "references": {
            "table": "transfers",
            "columns": [
              "id"
            ]
          },
          "confidence": "documented"
        },
        {
          "columns": [
            "destination_id"
          ],
          "references": {
            "table": "connected_accounts",
            "columns": [
              "id"
            ]
          },
          "confidence": "documented"
        },
        {
          "columns": [
            "payment_method_id"
          ],
          "references": {
            "table": "payment_methods",
            "columns": [
              "id"
            ]
          }
        },
        {
          "columns": [
            "application_fee_id"
          ],
          "references": {
            "table": "application_fees",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        },
        {
          "columns": [
            "dispute_id"
          ],
          "references": {
            "table": "disputes",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        },
        {
          "columns": [
            "source_id"
          ],
          "references": {
            "table": "sources",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        }
      ],
      "notes": [
        "card_brand values are display-cased (Visa, MasterCard), not the API's lowercase (visa, mastercard). Filter accordingly.",
        "Extra card detail beyond the flattened card_* columns lives in payment_method_details, joined on charge_id.",
        "A partial capture produces both a charge for the full authorized amount and a refund with reason 'partial_capture'. Exclude those refunds when measuring true refund rates."
      ],
      "verified_against_account": true
    },
    {
      "name": "charges_metadata",
      "dataset": "payments",
      "source": "api_backed",
      "freshness_hours": 3,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Metadata key/value pairs set on charges. One row per (object, metadata key) pair. Objects with no metadata have no rows.",
      "grain": "One row per (object, metadata key) pair. Objects with no metadata have no rows.",
      "primary_key": [
        "key"
      ],
      "columns": [
        {
          "name": "charge_id",
          "type": "varchar",
          "key": "foreign",
          "description": "References the id column of the parent object table.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-disputes-and-fraud-data.md"
          ]
        },
        {
          "name": "key",
          "type": "varchar",
          "description": "The metadata key set on the object.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-disputes-and-fraud-data.md"
          ],
          "key": "primary"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "value",
          "type": "varchar",
          "description": "The metadata value for that key. Always a string, even when it holds a number or boolean.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-disputes-and-fraud-data.md"
          ],
          "raw_type": "varchar"
        }
      ],
      "columns_complete": true,
      "foreign_keys": [
        {
          "columns": [
            "charge_id"
          ],
          "references": {
            "table": "charges",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        }
      ],
      "notes": [
        "Values are always strings, even when they hold numbers or booleans.",
        "Pivot to columns with: select charge_id, map_agg(key, value) as md from charges_metadata group by 1"
      ],
      "derived_from_convention": "metadata_tables",
      "verified_against_account": true
    },
    {
      "name": "checkout_custom_fields",
      "dataset": "checkout",
      "source": "api_backed",
      "freshness_hours": 3,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Values customers entered into custom fields you configured on a Checkout session.",
      "grain": "One row per (session, custom field).",
      "primary_key": [
        "checkout_session_id",
        "id"
      ],
      "columns": [
        {
          "name": "checkout_session_id",
          "type": "varchar",
          "key": "primary",
          "description": "Session the field belongs to.",
          "confidence": "verified"
        },
        {
          "name": "id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "key",
          "type": "varchar",
          "description": "Custom field key.",
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "optional",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": ""
        },
        {
          "name": "type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "value",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        }
      ],
      "foreign_keys": [
        {
          "columns": [
            "checkout_session_id"
          ],
          "references": {
            "table": "checkout_sessions",
            "columns": [
              "id"
            ]
          }
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "checkout_line_items",
      "dataset": "checkout",
      "source": "api_backed",
      "freshness_hours": 3,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Line items on a Checkout session.",
      "grain": "One row per line item on a session.",
      "primary_key": [
        "id"
      ],
      "columns": [
        {
          "name": "id",
          "type": "varchar",
          "key": "primary",
          "description": "Unique identifier for the line item.",
          "confidence": "verified"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "checkout_session_id",
          "type": "varchar",
          "key": "foreign",
          "description": "Parent Checkout session.",
          "confidence": "verified"
        },
        {
          "name": "created",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "description",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "price_id",
          "type": "varchar",
          "key": "foreign",
          "description": "Price on the line item.",
          "confidence": "verified"
        },
        {
          "name": "product_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "quantity",
          "type": "bigint",
          "description": "Quantity purchased.",
          "confidence": "verified",
          "raw_type": "bigint"
        }
      ],
      "foreign_keys": [
        {
          "columns": [
            "checkout_session_id"
          ],
          "references": {
            "table": "checkout_sessions",
            "columns": [
              "id"
            ]
          }
        },
        {
          "columns": [
            "price_id"
          ],
          "references": {
            "table": "prices",
            "columns": [
              "id"
            ]
          }
        },
        {
          "columns": [
            "product_id"
          ],
          "references": {
            "table": "products",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "checkout_sessions",
      "dataset": "checkout",
      "source": "api_backed",
      "freshness_hours": 3,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Stripe Checkout sessions, including abandoned ones. The table to use for hosted-checkout conversion analysis.",
      "grain": "One row per Checkout session.",
      "primary_key": [
        "id"
      ],
      "columns": [
        {
          "name": "id",
          "type": "varchar",
          "key": "primary",
          "description": "Unique identifier for the object.",
          "confidence": "verified"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": "The time in epoch format at which updates to the object were processed through the Stripe Data Pipeline. If the object hasn't changed, the time remains unchanged. This field isn't available in Sigma. It's only available for core API tables, including Connect versions, exported through the Stripe Data Pipeline."
        },
        {
          "name": "client_reference_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The client reference id of the payment page"
        },
        {
          "name": "consent_promotions",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The value of promotions consent. If opt_in, the customer consents to receiving promotional communications from the merchant about this Checkout Session"
        },
        {
          "name": "consent_terms_of_service",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The value of terms of service consent. If accepted, the customer in this Checkout Session has agreed to the merchant\u2019s terms of service."
        },
        {
          "name": "created",
          "type": "timestamp",
          "description": "Time at which the object was created. Measured in seconds since the Unix epoch.",
          "confidence": "verified",
          "raw_type": "timestamp"
        },
        {
          "name": "currency",
          "type": "varchar",
          "description": "Three-letter ISO currency code, in lowercase.",
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "customer_id",
          "type": "varchar",
          "key": "foreign",
          "description": "The ID of the customer for this Session.",
          "confidence": "verified"
        },
        {
          "name": "invoice_id",
          "type": "varchar",
          "key": "foreign",
          "description": "ID of the invoice created by the Checkout Session, if it exists.",
          "confidence": "verified"
        },
        {
          "name": "managed_payments_enabled",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": "Whether Managed Payments is enabled for this checkout session."
        },
        {
          "name": "mode",
          "type": "varchar",
          "description": "The mode of the Checkout Session. One of payment, setup, or subscription",
          "enum": [
            "payment",
            "setup",
            "subscription"
          ],
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "payment_intent_id",
          "type": "varchar",
          "key": "foreign",
          "description": "The PaymentIntent ID associated with this Checkout session",
          "confidence": "verified"
        },
        {
          "name": "payment_link_id",
          "type": "varchar",
          "key": "foreign",
          "description": "The payment link ID associated with this Checkout session",
          "confidence": "verified"
        },
        {
          "name": "shipping_cost_amount_subtotal",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": "Total shipping cost before any discounts or taxes are applied, in minor units"
        },
        {
          "name": "shipping_cost_amount_tax",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": "Total tax amount applied due to shipping costs, in minor units. If no tax was applied, defaults to 0"
        },
        {
          "name": "shipping_cost_amount_total",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": "Total shipping cost after discounts and taxes are applied, in minor units"
        },
        {
          "name": "status",
          "type": "varchar",
          "description": "The status of the Checkout Session, either complete or expired.",
          "enum": [
            "complete",
            "expired"
          ],
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "subscription_id",
          "type": "varchar",
          "key": "foreign",
          "description": "The ID of the subscription for Checkout Sessions in subscription mode",
          "confidence": "verified"
        }
      ],
      "foreign_keys": [
        {
          "columns": [
            "customer_id"
          ],
          "references": {
            "table": "customers",
            "columns": [
              "id"
            ]
          }
        },
        {
          "columns": [
            "payment_intent_id"
          ],
          "references": {
            "table": "payment_intents",
            "columns": [
              "id"
            ]
          }
        },
        {
          "columns": [
            "payment_link_id"
          ],
          "references": {
            "table": "payment_links",
            "columns": [
              "id"
            ]
          }
        },
        {
          "columns": [
            "invoice_id"
          ],
          "references": {
            "table": "invoices",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        },
        {
          "columns": [
            "subscription_id"
          ],
          "references": {
            "table": "subscriptions",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        }
      ],
      "notes": [
        "status = 'expired' identifies abandoned checkouts \u2014 the denominator for conversion rate."
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "checkout_sessions_metadata",
      "dataset": "unclassified",
      "source": "api_backed",
      "freshness_hours": null,
      "preview": false,
      "listed_in_stripe_freshness_table": false,
      "description": "",
      "grain": "",
      "primary_key": [
        "checkout_session_id",
        "key"
      ],
      "foreign_keys": [],
      "notes": [],
      "columns": [
        {
          "name": "checkout_session_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "key",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "value",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "connected_account_activity_report_itemized",
      "dataset": "other",
      "source": "derived",
      "freshness_hours": 80,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Connect platform view of activity_report_itemized, per connected account.",
      "grain": "One row per reportable activity item, per connected account.",
      "primary_key": [],
      "mirror_of": "activity_report_itemized",
      "columns": [
        {
          "name": "account",
          "type": "varchar",
          "key": "foreign",
          "description": "The connected account (acct_...) this row belongs to.",
          "confidence": "conventional"
        }
      ],
      "foreign_keys": [
        {
          "columns": [
            "account"
          ],
          "references": {
            "table": "accounts",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        }
      ],
      "derived_from_convention": "connect_mirror_tables",
      "columns_complete": false,
      "columns_inherited_from": "activity_report_itemized",
      "verified_against_account": false
    },
    {
      "name": "connected_account_balance_transactions",
      "dataset": "connect-payments",
      "source": "api_backed",
      "freshness_hours": null,
      "preview": false,
      "listed_in_stripe_freshness_table": false,
      "evidence": "https://docs.stripe.com/data/query-connect-data",
      "description": "Connect platform view of balance_transactions for connected accounts. Ledger-style record of every event that moves money into or out of your Stripe balance. The canonical starting point for accounting and reconciliation, because it covers charges, refunds, transfers, payouts, adjustments and fees in one immutable table.",
      "primary_key": [],
      "columns": [
        {
          "name": "account",
          "type": "varchar",
          "key": "foreign",
          "description": "The connected account (acct_...) this row belongs to.",
          "confidence": "documented",
          "doc_sources": [
            "data_query-connect-data.md"
          ]
        },
        {
          "name": "amount",
          "type": "bigint",
          "description": "Gross amount in minor currency units. Negative for money leaving your balance.",
          "confidence": "documented",
          "doc_sources": [
            "data_query-connect-data.md"
          ]
        },
        {
          "name": "created",
          "type": "timestamp",
          "description": "When the transaction was created (UTC).",
          "confidence": "documented",
          "doc_sources": [
            "data_query-connect-data.md"
          ]
        },
        {
          "name": "currency",
          "type": "varchar",
          "description": "Three-letter ISO currency code, lowercase.",
          "confidence": "documented",
          "doc_sources": [
            "data_query-connect-data.md"
          ]
        },
        {
          "name": "source_id",
          "type": "varchar",
          "key": "foreign",
          "description": "Polymorphic id of the object that caused this transaction. Resolve the target using the id prefix or the type column: ch_ -> charges, re_ -> refunds, po_/tr_ -> transfers.",
          "confidence": "documented",
          "doc_sources": [
            "data_query-connect-data.md"
          ]
        },
        {
          "name": "type",
          "type": "varchar",
          "description": "Transaction type.",
          "enum": [
            "charge",
            "refund",
            "adjustment",
            "application_fee",
            "application_fee_refund",
            "transfer",
            "payment",
            "payout",
            "payout_cancel",
            "payout_failure",
            "stripe_fee",
            "network_cost"
          ],
          "confidence": "documented",
          "doc_sources": [
            "data_query-connect-data.md"
          ]
        },
        {
          "name": "id",
          "type": "varchar",
          "key": "primary",
          "description": "Unique identifier, prefixed txn_.",
          "confidence": "documented",
          "doc_sources": [
            "data_data-freshness.md",
            "data_query-all-fees-data.md",
            "data_query-issuing-data.md",
            "data_query-transactions.md"
          ]
        },
        {
          "name": "automatic_transfer_id",
          "type": "varchar",
          "key": "foreign",
          "description": "The automatic payout this transaction was included in. Joins to transfers.id.",
          "confidence": "documented",
          "doc_sources": [
            "data_query-transactions.md"
          ]
        },
        {
          "name": "available_on",
          "type": "timestamp",
          "description": "When the funds become available in your balance.",
          "confidence": "community"
        },
        {
          "name": "description",
          "type": "varchar",
          "description": "Free-text description of the transaction.",
          "confidence": "community"
        },
        {
          "name": "exchange_rate",
          "type": "double",
          "description": "Rate applied when the presentment currency differs from the settlement currency.",
          "confidence": "community"
        },
        {
          "name": "fee",
          "type": "bigint",
          "description": "Total fee in minor units. Break it down via balance_transaction_fee_details.",
          "confidence": "documented",
          "doc_sources": [
            "data_data-freshness.md",
            "data_query-transactions.md"
          ]
        },
        {
          "name": "net",
          "type": "bigint",
          "description": "amount minus fee, in minor units.",
          "confidence": "documented",
          "doc_sources": [
            "data_query-transactions.md"
          ]
        },
        {
          "name": "reporting_category",
          "type": "varchar",
          "description": "Coarser grouping of type, aligned with Stripe's financial reports. Prefer this over type for revenue reporting.",
          "confidence": "documented",
          "doc_sources": [
            "data_query-all-fees-data.md"
          ]
        }
      ],
      "mirror_of": "balance_transactions",
      "foreign_keys": [
        {
          "columns": [
            "account"
          ],
          "references": {
            "table": "accounts",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        },
        {
          "columns": [
            "automatic_transfer_id"
          ],
          "references": {
            "table": "transfers",
            "columns": [
              "id"
            ]
          },
          "confidence": "documented"
        }
      ],
      "derived_from_convention": "connect_mirror_tables",
      "columns_complete": false,
      "columns_inherited_from": "balance_transactions",
      "grain": "One row per balance transaction. Rows are never mutated after creation.",
      "verified_against_account": false
    },
    {
      "name": "connected_account_charges",
      "dataset": "connect-payments",
      "source": "api_backed",
      "freshness_hours": null,
      "preview": false,
      "listed_in_stripe_freshness_table": false,
      "evidence": "https://docs.stripe.com/data/query-connect-data",
      "description": "Connect platform view of charges for connected accounts. One row per Charge object. Use for charge-level analysis such as card brand mix, decline reasons and fraud outcomes. For accounting totals use balance_transactions instead.",
      "primary_key": [],
      "columns": [
        {
          "name": "account",
          "type": "varchar",
          "key": "foreign",
          "description": "The connected account (acct_...) this row belongs to.",
          "confidence": "conventional"
        },
        {
          "name": "id",
          "type": "varchar",
          "key": "primary",
          "description": "Unique identifier, prefixed ch_.",
          "confidence": "documented",
          "doc_sources": [
            "data_migrate-queries.md",
            "data_query-connect-data.md",
            "data_query-disputes-and-fraud-data.md",
            "data_query-transactions.md"
          ]
        },
        {
          "name": "amount",
          "type": "bigint",
          "description": "Charge amount in minor currency units.",
          "confidence": "documented",
          "doc_sources": [
            "data_migrate-queries.md",
            "data_query-connect-data.md",
            "data_query-disputes-and-fraud-data.md"
          ]
        },
        {
          "name": "amount_refunded",
          "type": "bigint",
          "description": "Amount refunded so far, in minor units.",
          "confidence": "community"
        },
        {
          "name": "application_fee_id",
          "type": "varchar",
          "key": "foreign",
          "description": "Application fee collected by the platform, if any.",
          "confidence": "community"
        },
        {
          "name": "balance_transaction_id",
          "type": "varchar",
          "key": "foreign",
          "description": "Balance transaction recording this charge's effect on your balance.",
          "confidence": "community"
        },
        {
          "name": "captured_at",
          "type": "timestamp",
          "description": "When the charge was captured. Null if never captured. Note the API exposes this as a boolean `captured`.",
          "confidence": "community"
        },
        {
          "name": "card_address_zip_check",
          "type": "varchar",
          "description": "Postal code verification result.",
          "enum": [
            "pass",
            "fail",
            "unavailable",
            "unchecked"
          ],
          "confidence": "documented",
          "doc_sources": [
            "data_query-disputes-and-fraud-data.md"
          ]
        },
        {
          "name": "card_brand",
          "type": "varchar",
          "description": "Card brand as displayed, e.g. Visa, MasterCard, American Express. Note the capitalization differs from the API's lowercase values.",
          "confidence": "documented",
          "doc_sources": [
            "data_query-disputes-and-fraud-data.md",
            "data_query-transactions.md"
          ]
        },
        {
          "name": "card_country",
          "type": "varchar",
          "description": "Two-letter ISO country of the issuing bank. Compare against your own country to measure cross-border volume.",
          "confidence": "documented",
          "doc_sources": [
            "data_query-disputes-and-fraud-data.md"
          ]
        },
        {
          "name": "card_cvc_check",
          "type": "varchar",
          "description": "CVC verification result.",
          "enum": [
            "pass",
            "fail",
            "unavailable",
            "unchecked"
          ],
          "confidence": "documented",
          "doc_sources": [
            "data_query-disputes-and-fraud-data.md"
          ]
        },
        {
          "name": "card_funding",
          "type": "varchar",
          "description": "Funding type.",
          "enum": [
            "credit",
            "debit",
            "prepaid",
            "unknown"
          ],
          "confidence": "community"
        },
        {
          "name": "card_last4",
          "type": "varchar",
          "description": "Last four digits of the card.",
          "confidence": "community"
        },
        {
          "name": "created",
          "type": "timestamp",
          "description": "When the charge was created (UTC).",
          "confidence": "documented",
          "doc_sources": [
            "data_migrate-queries.md",
            "data_query-connect-data.md",
            "data_query-disputes-and-fraud-data.md",
            "data_query-transactions.md"
          ]
        },
        {
          "name": "currency",
          "type": "varchar",
          "description": "Three-letter ISO currency code, lowercase.",
          "confidence": "documented",
          "doc_sources": [
            "data_query-disputes-and-fraud-data.md"
          ]
        },
        {
          "name": "customer_id",
          "type": "varchar",
          "key": "foreign",
          "description": "Customer the charge belongs to. Joins to customers.id.",
          "confidence": "documented",
          "doc_sources": [
            "data_migrate-queries.md",
            "data_query-transactions.md"
          ]
        },
        {
          "name": "description",
          "type": "varchar",
          "description": "Free-text description.",
          "confidence": "community"
        },
        {
          "name": "destination_id",
          "type": "varchar",
          "key": "foreign",
          "description": "Connected account funds were routed to. Joins to accounts.id / connected_accounts.id.",
          "confidence": "documented",
          "doc_sources": [
            "data_query-disputes-and-fraud-data.md"
          ]
        },
        {
          "name": "dispute_id",
          "type": "varchar",
          "key": "foreign",
          "description": "Dispute against this charge, if any.",
          "confidence": "community"
        },
        {
          "name": "failure_code",
          "type": "varchar",
          "description": "Machine-readable decline code when status is failed, e.g. card_declined.",
          "confidence": "documented",
          "doc_sources": [
            "data_query-transactions.md"
          ]
        },
        {
          "name": "failure_message",
          "type": "varchar",
          "description": "Human-readable decline reason when status is failed.",
          "confidence": "documented",
          "doc_sources": [
            "data_query-transactions.md"
          ]
        },
        {
          "name": "invoice_id",
          "type": "varchar",
          "key": "foreign",
          "description": "Invoice that generated this charge, if any.",
          "confidence": "community"
        },
        {
          "name": "livemode",
          "type": "boolean",
          "description": "False for sandbox/test data.",
          "confidence": "community"
        },
        {
          "name": "outcome_network_status",
          "type": "varchar",
          "description": "How the card network responded, e.g. approved_by_network, declined_by_network.",
          "confidence": "community"
        },
        {
          "name": "outcome_risk_level",
          "type": "varchar",
          "description": "Bucketed risk level.",
          "enum": [
            "normal",
            "elevated",
            "highest",
            "not_assessed",
            "unknown"
          ],
          "confidence": "community"
        },
        {
          "name": "outcome_risk_score",
          "type": "bigint",
          "description": "Radar risk score from 0 to 100. Higher is riskier.",
          "confidence": "documented",
          "doc_sources": [
            "data_query-disputes-and-fraud-data.md"
          ]
        },
        {
          "name": "outcome_rule_id",
          "type": "varchar",
          "key": "foreign",
          "description": "Radar rule that produced the outcome. Joins to radar_rules.rule_id.",
          "confidence": "documented",
          "doc_sources": [
            "data_query-disputes-and-fraud-data.md"
          ]
        },
        {
          "name": "outcome_seller_message",
          "type": "varchar",
          "description": "Plain-language explanation of the outcome.",
          "confidence": "community"
        },
        {
          "name": "outcome_type",
          "type": "varchar",
          "description": "Radar's verdict.",
          "enum": [
            "authorized",
            "manual_review",
            "issuer_declined",
            "blocked",
            "invalid"
          ],
          "confidence": "documented",
          "doc_sources": [
            "data_query-disputes-and-fraud-data.md"
          ]
        },
        {
          "name": "paid",
          "type": "boolean",
          "description": "Whether the charge was successfully paid.",
          "confidence": "documented",
          "doc_sources": [
            "data_query-disputes-and-fraud-data.md"
          ]
        },
        {
          "name": "payment_intent_id",
          "type": "varchar",
          "key": "foreign",
          "description": "PaymentIntent that created this charge, if any.",
          "confidence": "community"
        },
        {
          "name": "payment_method_id",
          "type": "varchar",
          "key": "foreign",
          "description": "PaymentMethod used. Joins to payment_methods.id.",
          "confidence": "community"
        },
        {
          "name": "payment_method_type",
          "type": "varchar",
          "description": "Payment method family used, e.g. card, us_bank_account, sepa_debit.",
          "confidence": "community"
        },
        {
          "name": "receipt_email",
          "type": "varchar",
          "description": "Email the receipt was sent to.",
          "confidence": "community"
        },
        {
          "name": "refunded",
          "type": "boolean",
          "description": "Whether the charge was fully refunded.",
          "confidence": "community"
        },
        {
          "name": "statement_descriptor",
          "type": "varchar",
          "description": "Text shown on the cardholder's statement.",
          "confidence": "community"
        },
        {
          "name": "status",
          "type": "varchar",
          "description": "Charge status.",
          "enum": [
            "succeeded",
            "pending",
            "failed"
          ],
          "confidence": "documented",
          "doc_sources": [
            "data_query-transactions.md"
          ]
        },
        {
          "name": "transfer_group",
          "type": "varchar",
          "description": "String grouping this charge with related transfers.",
          "confidence": "community"
        },
        {
          "name": "transfer_id",
          "type": "varchar",
          "key": "foreign",
          "description": "Connect transfer generated by this charge (destination charges). Joins to transfers.id.",
          "confidence": "documented",
          "doc_sources": [
            "data_query-connect-data.md"
          ]
        }
      ],
      "mirror_of": "charges",
      "foreign_keys": [
        {
          "columns": [
            "account"
          ],
          "references": {
            "table": "accounts",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        },
        {
          "columns": [
            "customer_id"
          ],
          "references": {
            "table": "customers",
            "columns": [
              "id"
            ]
          },
          "confidence": "documented"
        },
        {
          "columns": [
            "invoice_id"
          ],
          "references": {
            "table": "invoices",
            "columns": [
              "id"
            ]
          }
        },
        {
          "columns": [
            "payment_intent_id"
          ],
          "references": {
            "table": "payment_intents",
            "columns": [
              "id"
            ]
          }
        },
        {
          "columns": [
            "balance_transaction_id"
          ],
          "references": {
            "table": "balance_transactions",
            "columns": [
              "id"
            ]
          }
        },
        {
          "columns": [
            "transfer_id"
          ],
          "references": {
            "table": "transfers",
            "columns": [
              "id"
            ]
          },
          "confidence": "documented"
        },
        {
          "columns": [
            "destination_id"
          ],
          "references": {
            "table": "connected_accounts",
            "columns": [
              "id"
            ]
          },
          "confidence": "documented"
        },
        {
          "columns": [
            "payment_method_id"
          ],
          "references": {
            "table": "payment_methods",
            "columns": [
              "id"
            ]
          }
        }
      ],
      "derived_from_convention": "connect_mirror_tables",
      "columns_complete": false,
      "columns_inherited_from": "charges",
      "grain": "One row per charge, including failed charges.",
      "verified_against_account": false
    },
    {
      "name": "connected_account_issuing_authorizations",
      "dataset": "connect-issuing",
      "source": "api_backed",
      "freshness_hours": null,
      "preview": false,
      "listed_in_stripe_freshness_table": false,
      "evidence": "https://docs.stripe.com/data/query-issuing-data",
      "description": "Connect platform view of issuing_authorizations for connected accounts. Authorization requests created whenever an issued card is used. Includes declined attempts.",
      "primary_key": [],
      "columns": [
        {
          "name": "account",
          "type": "varchar",
          "key": "foreign",
          "description": "The connected account (acct_...) this row belongs to.",
          "confidence": "conventional"
        },
        {
          "name": "id",
          "type": "varchar",
          "key": "primary",
          "description": "Unique identifier, prefixed iauth_.",
          "confidence": "documented",
          "doc_sources": [
            "data_query-issuing-data.md"
          ]
        },
        {
          "name": "amount",
          "type": "bigint",
          "description": "Authorized amount in minor currency units.",
          "confidence": "documented",
          "doc_sources": [
            "data_query-issuing-data.md"
          ]
        },
        {
          "name": "approved",
          "type": "boolean",
          "description": "Whether the authorization was approved.",
          "confidence": "documented",
          "doc_sources": [
            "data_query-issuing-data.md"
          ]
        },
        {
          "name": "card_id",
          "type": "varchar",
          "key": "foreign",
          "description": "Card used for the purchase.",
          "confidence": "documented"
        },
        {
          "name": "cardholder_id",
          "type": "varchar",
          "key": "foreign",
          "description": "Cardholder who made the purchase.",
          "confidence": "community"
        },
        {
          "name": "created",
          "type": "timestamp",
          "description": "When the authorization was requested (UTC).",
          "confidence": "documented",
          "doc_sources": [
            "data_query-issuing-data.md"
          ]
        },
        {
          "name": "currency",
          "type": "varchar",
          "description": "Three-letter ISO currency code, lowercase.",
          "confidence": "community"
        },
        {
          "name": "merchant_category_code",
          "type": "varchar",
          "description": "MCC of the merchant.",
          "confidence": "community"
        },
        {
          "name": "merchant_country",
          "type": "varchar",
          "description": "Two-letter ISO country of the merchant.",
          "confidence": "community"
        },
        {
          "name": "merchant_name",
          "type": "varchar",
          "description": "Merchant the card was used at.",
          "confidence": "community"
        },
        {
          "name": "status",
          "type": "varchar",
          "description": "Authorization status.",
          "enum": [
            "pending",
            "closed",
            "reversed",
            "expired"
          ],
          "confidence": "community"
        }
      ],
      "mirror_of": "issuing_authorizations",
      "foreign_keys": [
        {
          "columns": [
            "account"
          ],
          "references": {
            "table": "accounts",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        },
        {
          "columns": [
            "card_id"
          ],
          "references": {
            "table": "issuing_cards",
            "columns": [
              "id"
            ]
          },
          "confidence": "documented"
        },
        {
          "columns": [
            "cardholder_id"
          ],
          "references": {
            "table": "issuing_cardholders",
            "columns": [
              "id"
            ]
          }
        }
      ],
      "derived_from_convention": "connect_mirror_tables",
      "columns_complete": false,
      "columns_inherited_from": "issuing_authorizations",
      "grain": "One row per authorization.",
      "verified_against_account": false
    },
    {
      "name": "connected_account_itemized_fees",
      "dataset": "other",
      "source": "derived",
      "freshness_hours": 120,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Connect platform view of itemized_fees, showing fees paid by each connected account.",
      "grain": "One row per fee, per connected account.",
      "primary_key": [],
      "mirror_of": "itemized_fees",
      "notes": [
        "amount and tax are in MAJOR currency units, same as itemized_fees."
      ],
      "columns": [
        {
          "name": "account",
          "type": "varchar",
          "key": "foreign",
          "description": "The connected account (acct_...) this row belongs to.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-all-fees-data.md"
          ]
        },
        {
          "name": "activity_end_time",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "activity_start_time",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "amount",
          "type": "double",
          "description": "Fee incurred for this activity, expressed in MAJOR units of the currency. Excludes the tax amount.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-all-fees-data.md"
          ],
          "raw_type": "Decimal(38,18)"
        },
        {
          "name": "balance_transaction_created",
          "type": "timestamp",
          "description": "Time (in UTC) at which the balance transaction affected your Stripe balance.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-all-fees-data.md"
          ],
          "raw_type": "timestamp"
        },
        {
          "name": "balance_transaction_description",
          "type": "varchar",
          "description": "The description of the balance transaction containing the fee.",
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "balance_transaction_id",
          "type": "varchar",
          "key": "foreign",
          "description": "The ID of the balance transaction that debited the fee from your balance.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-all-fees-data.md"
          ]
        },
        {
          "name": "connected_account_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "credit_note_number",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "currency",
          "type": "varchar",
          "description": "Three-letter ISO code for the currency in which amount and tax are defined.",
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "feature_description",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "feature_name",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "fee_category",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "fee_description",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "fee_transaction_created",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "fee_transaction_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "incurred_at",
          "type": "timestamp",
          "description": "Time (in UTC) at which the fee was incurred, by the date of its originating event.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-all-fees-data.md"
          ],
          "raw_type": "timestamp"
        },
        {
          "name": "incurred_by",
          "type": "varchar",
          "description": "The ID of the object that incurred this fee, if any. Use incurred_by_type to determine the type of this object.",
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "incurred_by_type",
          "type": "varchar",
          "description": "The object type which incurred_by references. Matches the object field in the API (Charge, Refund, Invoice, etc).",
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "invoice_number",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "platform_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "pricing_tier",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "product",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "product_feature_description",
          "type": "varchar",
          "description": "The product or feature associated with the fee.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-all-fees-data.md"
          ],
          "raw_type": "varchar"
        },
        {
          "name": "settled_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "settled_via",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "suite",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "tax",
          "type": "double",
          "description": "Tax component of the fees paid, expressed in MAJOR units of the currency.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-all-fees-data.md"
          ],
          "raw_type": "Decimal(38,18)"
        }
      ],
      "foreign_keys": [
        {
          "columns": [
            "account"
          ],
          "references": {
            "table": "accounts",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        },
        {
          "columns": [
            "balance_transaction_id"
          ],
          "references": {
            "table": "balance_transactions",
            "columns": [
              "id"
            ]
          },
          "confidence": "documented"
        }
      ],
      "derived_from_convention": "connect_mirror_tables",
      "columns_complete": true,
      "columns_inherited_from": "itemized_fees",
      "verified_against_account": true
    },
    {
      "name": "connected_account_itemized_fees_beta",
      "dataset": "other",
      "source": "derived",
      "freshness_hours": 120,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Preview version of connected_account_itemized_fees.",
      "grain": "One row per fee, per connected account.",
      "primary_key": [],
      "mirror_of": "itemized_fees",
      "columns": [
        {
          "name": "account",
          "type": "varchar",
          "key": "foreign",
          "description": "The connected account (acct_...) this row belongs to.",
          "confidence": "conventional"
        },
        {
          "name": "activity_end_date",
          "type": "timestamp",
          "description": "For fees calculated from activity spanning a period of time, the activity's ending date (UTC).",
          "confidence": "documented"
        },
        {
          "name": "activity_start_date",
          "type": "timestamp",
          "description": "For fees calculated from activity spanning a period of time, the activity's starting date (UTC).",
          "confidence": "documented"
        },
        {
          "name": "amount",
          "type": "double",
          "description": "Fee incurred for this activity, expressed in MAJOR units of the currency. Excludes the tax amount.",
          "confidence": "documented",
          "doc_sources": [
            "data_query-all-fees-data.md"
          ]
        },
        {
          "name": "balance_transaction_created",
          "type": "timestamp",
          "description": "Time (in UTC) at which the balance transaction affected your Stripe balance.",
          "confidence": "documented",
          "doc_sources": [
            "data_query-all-fees-data.md"
          ]
        },
        {
          "name": "balance_transaction_description",
          "type": "varchar",
          "description": "The description of the balance transaction containing the fee.",
          "confidence": "documented"
        },
        {
          "name": "balance_transaction_id",
          "type": "varchar",
          "key": "foreign",
          "description": "The ID of the balance transaction that debited the fee from your balance.",
          "confidence": "documented",
          "doc_sources": [
            "data_query-all-fees-data.md"
          ]
        },
        {
          "name": "currency",
          "type": "varchar",
          "description": "Three-letter ISO code for the currency in which amount and tax are defined.",
          "confidence": "documented"
        },
        {
          "name": "incurred_at",
          "type": "timestamp",
          "description": "Time (in UTC) at which the fee was incurred, by the date of its originating event.",
          "confidence": "documented",
          "doc_sources": [
            "data_query-all-fees-data.md"
          ]
        },
        {
          "name": "incurred_by",
          "type": "varchar",
          "description": "The ID of the object that incurred this fee, if any. Use incurred_by_type to determine the type of this object.",
          "confidence": "documented"
        },
        {
          "name": "incurred_by_type",
          "type": "varchar",
          "description": "The object type which incurred_by references. Matches the object field in the API (Charge, Refund, Invoice, etc).",
          "confidence": "documented"
        },
        {
          "name": "product_feature_description",
          "type": "varchar",
          "description": "The product or feature associated with the fee.",
          "confidence": "documented",
          "doc_sources": [
            "data_query-all-fees-data.md"
          ]
        },
        {
          "name": "tax",
          "type": "double",
          "description": "Tax component of the fees paid, expressed in MAJOR units of the currency.",
          "confidence": "documented",
          "doc_sources": [
            "data_query-all-fees-data.md"
          ]
        }
      ],
      "foreign_keys": [
        {
          "columns": [
            "account"
          ],
          "references": {
            "table": "accounts",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        },
        {
          "columns": [
            "balance_transaction_id"
          ],
          "references": {
            "table": "balance_transactions",
            "columns": [
              "id"
            ]
          },
          "confidence": "documented"
        }
      ],
      "derived_from_convention": "connect_mirror_tables",
      "columns_complete": false,
      "columns_inherited_from": "itemized_fees",
      "verified_against_account": false
    },
    {
      "name": "connected_account_money_management_adjustments",
      "dataset": "unclassified",
      "source": "api_backed",
      "freshness_hours": null,
      "preview": false,
      "listed_in_stripe_freshness_table": false,
      "description": "",
      "grain": "",
      "primary_key": [],
      "foreign_keys": [],
      "notes": [],
      "columns": [
        {
          "name": "account",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "created",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "description",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "financial_account_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "connected_account_money_management_financial_accounts",
      "dataset": "unclassified",
      "source": "api_backed",
      "freshness_hours": null,
      "preview": false,
      "listed_in_stripe_freshness_table": false,
      "description": "",
      "grain": "",
      "primary_key": [],
      "foreign_keys": [],
      "notes": [],
      "columns": [
        {
          "name": "account",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "country",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "created",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "display_name",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "status",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "connected_account_money_management_financial_accounts_metadata",
      "dataset": "unclassified",
      "source": "api_backed",
      "freshness_hours": null,
      "preview": false,
      "listed_in_stripe_freshness_table": false,
      "description": "",
      "grain": "",
      "primary_key": [],
      "foreign_keys": [],
      "notes": [],
      "columns": [
        {
          "name": "account",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "financial_account_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "key",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "value",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "connected_account_money_management_financial_addresses",
      "dataset": "unclassified",
      "source": "api_backed",
      "freshness_hours": null,
      "preview": false,
      "listed_in_stripe_freshness_table": false,
      "description": "",
      "grain": "",
      "primary_key": [],
      "foreign_keys": [],
      "notes": [],
      "columns": [
        {
          "name": "account",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "created",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "credentials_bank_name",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "credentials_bic",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "credentials_clabe",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "credentials_country",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "credentials_crypto_address",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "credentials_crypto_memo",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "credentials_crypto_network",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "credentials_institution_number",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "credentials_last4",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "credentials_routing_number",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "credentials_sort_code",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "credentials_transit_number",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "credentials_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "financial_account_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "settlement_currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "status",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "connected_account_money_management_inbound_transfers",
      "dataset": "unclassified",
      "source": "api_backed",
      "freshness_hours": null,
      "preview": false,
      "listed_in_stripe_freshness_table": false,
      "description": "",
      "grain": "",
      "primary_key": [],
      "foreign_keys": [],
      "notes": [],
      "columns": [
        {
          "name": "account",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "created",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "credited_amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "credited_currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "debited_amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "debited_currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "description",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "from_payment_method_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "from_payment_method_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "status",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "to_financial_account_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "connected_account_money_management_inbound_transfers_history",
      "dataset": "unclassified",
      "source": "api_backed",
      "freshness_hours": null,
      "preview": false,
      "listed_in_stripe_freshness_table": false,
      "description": "",
      "grain": "",
      "primary_key": [],
      "foreign_keys": [],
      "notes": [],
      "columns": [
        {
          "name": "account",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "bank_debit_failure_reason",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "bank_debit_return_reason",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "created",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "effective_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "inbound_transfer_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "level",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "connected_account_money_management_outbound_payments",
      "dataset": "unclassified",
      "source": "api_backed",
      "freshness_hours": null,
      "preview": false,
      "listed_in_stripe_freshness_table": false,
      "description": "",
      "grain": "",
      "primary_key": [],
      "foreign_keys": [],
      "notes": [],
      "columns": [
        {
          "name": "account",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "ach_submission",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "ach_transaction_purpose",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "canceled_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "created",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "credited_amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "credited_currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "debited_amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "debited_currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "delivery_options_bank_account",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "description",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "expected_arrival_date",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "failed_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "failed_reason",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "from_financial_account_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "payout_method_options_bank_account_preferred_networks",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "posted_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "returned_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "returned_reason",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "statement_descriptor",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "status",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "to_payout_method_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "to_recipient_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "connected_account_money_management_outbound_payments_metadata",
      "dataset": "unclassified",
      "source": "api_backed",
      "freshness_hours": null,
      "preview": false,
      "listed_in_stripe_freshness_table": false,
      "description": "",
      "grain": "",
      "primary_key": [],
      "foreign_keys": [],
      "notes": [],
      "columns": [
        {
          "name": "account",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "key",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "outbound_payment_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "value",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "connected_account_money_management_outbound_transfers",
      "dataset": "unclassified",
      "source": "api_backed",
      "freshness_hours": null,
      "preview": false,
      "listed_in_stripe_freshness_table": false,
      "description": "",
      "grain": "",
      "primary_key": [],
      "foreign_keys": [],
      "notes": [],
      "columns": [
        {
          "name": "account",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "canceled_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "created",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "credited_amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "credited_currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "debited_amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "debited_currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "delivery_options_bank_account",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "description",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "expected_arrival_date",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "failed_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "failed_reason",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "from_financial_account_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "payout_method_options_bank_account_preferred_networks",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "posted_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "returned_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "returned_reason",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "statement_descriptor",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "status",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "to_payout_method_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "connected_account_money_management_outbound_transfers_metadata",
      "dataset": "unclassified",
      "source": "api_backed",
      "freshness_hours": null,
      "preview": false,
      "listed_in_stripe_freshness_table": false,
      "description": "",
      "grain": "",
      "primary_key": [],
      "foreign_keys": [],
      "notes": [],
      "columns": [
        {
          "name": "account",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "key",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "outbound_transfer_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "value",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "connected_account_money_management_received_credits",
      "dataset": "unclassified",
      "source": "api_backed",
      "freshness_hours": null,
      "preview": false,
      "listed_in_stripe_freshness_table": false,
      "description": "",
      "grain": "",
      "primary_key": [],
      "foreign_keys": [],
      "notes": [],
      "columns": [
        {
          "name": "account",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "balance_transfer_from_account_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "balance_transfer_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "balance_transfer_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "bank_transfer_account_holder_name",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "bank_transfer_bank_name",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "bank_transfer_bic",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "bank_transfer_financial_address_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "bank_transfer_last4",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "bank_transfer_network",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "bank_transfer_origin_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "bank_transfer_routing_number",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "bank_transfer_sort_code",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "bank_transfer_statement_descriptor",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "card_spend_card_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "card_spend_issuing_dispute",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "card_spend_issuing_refund",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "created",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "description",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "failed_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "failed_reason",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "financial_account_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "returned_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "returned_reason",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "status",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "succeeded_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "connected_account_money_management_received_debits",
      "dataset": "unclassified",
      "source": "api_backed",
      "freshness_hours": null,
      "preview": false,
      "listed_in_stripe_freshness_table": false,
      "description": "",
      "grain": "",
      "primary_key": [],
      "foreign_keys": [],
      "notes": [],
      "columns": [
        {
          "name": "account",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "bank_transfer_bank_name",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "bank_transfer_financial_address_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "bank_transfer_network",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "bank_transfer_routing_number",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "bank_transfer_statement_descriptor",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "canceled_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "created",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "description",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "failed_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "failed_reason",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "financial_account_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "status",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "succeeded_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "connected_account_money_management_transaction_entries",
      "dataset": "unclassified",
      "source": "api_backed",
      "freshness_hours": null,
      "preview": false,
      "listed_in_stripe_freshness_table": false,
      "description": "",
      "grain": "",
      "primary_key": [],
      "foreign_keys": [],
      "notes": [],
      "columns": [
        {
          "name": "account",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "available_balance_impact",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "created",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "effective_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "inbound_pending_balance_impact",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "outbound_pending_balance_impact",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "transaction_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "connected_account_money_management_transactions",
      "dataset": "unclassified",
      "source": "api_backed",
      "freshness_hours": null,
      "preview": false,
      "listed_in_stripe_freshness_table": false,
      "description": "",
      "grain": "",
      "primary_key": [],
      "foreign_keys": [],
      "notes": [],
      "columns": [
        {
          "name": "account",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "available_balance_impact",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "category",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "counterparty_name",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "created",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "description",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "financial_account_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "flow_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "flow_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "inbound_pending_balance_impact",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "outbound_pending_balance_impact",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "posted_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "status",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "void_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "connected_account_payment_records",
      "dataset": "payments",
      "source": "derived",
      "freshness_hours": 6,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Connect platform view of payment_records for connected accounts.",
      "grain": "One row per payment record, per connected account.",
      "primary_key": [
        "id"
      ],
      "mirror_of": "payment_records",
      "columns": [
        {
          "name": "id",
          "type": "varchar",
          "key": "primary",
          "description": "Unique identifier for the payment record.",
          "confidence": "verified"
        },
        {
          "name": "account",
          "type": "varchar",
          "key": "foreign",
          "description": "The connected account (acct_...) this row belongs to.",
          "confidence": "verified"
        },
        {
          "name": "amount_authorized_currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "amount_authorized_value",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "amount_canceled_currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "amount_canceled_value",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "amount_currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "amount_disputed_currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "amount_disputed_value",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "amount_failed_currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "amount_failed_value",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "amount_guaranteed_currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "amount_guaranteed_value",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "amount_refunded_currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "amount_refunded_value",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "amount_requested_currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "amount_requested_value",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "amount_value",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "application",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "capture_method",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "created",
          "type": "timestamp",
          "description": "When the record was created (UTC).",
          "confidence": "verified",
          "raw_type": "timestamp"
        },
        {
          "name": "customer_details_customer",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "customer_details_email",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "customer_details_name",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "customer_details_phone",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "customer_presence",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "description",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "initiated_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "latest_occurred_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "latest_payment_attempt_record",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "money_services_transaction_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "payment_method_details_billing_address_city",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "payment_method_details_billing_address_country",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "payment_method_details_billing_address_line1",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "payment_method_details_billing_address_line2",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "payment_method_details_billing_address_postal_code",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "payment_method_details_billing_address_state",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "payment_method_details_billing_email",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "payment_method_details_billing_name",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "payment_method_details_billing_phone",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "payment_method_details_card_brand",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "payment_method_details_card_capture_before",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "payment_method_details_card_country",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "payment_method_details_card_exp_month",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "integer",
          "description": ""
        },
        {
          "name": "payment_method_details_card_exp_year",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "integer",
          "description": ""
        },
        {
          "name": "payment_method_details_card_fingerprint",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "payment_method_details_card_funding",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "payment_method_details_card_last4",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "payment_method_details_card_moto",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": ""
        },
        {
          "name": "payment_method_details_card_network",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "payment_method_details_card_network_transaction_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "payment_method_details_card_payment_account_reference",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "payment_method_details_card_wallet_dynamic_last4",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "payment_method_details_card_wallet_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "payment_method_details_custom_display_name",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "payment_method_details_custom_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "payment_method_details_payment_method",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "payment_method_details_shared_payment_granted_token",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "payment_method_details_shop_pay_external_source_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "payment_method_details_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "processor_adyen_merchant_account",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "processor_adyen_psp_reference",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "processor_braintree_merchant_account_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "processor_braintree_transaction_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "processor_custom_payment_reference",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "processor_stripe_charge",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "processor_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "processor_worldpay_merchant_code",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "processor_worldpay_order_code",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "reported_by",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "setup_future_usage",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "shipping_address_city",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "shipping_address_country",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "shipping_address_line1",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "shipping_address_line2",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "shipping_address_postal_code",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "shipping_address_state",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "shipping_name",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "shipping_phone",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "updated",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        }
      ],
      "foreign_keys": [
        {
          "columns": [
            "account"
          ],
          "references": {
            "table": "accounts",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        }
      ],
      "derived_from_convention": "connect_mirror_tables",
      "columns_complete": true,
      "columns_inherited_from": "payment_records",
      "verified_against_account": true
    },
    {
      "name": "connected_account_payment_records_metadata",
      "dataset": "payments",
      "source": "derived",
      "freshness_hours": 6,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Metadata key/value pairs set on connected_account_payment_records. One row per (object, metadata key) pair. Objects with no metadata have no rows.",
      "grain": "One row per (object, metadata key) pair. Objects with no metadata have no rows.",
      "primary_key": [
        "key"
      ],
      "columns": [
        {
          "name": "key",
          "type": "varchar",
          "description": "The metadata key set on the object.",
          "confidence": "verified",
          "key": "primary"
        },
        {
          "name": "payment_record_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "account",
          "type": "varchar",
          "key": "foreign",
          "description": "The connected account (acct_...) this row belongs to.",
          "confidence": "verified"
        },
        {
          "name": "value",
          "type": "varchar",
          "description": "The metadata value for that key. Always a string, even when it holds a number or boolean.",
          "confidence": "verified",
          "raw_type": "varchar"
        }
      ],
      "columns_complete": true,
      "foreign_keys": [
        {
          "columns": [
            "account"
          ],
          "references": {
            "table": "accounts",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        },
        {
          "columns": [
            "payment_record_id"
          ],
          "references": {
            "table": "payment_records",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        }
      ],
      "notes": [
        "Values are always strings, even when they hold numbers or booleans.",
        "Pivot to columns with: select connected_account_payment_record_id, map_agg(key, value) as md from connected_account_payment_records_metadata group by 1"
      ],
      "derived_from_convention": "connect_mirror_tables",
      "verified_against_account": true
    },
    {
      "name": "connected_account_summarized_balance_transactions",
      "dataset": "other",
      "source": "derived",
      "freshness_hours": 12,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Connect platform view of summarized_balance_transactions, per connected account.",
      "grain": "One row per (connected account, period, currency, reporting category).",
      "primary_key": [
        "activity_at_time_bucket",
        "bt_count",
        "bt_effective_at_interval_start",
        "currency",
        "gross",
        "net",
        "payout_is_auto",
        "reporting_category"
      ],
      "mirror_of": "summarized_balance_transactions",
      "columns": [
        {
          "name": "activity_at_time_bucket",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "auto_payout_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "bt_count",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "bt_effective_at_interval_start",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "currency",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "gross",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "net",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "payout_is_auto",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "reporting_category",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "account",
          "type": "varchar",
          "key": "foreign",
          "description": "The connected account (acct_...) this row belongs to.",
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "auto_payout_effective_at_interval_start",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "fee",
          "type": "double",
          "confidence": "verified",
          "raw_type": "double",
          "description": ""
        }
      ],
      "foreign_keys": [
        {
          "columns": [
            "account"
          ],
          "references": {
            "table": "accounts",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        }
      ],
      "derived_from_convention": "connect_mirror_tables",
      "columns_complete": true,
      "columns_inherited_from": "summarized_balance_transactions",
      "verified_against_account": true
    },
    {
      "name": "connected_accounts",
      "dataset": "connect",
      "source": "api_backed",
      "freshness_hours": null,
      "preview": false,
      "listed_in_stripe_freshness_table": false,
      "evidence": "https://docs.stripe.com/data/query-connect-data",
      "description": "Connect platform view of connected accounts, including legal entity, onboarding requirements and terms-of-service acceptance.",
      "grain": "One row per connected account.",
      "primary_key": [
        "id"
      ],
      "columns_complete": false,
      "columns": [
        {
          "name": "id",
          "type": "varchar",
          "key": "primary",
          "description": "Unique identifier, prefixed acct_.",
          "confidence": "documented",
          "doc_sources": [
            "data_query-disputes-and-fraud-data.md"
          ]
        },
        {
          "name": "business_name",
          "type": "varchar",
          "description": "Business name on the account.",
          "confidence": "documented",
          "doc_sources": [
            "data_query-connect-data.md",
            "data_query-disputes-and-fraud-data.md"
          ]
        },
        {
          "name": "country",
          "type": "varchar",
          "description": "Two-letter ISO country of the account.",
          "confidence": "documented",
          "doc_sources": [
            "data_query-connect-data.md"
          ]
        },
        {
          "name": "email",
          "type": "varchar",
          "description": "Account email address.",
          "confidence": "documented",
          "doc_sources": [
            "data_query-connect-data.md"
          ]
        },
        {
          "name": "future_requirements_currently_due",
          "type": "varchar",
          "description": "Comma-separated future requirements due now.",
          "confidence": "documented",
          "doc_sources": [
            "data_query-connect-data.md"
          ]
        },
        {
          "name": "future_requirements_eventually_due",
          "type": "varchar",
          "description": "Comma-separated future requirements eventually due.",
          "confidence": "community"
        },
        {
          "name": "future_requirements_past_due",
          "type": "varchar",
          "description": "Comma-separated future requirements already overdue.",
          "confidence": "community"
        },
        {
          "name": "future_requirements_pending_verification",
          "type": "varchar",
          "description": "Comma-separated future requirements awaiting verification.",
          "confidence": "community"
        },
        {
          "name": "legal_entity_address_city",
          "type": "varchar",
          "description": "City of the legal entity.",
          "confidence": "documented",
          "doc_sources": [
            "data_query-connect-data.md"
          ]
        },
        {
          "name": "legal_entity_address_line1",
          "type": "varchar",
          "description": "Street address of the legal entity.",
          "confidence": "documented",
          "doc_sources": [
            "data_query-connect-data.md"
          ]
        },
        {
          "name": "legal_entity_address_postal_code",
          "type": "varchar",
          "description": "Postal code of the legal entity.",
          "confidence": "documented",
          "doc_sources": [
            "data_query-connect-data.md"
          ]
        },
        {
          "name": "legal_entity_address_state",
          "type": "varchar",
          "description": "State/province of the legal entity.",
          "confidence": "documented",
          "doc_sources": [
            "data_query-connect-data.md"
          ]
        },
        {
          "name": "legal_entity_dob_day",
          "type": "bigint",
          "description": "Day of birth of the representative.",
          "confidence": "documented",
          "doc_sources": [
            "data_query-connect-data.md"
          ]
        },
        {
          "name": "legal_entity_dob_month",
          "type": "bigint",
          "description": "Month of birth of the representative.",
          "confidence": "documented",
          "doc_sources": [
            "data_query-connect-data.md"
          ]
        },
        {
          "name": "legal_entity_dob_year",
          "type": "bigint",
          "description": "Year of birth of the representative.",
          "confidence": "documented",
          "doc_sources": [
            "data_query-connect-data.md"
          ]
        },
        {
          "name": "legal_entity_first_name",
          "type": "varchar",
          "description": "First name of the legal entity representative.",
          "confidence": "documented",
          "doc_sources": [
            "data_query-connect-data.md"
          ]
        },
        {
          "name": "legal_entity_last_name",
          "type": "varchar",
          "description": "Last name of the legal entity representative.",
          "confidence": "documented",
          "doc_sources": [
            "data_query-connect-data.md"
          ]
        },
        {
          "name": "legal_entity_personal_id_number_provided",
          "type": "boolean",
          "description": "Whether a personal ID number was provided.",
          "confidence": "documented",
          "doc_sources": [
            "data_query-connect-data.md"
          ]
        },
        {
          "name": "legal_entity_ssn_last_4_provided",
          "type": "boolean",
          "description": "Whether the last 4 SSN digits were provided.",
          "confidence": "documented",
          "doc_sources": [
            "data_query-connect-data.md"
          ]
        },
        {
          "name": "legal_entity_type",
          "type": "varchar",
          "description": "Legal entity type.",
          "enum": [
            "individual",
            "company"
          ],
          "confidence": "documented",
          "doc_sources": [
            "data_query-connect-data.md"
          ]
        },
        {
          "name": "legal_entity_verification_document_id",
          "type": "varchar",
          "description": "Identifier of the uploaded verification document.",
          "confidence": "documented",
          "doc_sources": [
            "data_query-connect-data.md"
          ]
        },
        {
          "name": "payouts_enabled",
          "type": "boolean",
          "description": "Whether the account can receive payouts.",
          "confidence": "documented",
          "doc_sources": [
            "data_query-connect-data.md"
          ]
        },
        {
          "name": "requirements_currently_due",
          "type": "varchar",
          "description": "Comma-separated requirements due now. Empty string when nothing is due \u2014 test with != '' rather than IS NOT NULL.",
          "confidence": "documented",
          "doc_sources": [
            "data_query-connect-data.md"
          ]
        },
        {
          "name": "requirements_eventually_due",
          "type": "varchar",
          "description": "Comma-separated requirements that will eventually be due.",
          "confidence": "community"
        },
        {
          "name": "requirements_past_due",
          "type": "varchar",
          "description": "Comma-separated requirements already overdue.",
          "confidence": "community"
        },
        {
          "name": "requirements_pending_verification",
          "type": "varchar",
          "description": "Comma-separated requirements awaiting verification.",
          "confidence": "community"
        },
        {
          "name": "tos_acceptance_date",
          "type": "timestamp",
          "description": "When the account accepted the Stripe terms of service.",
          "confidence": "documented",
          "doc_sources": [
            "data_query-connect-data.md"
          ]
        },
        {
          "name": "tos_acceptance_ip",
          "type": "varchar",
          "description": "IP address recorded at terms-of-service acceptance.",
          "confidence": "documented",
          "doc_sources": [
            "data_query-connect-data.md"
          ]
        }
      ],
      "notes": [
        "Requirements columns are comma-separated strings, not arrays. Split them with split(col, ',') to unnest.",
        "This table contains personal data. Handle exports according to your privacy obligations."
      ],
      "foreign_keys": [],
      "verified_against_account": false
    },
    {
      "name": "coupons",
      "dataset": "billing",
      "source": "api_backed",
      "freshness_hours": 3,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Discount definitions that can be applied to customers, subscriptions or invoices.",
      "grain": "One row per coupon.",
      "primary_key": [
        "id"
      ],
      "columns_complete": true,
      "columns": [
        {
          "name": "id",
          "type": "varchar",
          "key": "primary",
          "description": "Coupon identifier \u2014 often a human-chosen string rather than a generated id.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-billing-data.md"
          ]
        },
        {
          "name": "amount_off",
          "type": "bigint",
          "description": "Fixed discount in minor currency units. Mutually exclusive with percent_off.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-billing-data.md"
          ],
          "raw_type": "bigint"
        },
        {
          "name": "applies_to_products",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "created",
          "type": "timestamp",
          "description": "When the coupon was created (UTC).",
          "confidence": "verified",
          "raw_type": "timestamp"
        },
        {
          "name": "currency",
          "type": "varchar",
          "description": "Currency of amount_off.",
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "duration",
          "type": "varchar",
          "description": "How long the discount applies.",
          "enum": [
            "once",
            "repeating",
            "forever"
          ],
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "duration_in_months",
          "type": "bigint",
          "description": "Number of months the discount applies when duration is repeating.",
          "confidence": "verified",
          "raw_type": "bigint"
        },
        {
          "name": "max_redemptions",
          "type": "bigint",
          "description": "Maximum number of times the coupon can be redeemed.",
          "confidence": "verified",
          "raw_type": "bigint"
        },
        {
          "name": "name",
          "type": "varchar",
          "description": "Display name of the coupon.",
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "percent_off",
          "type": "double",
          "description": "Percentage discount. Mutually exclusive with amount_off.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-billing-data.md"
          ],
          "raw_type": "double"
        },
        {
          "name": "redeem_by",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "times_redeemed",
          "type": "bigint",
          "description": "Number of times the coupon has been redeemed.",
          "confidence": "verified",
          "raw_type": "bigint"
        },
        {
          "name": "valid",
          "type": "boolean",
          "description": "Whether the coupon can still be applied.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-billing-data.md"
          ],
          "raw_type": "boolean"
        }
      ],
      "foreign_keys": [],
      "verified_against_account": true
    },
    {
      "name": "coupons_currency_options",
      "dataset": "billing",
      "source": "api_backed",
      "freshness_hours": 3,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Per-currency overrides for multi-currency coupons.",
      "grain": "One row per (coupon, currency).",
      "primary_key": [
        "coupon_id",
        "currency"
      ],
      "columns": [
        {
          "name": "coupon_id",
          "type": "varchar",
          "key": "primary",
          "description": "Coupon being overridden.",
          "confidence": "verified"
        },
        {
          "name": "currency",
          "type": "varchar",
          "description": "Currency this option applies to.",
          "confidence": "verified",
          "key": "primary"
        },
        {
          "name": "amount_off",
          "type": "bigint",
          "description": "Fixed discount in that currency's minor units.",
          "confidence": "verified",
          "raw_type": "bigint"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        }
      ],
      "foreign_keys": [
        {
          "columns": [
            "coupon_id"
          ],
          "references": {
            "table": "coupons",
            "columns": [
              "id"
            ]
          }
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "coupons_metadata",
      "dataset": "billing",
      "source": "api_backed",
      "freshness_hours": 3,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Metadata key/value pairs set on coupons. One row per (object, metadata key) pair. Objects with no metadata have no rows.",
      "grain": "One row per (object, metadata key) pair. Objects with no metadata have no rows.",
      "primary_key": [
        "key"
      ],
      "columns": [
        {
          "name": "coupon_id",
          "type": "varchar",
          "key": "foreign",
          "description": "References the id column of the parent object table.",
          "confidence": "verified"
        },
        {
          "name": "key",
          "type": "varchar",
          "description": "The metadata key set on the object.",
          "confidence": "verified",
          "key": "primary"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "value",
          "type": "varchar",
          "description": "The metadata value for that key. Always a string, even when it holds a number or boolean.",
          "confidence": "verified",
          "raw_type": "varchar"
        }
      ],
      "columns_complete": true,
      "foreign_keys": [
        {
          "columns": [
            "coupon_id"
          ],
          "references": {
            "table": "coupons",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        }
      ],
      "notes": [
        "Values are always strings, even when they hold numbers or booleans.",
        "Pivot to columns with: select coupon_id, map_agg(key, value) as md from coupons_metadata group by 1"
      ],
      "derived_from_convention": "metadata_tables",
      "verified_against_account": true
    },
    {
      "name": "credit_note_discount_amounts",
      "dataset": "billing",
      "source": "api_backed",
      "freshness_hours": 3,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Discount amounts applied at the credit note level.",
      "grain": "One row per (credit note, discount).",
      "primary_key": [
        "credit_note_id",
        "id"
      ],
      "columns": [
        {
          "name": "credit_note_id",
          "type": "varchar",
          "key": "primary",
          "description": "Parent credit note.",
          "confidence": "verified"
        },
        {
          "name": "id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "amount",
          "type": "bigint",
          "description": "Discount amount in minor currency units.",
          "confidence": "verified",
          "raw_type": "bigint"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "discount",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        }
      ],
      "foreign_keys": [
        {
          "columns": [
            "credit_note_id"
          ],
          "references": {
            "table": "credit_notes",
            "columns": [
              "id"
            ]
          }
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "credit_note_line_item_discount_amounts",
      "dataset": "billing",
      "source": "api_backed",
      "freshness_hours": 3,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Discount amounts applied to individual credit note line items.",
      "grain": "One row per (credit note line item, discount).",
      "primary_key": [
        "credit_note_id",
        "credit_note_line_item_id",
        "id"
      ],
      "columns": [
        {
          "name": "credit_note_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "credit_note_line_item_id",
          "type": "varchar",
          "key": "primary",
          "description": "Credit note line item discounted.",
          "confidence": "verified"
        },
        {
          "name": "id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "amount",
          "type": "bigint",
          "description": "Discount amount in minor currency units.",
          "confidence": "verified",
          "raw_type": "bigint"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "discount",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        }
      ],
      "foreign_keys": [],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "credit_note_line_item_tax_amounts",
      "dataset": "billing",
      "source": "api_backed",
      "freshness_hours": 3,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Tax amounts applied to individual credit note line items.",
      "grain": "One row per (credit note line item, tax rate).",
      "primary_key": [
        "id"
      ],
      "columns": [
        {
          "name": "credit_note_line_item_id",
          "type": "varchar",
          "key": "foreign",
          "description": "Credit note line item taxed.",
          "confidence": "verified"
        },
        {
          "name": "id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "amount",
          "type": "bigint",
          "description": "Tax amount in minor currency units.",
          "confidence": "verified",
          "raw_type": "bigint"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "inclusive",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": ""
        },
        {
          "name": "tax_rate_id",
          "type": "varchar",
          "key": "foreign",
          "description": "Tax rate applied.",
          "confidence": "verified"
        }
      ],
      "foreign_keys": [
        {
          "columns": [
            "credit_note_line_item_id"
          ],
          "references": {
            "table": "credit_note_line_items",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        },
        {
          "columns": [
            "tax_rate_id"
          ],
          "references": {
            "table": "tax_rates",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "credit_note_line_items",
      "dataset": "billing",
      "source": "api_backed",
      "freshness_hours": 3,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Line items on a credit note.",
      "grain": "One row per credit note line item.",
      "primary_key": [
        "id"
      ],
      "columns": [
        {
          "name": "id",
          "type": "varchar",
          "key": "primary",
          "description": "Unique identifier for the line item.",
          "confidence": "verified"
        },
        {
          "name": "amount",
          "type": "bigint",
          "description": "Line amount in minor currency units.",
          "confidence": "verified",
          "raw_type": "bigint"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "credit_note_id",
          "type": "varchar",
          "key": "foreign",
          "description": "Parent credit note.",
          "confidence": "verified"
        },
        {
          "name": "description",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "discount_amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "invoice_line_item",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "quantity",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "unit_amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "unit_amount_decimal",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        }
      ],
      "foreign_keys": [
        {
          "columns": [
            "credit_note_id"
          ],
          "references": {
            "table": "credit_notes",
            "columns": [
              "id"
            ]
          }
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "credit_note_tax_amounts",
      "dataset": "billing",
      "source": "api_backed",
      "freshness_hours": 3,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Tax amounts applied at the credit note level.",
      "grain": "One row per (credit note, tax rate).",
      "primary_key": [
        "id"
      ],
      "columns": [
        {
          "name": "credit_note_id",
          "type": "varchar",
          "key": "foreign",
          "description": "Parent credit note.",
          "confidence": "verified"
        },
        {
          "name": "id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "amount",
          "type": "bigint",
          "description": "Tax amount in minor currency units.",
          "confidence": "verified",
          "raw_type": "bigint"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "inclusive",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": ""
        },
        {
          "name": "tax_rate_id",
          "type": "varchar",
          "key": "foreign",
          "description": "Tax rate applied.",
          "confidence": "verified"
        }
      ],
      "foreign_keys": [
        {
          "columns": [
            "credit_note_id"
          ],
          "references": {
            "table": "credit_notes",
            "columns": [
              "id"
            ]
          }
        },
        {
          "columns": [
            "tax_rate_id"
          ],
          "references": {
            "table": "tax_rates",
            "columns": [
              "id"
            ]
          }
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "credit_notes",
      "dataset": "billing",
      "source": "api_backed",
      "freshness_hours": 3,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Post-issuance adjustments to invoices \u2014 the correct way to represent refunds and write-offs against a finalized invoice.",
      "grain": "One row per credit note.",
      "primary_key": [
        "id"
      ],
      "columns": [
        {
          "name": "id",
          "type": "varchar",
          "key": "primary",
          "description": "Unique identifier, prefixed cn_.",
          "confidence": "verified"
        },
        {
          "name": "amount",
          "type": "bigint",
          "description": "Credited amount in minor currency units.",
          "confidence": "verified",
          "raw_type": "bigint"
        },
        {
          "name": "amount_shipping",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "created",
          "type": "timestamp",
          "description": "When the credit note was issued (UTC).",
          "confidence": "verified",
          "raw_type": "timestamp"
        },
        {
          "name": "currency",
          "type": "varchar",
          "description": "Three-letter ISO currency code, lowercase.",
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "customer_balance_transaction_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "customer_id",
          "type": "varchar",
          "key": "foreign",
          "description": "Customer receiving the credit.",
          "confidence": "verified"
        },
        {
          "name": "effective_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "invoice_id",
          "type": "varchar",
          "key": "foreign",
          "description": "Invoice being credited.",
          "confidence": "verified"
        },
        {
          "name": "memo",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "number",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "out_of_band_amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "reason",
          "type": "varchar",
          "description": "Why the credit note was issued.",
          "enum": [
            "duplicate",
            "fraudulent",
            "order_change",
            "product_unsatisfactory"
          ],
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "refund_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "shipping_cost_amount_subtotal",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "shipping_cost_amount_tax",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "shipping_cost_amount_total",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "shipping_cost_shipping_rate_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "status",
          "type": "varchar",
          "description": "Credit note status.",
          "enum": [
            "issued",
            "void"
          ],
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "voided_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        }
      ],
      "foreign_keys": [
        {
          "columns": [
            "invoice_id"
          ],
          "references": {
            "table": "invoices",
            "columns": [
              "id"
            ]
          }
        },
        {
          "columns": [
            "customer_id"
          ],
          "references": {
            "table": "customers",
            "columns": [
              "id"
            ]
          }
        },
        {
          "columns": [
            "customer_balance_transaction_id"
          ],
          "references": {
            "table": "customer_balance_transactions",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        },
        {
          "columns": [
            "refund_id"
          ],
          "references": {
            "table": "refunds",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "credit_notes_metadata",
      "dataset": "billing",
      "source": "api_backed",
      "freshness_hours": 3,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Metadata key/value pairs set on credit_notes. One row per (object, metadata key) pair. Objects with no metadata have no rows.",
      "grain": "One row per (object, metadata key) pair. Objects with no metadata have no rows.",
      "primary_key": [
        "key"
      ],
      "columns": [
        {
          "name": "credit_note_id",
          "type": "varchar",
          "key": "foreign",
          "description": "References the id column of the parent object table.",
          "confidence": "verified"
        },
        {
          "name": "key",
          "type": "varchar",
          "description": "The metadata key set on the object.",
          "confidence": "verified",
          "key": "primary"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "value",
          "type": "varchar",
          "description": "The metadata value for that key. Always a string, even when it holds a number or boolean.",
          "confidence": "verified",
          "raw_type": "varchar"
        }
      ],
      "columns_complete": true,
      "foreign_keys": [
        {
          "columns": [
            "credit_note_id"
          ],
          "references": {
            "table": "credit_notes",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        }
      ],
      "notes": [
        "Values are always strings, even when they hold numbers or booleans.",
        "Pivot to columns with: select credit_note_id, map_agg(key, value) as md from credit_notes_metadata group by 1"
      ],
      "derived_from_convention": "metadata_tables",
      "verified_against_account": true
    },
    {
      "name": "crypto_onramp_sessions",
      "dataset": "crypto",
      "source": "api_backed",
      "freshness_hours": 3,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Stripe crypto onramp sessions where users bought crypto with fiat.",
      "grain": "One row per onramp session.",
      "primary_key": [
        "id"
      ],
      "columns": [
        {
          "name": "id",
          "type": "varchar",
          "key": "primary",
          "description": "Unique identifier for the session.",
          "confidence": "verified"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "consumer_permissible_transaction_amount_tier",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "created",
          "type": "timestamp",
          "description": "When the session was created (UTC).",
          "confidence": "verified",
          "raw_type": "timestamp"
        },
        {
          "name": "destination_amount",
          "type": "double",
          "confidence": "verified",
          "raw_type": "double",
          "description": ""
        },
        {
          "name": "destination_currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "error_reason",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "kyc_level",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "network",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "provided_wallet_address",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "source_amount",
          "type": "double",
          "confidence": "verified",
          "raw_type": "double",
          "description": ""
        },
        {
          "name": "source_currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "state",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "updated",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        }
      ],
      "foreign_keys": [],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "customer_balance_transactions",
      "dataset": "customers",
      "source": "api_backed",
      "freshness_hours": 3,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Changes to a customer's account credit balance.",
      "grain": "One row per customer balance transaction.",
      "primary_key": [
        "id"
      ],
      "columns": [
        {
          "name": "id",
          "type": "varchar",
          "key": "primary",
          "description": "Unique identifier, prefixed cbtxn_.",
          "confidence": "verified"
        },
        {
          "name": "account_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "amount",
          "type": "bigint",
          "description": "Signed change in minor currency units.",
          "confidence": "verified",
          "raw_type": "bigint"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "checkout_session_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "created",
          "type": "timestamp",
          "description": "When the transaction occurred (UTC).",
          "confidence": "verified",
          "raw_type": "timestamp"
        },
        {
          "name": "credit_note_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "currency",
          "type": "varchar",
          "description": "Three-letter ISO currency code, lowercase.",
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "customer_id",
          "type": "varchar",
          "key": "foreign",
          "description": "Customer whose balance changed.",
          "confidence": "verified"
        },
        {
          "name": "description",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "ending_balance",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "invoice_id",
          "type": "varchar",
          "key": "foreign",
          "description": "Invoice the change relates to, if any.",
          "confidence": "verified"
        },
        {
          "name": "merchant_balance_adjustment_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "previous",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "source_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "type",
          "type": "varchar",
          "description": "Kind of balance change.",
          "confidence": "verified",
          "raw_type": "varchar"
        }
      ],
      "foreign_keys": [
        {
          "columns": [
            "customer_id"
          ],
          "references": {
            "table": "customers",
            "columns": [
              "id"
            ]
          }
        },
        {
          "columns": [
            "checkout_session_id"
          ],
          "references": {
            "table": "checkout_sessions",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        },
        {
          "columns": [
            "credit_note_id"
          ],
          "references": {
            "table": "credit_notes",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        },
        {
          "columns": [
            "invoice_id"
          ],
          "references": {
            "table": "invoices",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "customer_balance_transactions_metadata",
      "dataset": "customers",
      "source": "api_backed",
      "freshness_hours": 3,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Metadata key/value pairs set on customer_balance_transactions. One row per (object, metadata key) pair. Objects with no metadata have no rows.",
      "grain": "One row per (object, metadata key) pair. Objects with no metadata have no rows.",
      "primary_key": [
        "customer_balance_transaction_id",
        "key"
      ],
      "columns": [
        {
          "name": "customer_balance_transaction_id",
          "type": "varchar",
          "key": "primary",
          "description": "References the id column of the parent object table.",
          "confidence": "verified"
        },
        {
          "name": "key",
          "type": "varchar",
          "description": "The metadata key set on the object.",
          "confidence": "verified",
          "key": "primary"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "value",
          "type": "varchar",
          "description": "The metadata value for that key. Always a string, even when it holds a number or boolean.",
          "confidence": "verified",
          "raw_type": "varchar"
        }
      ],
      "columns_complete": true,
      "foreign_keys": [
        {
          "columns": [
            "customer_balance_transaction_id"
          ],
          "references": {
            "table": "customer_balance_transactions",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        }
      ],
      "notes": [
        "Values are always strings, even when they hold numbers or booleans.",
        "Pivot to columns with: select customer_balance_transaction_id, map_agg(key, value) as md from customer_balance_transactions_metadata group by 1"
      ],
      "derived_from_convention": "metadata_tables",
      "verified_against_account": true
    },
    {
      "name": "customer_cash_balance_transactions",
      "dataset": "customers",
      "source": "api_backed",
      "freshness_hours": 3,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Changes to a customer's cash balance held at Stripe, used for bank-transfer funding.",
      "grain": "One row per cash balance transaction.",
      "primary_key": [
        "id"
      ],
      "columns": [
        {
          "name": "id",
          "type": "varchar",
          "key": "primary",
          "description": "Unique identifier for the transaction.",
          "confidence": "verified"
        },
        {
          "name": "amount",
          "type": "double",
          "confidence": "verified",
          "raw_type": "double",
          "description": ""
        },
        {
          "name": "amount_currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "applied_to_payment_intent",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "created",
          "type": "timestamp",
          "description": "When the transaction occurred (UTC).",
          "confidence": "verified",
          "raw_type": "timestamp"
        },
        {
          "name": "customer",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "ending_balance",
          "type": "double",
          "confidence": "verified",
          "raw_type": "double",
          "description": ""
        },
        {
          "name": "ending_balance_currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "funded_reference",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "linked_model_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "livemode",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": ""
        },
        {
          "name": "refund_from",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "unapplied_from_payment_intent",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        }
      ],
      "foreign_keys": [],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "customer_change_events",
      "dataset": "unclassified",
      "source": "api_backed",
      "freshness_hours": null,
      "preview": false,
      "listed_in_stripe_freshness_table": false,
      "description": "",
      "grain": "",
      "primary_key": [
        "customer_id",
        "event_timestamp",
        "event_type"
      ],
      "foreign_keys": [],
      "notes": [],
      "columns": [
        {
          "name": "customer_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "event_timestamp",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "event_type",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "active_timestamp",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "local_event_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "mrr_change",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "customer_tax_ids",
      "dataset": "customers",
      "source": "api_backed",
      "freshness_hours": 3,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Tax identifiers stored against a customer.",
      "grain": "One row per (customer, tax id).",
      "primary_key": [
        "id"
      ],
      "columns": [
        {
          "name": "id",
          "type": "varchar",
          "key": "primary",
          "description": "Unique identifier, prefixed txi_.",
          "confidence": "verified"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "country",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "created",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "customer",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "owner_account",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "owner_application",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "owner_customer",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "owner_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "type",
          "type": "varchar",
          "description": "Tax id type, e.g. eu_vat, us_ein.",
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "value",
          "type": "varchar",
          "description": "The tax identifier itself.",
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "verification_status",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "verification_verified_address",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "verification_verified_name",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        }
      ],
      "foreign_keys": [],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "customers",
      "dataset": "customers",
      "source": "api_backed",
      "freshness_hours": 3,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "One row per Customer object.",
      "grain": "One row per customer, including deleted ones.",
      "primary_key": [
        "id"
      ],
      "columns_complete": true,
      "columns": [
        {
          "name": "id",
          "type": "varchar",
          "key": "primary",
          "description": "Unique identifier for the object.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-billing-data.md",
            "data_query-transactions.md"
          ]
        },
        {
          "name": "account_balance",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": "This field has been renamed to balance and will be removed in a future API version."
        },
        {
          "name": "address_city",
          "type": "varchar",
          "description": "City, district, suburb, town, or village.",
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "address_country",
          "type": "varchar",
          "description": "Two-letter country code (ISO 3166-1 alpha-2).",
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "address_line1",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "Address line 1, such as the street, PO Box, or company name."
        },
        {
          "name": "address_line2",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "Address line 2, such as the apartment, suite, unit, or building."
        },
        {
          "name": "address_postal_code",
          "type": "varchar",
          "description": "ZIP or postal code.",
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "address_state",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "State, county, province, or region (ISO 3166-2)."
        },
        {
          "name": "balance",
          "type": "bigint",
          "description": "The current balance, if any, that's stored on the customer. If negative, the customer has credit to apply to their next invoice. If positive, the customer has an amount owed that's added to their next invoice. The balance only considers amounts that Stripe hasn't successfully applied to any invoice. It doesn't reflect unpaid invoices. This balance is only taken into account after invoices finalize.",
          "confidence": "verified",
          "raw_type": "bigint"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": "The time in epoch format at which updates to the object were processed through the Stripe Data Pipeline. If the object hasn't changed, the time remains unchanged. This field isn't available in Sigma. It's only available for core API tables, including Connect versions, exported through the Stripe Data Pipeline."
        },
        {
          "name": "business_name",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The customer's business name."
        },
        {
          "name": "business_vat_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "created",
          "type": "timestamp",
          "description": "Time at which the object was created. Measured in seconds since the Unix epoch.",
          "confidence": "verified",
          "raw_type": "timestamp"
        },
        {
          "name": "currency",
          "type": "varchar",
          "description": "Three-letter ISO currency code, in lowercase. Must be a supported currency.",
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "customer_account_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The ID of a related account that has the customer configuration. This ID can be used in any v1 API that accepts a customer_account parameter."
        },
        {
          "name": "default_source_id",
          "type": "varchar",
          "key": "foreign",
          "description": "ID of the default payment source for the customer.\n\nIf you use payment methods created through the PaymentMethods API, see the invoice_settings.default_payment_method field instead.",
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "deleted",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": ""
        },
        {
          "name": "delinquent",
          "type": "boolean",
          "description": "Tracks the most recent state change on any invoice belonging to the customer. Paying an invoice or marking it uncollectible via the API will set this field to false. An automatic payment failure or passing the invoice.due_date will set this field to true.\n\nIf an invoice becomes uncollectible by dunning, delinquent doesn't reset to false.\n\nIf you care whether the customer has paid their most recent subscription invoice, use subscription.status instead. Paying or marking uncollectible any customer invoice regardless of whether it is the latest invoice for a subscription will always set this field to false.",
          "confidence": "verified",
          "raw_type": "boolean"
        },
        {
          "name": "description",
          "type": "varchar",
          "description": "An arbitrary string attached to the object. Often useful for displaying to users.",
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "discount_checkout_session",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The Checkout session that this coupon is applied to, if it is applied to a particular session in payment mode. Not present for subscription mode."
        },
        {
          "name": "discount_coupon_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "Unique identifier for the object.",
          "key": "foreign"
        },
        {
          "name": "discount_customer_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "The ID of the customer associated with this discount.",
          "key": "foreign"
        },
        {
          "name": "discount_end",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": "If the coupon has a duration of repeating, the date that this discount will end. If the coupon has a duration of once or forever, this attribute will be null."
        },
        {
          "name": "discount_invoice",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The invoice that the discount's coupon was applied to, if it was applied directly to a particular invoice."
        },
        {
          "name": "discount_invoice_item",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The invoice item id (or invoice line item id for invoice line items of type='subscription') that the discount's coupon was applied to, if it was applied directly to a particular invoice item or invoice line item."
        },
        {
          "name": "discount_promotion_code_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The promotion code applied to create this discount."
        },
        {
          "name": "discount_schedule_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "The subscription schedule that this coupon is applied to, if it is applied to a particular subscription schedule.",
          "key": "foreign"
        },
        {
          "name": "discount_start",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": "Date that the coupon was applied."
        },
        {
          "name": "discount_subscription",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The subscription that this coupon is applied to, if it is applied to a particular subscription."
        },
        {
          "name": "discount_subscription_item",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The subscription item that this coupon is applied to, if it is applied to a particular subscription item."
        },
        {
          "name": "email",
          "type": "varchar",
          "description": "The customer's email address.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-billing-data.md",
            "data_query-transactions.md"
          ],
          "raw_type": "varchar"
        },
        {
          "name": "individual_name",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The customer's individual name."
        },
        {
          "name": "invoice_credit_balance",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The current multi-currency balances, if any, that's stored on the customer. If positive in a currency, the customer has a credit to apply to their next invoice denominated in that currency. If negative, the customer has an amount owed that's added to their next invoice denominated in that currency. These balances don't apply to unpaid invoices. They solely track amounts that Stripe hasn't successfully applied to any invoice. Stripe only applies a balance in a specific currency to an invoice after that invoice (which is in the same currency) finalizes."
        },
        {
          "name": "invoice_settings_default_payment_method_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "ID of a payment method that's attached to the customer, to be used as the customer's default payment method for subscriptions and invoices.",
          "key": "foreign"
        },
        {
          "name": "name",
          "type": "varchar",
          "description": "The customer's full name or business name.",
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "phone",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The customer's phone number."
        },
        {
          "name": "preferred_locales",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The customer's preferred locales (languages), ordered by preference."
        },
        {
          "name": "shipping_address_city",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "City, district, suburb, town, or village."
        },
        {
          "name": "shipping_address_country",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "Two-letter country code (ISO 3166-1 alpha-2)."
        },
        {
          "name": "shipping_address_line1",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "Address line 1, such as the street, PO Box, or company name."
        },
        {
          "name": "shipping_address_line2",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "Address line 2, such as the apartment, suite, unit, or building."
        },
        {
          "name": "shipping_address_postal_code",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "ZIP or postal code."
        },
        {
          "name": "shipping_address_state",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "State, county, province, or region (ISO 3166-2)."
        },
        {
          "name": "shipping_name",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "Customer name."
        },
        {
          "name": "shipping_phone",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "Customer phone (including extension)."
        },
        {
          "name": "sources_data_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "Unique identifier for the object."
        },
        {
          "name": "tax_exempt",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "Describes the customer's tax exemption status, which is none, exempt, or reverse. When set to reverse, invoice and receipt PDFs include the following text: \"Reverse charge\"."
        },
        {
          "name": "tax_info_tax_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The customer's tax ID number."
        },
        {
          "name": "tax_info_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The type of ID number."
        },
        {
          "name": "tax_ip_address",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "A recent IP address of the customer used for tax reporting and tax location inference."
        }
      ],
      "notes": [
        "Deleted customers are retained here, so filter on is_deleted for active-customer counts."
      ],
      "foreign_keys": [],
      "verified_against_account": true
    },
    {
      "name": "customers_metadata",
      "dataset": "customers",
      "source": "api_backed",
      "freshness_hours": 3,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Metadata key/value pairs set on customers. One row per (object, metadata key) pair. Objects with no metadata have no rows.",
      "grain": "One row per (object, metadata key) pair. Objects with no metadata have no rows.",
      "primary_key": [
        "key"
      ],
      "columns": [
        {
          "name": "customer_id",
          "type": "varchar",
          "key": "foreign",
          "description": "References the id column of the parent object table.",
          "confidence": "verified"
        },
        {
          "name": "key",
          "type": "varchar",
          "description": "The metadata key set on the object.",
          "confidence": "verified",
          "key": "primary"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "value",
          "type": "varchar",
          "description": "The metadata value for that key. Always a string, even when it holds a number or boolean.",
          "confidence": "verified",
          "raw_type": "varchar"
        }
      ],
      "columns_complete": true,
      "foreign_keys": [
        {
          "columns": [
            "customer_id"
          ],
          "references": {
            "table": "customers",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        }
      ],
      "notes": [
        "Values are always strings, even when they hold numbers or booleans.",
        "Pivot to columns with: select customer_id, map_agg(key, value) as md from customers_metadata group by 1"
      ],
      "derived_from_convention": "metadata_tables",
      "verified_against_account": true
    },
    {
      "name": "discounts",
      "dataset": "billing",
      "source": "api_backed",
      "freshness_hours": 3,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Applications of a coupon or promotion code to a customer, subscription or invoice.",
      "grain": "One row per applied discount.",
      "primary_key": [
        "id"
      ],
      "columns_complete": true,
      "columns": [
        {
          "name": "id",
          "type": "varchar",
          "key": "primary",
          "description": "Unique identifier, prefixed di_.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-billing-data.md"
          ]
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "checkout_session_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "coupon_id",
          "type": "varchar",
          "key": "foreign",
          "description": "Coupon that was applied.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-billing-data.md"
          ]
        },
        {
          "name": "created",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "customer_id",
          "type": "varchar",
          "key": "foreign",
          "description": "Customer the discount applies to.",
          "confidence": "verified"
        },
        {
          "name": "end",
          "type": "bigint",
          "description": "When the discount stops applying. `end` is a reserved word in Trino \u2014 quote it as \"end\".",
          "confidence": "verified",
          "raw_type": "bigint"
        },
        {
          "name": "invoice_id",
          "type": "varchar",
          "key": "foreign",
          "description": "Invoice the discount applies to.",
          "confidence": "verified"
        },
        {
          "name": "invoice_item_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "promotion_code_id",
          "type": "varchar",
          "key": "foreign",
          "description": "Promotion code used, if the discount came from one.",
          "confidence": "verified"
        },
        {
          "name": "subscription_id",
          "type": "varchar",
          "key": "foreign",
          "description": "Subscription the discount applies to.",
          "confidence": "verified"
        },
        {
          "name": "subscription_item_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        }
      ],
      "foreign_keys": [
        {
          "columns": [
            "coupon_id"
          ],
          "references": {
            "table": "coupons",
            "columns": [
              "id"
            ]
          },
          "confidence": "documented"
        },
        {
          "columns": [
            "checkout_session_id"
          ],
          "references": {
            "table": "checkout_sessions",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        },
        {
          "columns": [
            "customer_id"
          ],
          "references": {
            "table": "customers",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        },
        {
          "columns": [
            "invoice_id"
          ],
          "references": {
            "table": "invoices",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        },
        {
          "columns": [
            "invoice_item_id"
          ],
          "references": {
            "table": "invoice_items",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        },
        {
          "columns": [
            "promotion_code_id"
          ],
          "references": {
            "table": "promotion_codes",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        },
        {
          "columns": [
            "subscription_id"
          ],
          "references": {
            "table": "subscriptions",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        },
        {
          "columns": [
            "subscription_item_id"
          ],
          "references": {
            "table": "subscription_items",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        }
      ],
      "notes": [
        "Reach discounts from subscriptions by unnesting the comma-separated subscriptions.discounts column."
      ],
      "verified_against_account": true
    },
    {
      "name": "disputes",
      "dataset": "payments",
      "source": "api_backed",
      "freshness_hours": 3,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "One row per Dispute (chargeback), including any evidence you submitted.",
      "grain": "One row per dispute. A single charge can have more than one dispute, so count distinct dispute ids.",
      "primary_key": [
        "id"
      ],
      "columns_complete": true,
      "columns": [
        {
          "name": "id",
          "type": "varchar",
          "key": "primary",
          "description": "Unique identifier for the object.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-disputes-and-fraud-data.md"
          ]
        },
        {
          "name": "amount",
          "type": "bigint",
          "description": "Disputed amount. Usually the amount of the charge, but it can differ (usually because of currency fluctuation or because only part of the order is disputed).",
          "confidence": "verified",
          "doc_sources": [
            "data_query-disputes-and-fraud-data.md"
          ],
          "raw_type": "bigint"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": "The time in epoch format at which updates to the object were processed through the Stripe Data Pipeline. If the object hasn't changed, the time remains unchanged. This field isn't available in Sigma. It's only available for core API tables, including Connect versions, exported through the Stripe Data Pipeline."
        },
        {
          "name": "charge_id",
          "type": "varchar",
          "key": "foreign",
          "description": "ID of the charge that's disputed.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-disputes-and-fraud-data.md"
          ]
        },
        {
          "name": "created",
          "type": "timestamp",
          "description": "Time at which the object was created. Measured in seconds since the Unix epoch.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-disputes-and-fraud-data.md"
          ],
          "raw_type": "timestamp"
        },
        {
          "name": "currency",
          "type": "varchar",
          "description": "Three-letter ISO currency code, in lowercase. Must be a supported currency.",
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "evidence_access_activity_log",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "Any server or activity logs showing proof that the customer accessed or downloaded the purchased digital product. This information should include IP addresses, corresponding timestamps, and any detailed recorded activity."
        },
        {
          "name": "evidence_billing_address",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The billing address provided by the customer."
        },
        {
          "name": "evidence_cancellation_policy_disclosure",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "An explanation of how and when the customer was shown your refund policy prior to purchase."
        },
        {
          "name": "evidence_cancellation_policy_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "(ID of a file upload) Your subscription cancellation policy, as shown to the customer."
        },
        {
          "name": "evidence_cancellation_rebuttal",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "A justification for why the customer's subscription was not canceled."
        },
        {
          "name": "evidence_customer_communication_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "(ID of a file upload) Any communication with the customer that you feel is relevant to your case. Examples include emails proving that the customer received the product or service, or demonstrating their use of or satisfaction with the product or service."
        },
        {
          "name": "evidence_customer_email_address",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The email address of the customer."
        },
        {
          "name": "evidence_customer_name",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The name of the customer."
        },
        {
          "name": "evidence_customer_purchase_ip",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The IP address that the customer used when making the purchase."
        },
        {
          "name": "evidence_customer_signature_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "(ID of a file upload) A relevant document or contract showing the customer's signature."
        },
        {
          "name": "evidence_details_due_by",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": "Date by which evidence must be submitted in order to successfully challenge dispute. Will be 0 if the customer's bank or credit card company doesn't allow a response for this particular dispute."
        },
        {
          "name": "evidence_details_has_evidence",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": "Whether evidence has been staged for this dispute."
        },
        {
          "name": "evidence_details_past_due",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": "Whether the last evidence submission was submitted past the due date. Defaults to false if no evidence submissions have occurred. If true, then delivery of the latest evidence is not guaranteed."
        },
        {
          "name": "evidence_details_submission_count",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": "The number of times evidence has been submitted. Typically, you may only submit evidence once."
        },
        {
          "name": "evidence_details_submitted_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "evidence_duplicate_charge_documentation_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "(ID of a file upload) Documentation for the prior charge that can uniquely identify the charge, such as a receipt, shipping label, work order, etc. This document should be paired with a similar document from the disputed payment that proves the two payments are separate."
        },
        {
          "name": "evidence_duplicate_charge_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "The Stripe ID for the prior charge which appears to be a duplicate of the disputed charge.",
          "key": "foreign"
        },
        {
          "name": "evidence_product_description",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "A description of the product or service that was sold."
        },
        {
          "name": "evidence_receipt_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "(ID of a file upload) Any receipt or message sent to the customer notifying them of the charge."
        },
        {
          "name": "evidence_refund_policy_disclosure",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "Documentation demonstrating that the customer was shown your refund policy prior to purchase."
        },
        {
          "name": "evidence_refund_policy_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "(ID of a file upload) Your refund policy, as shown to the customer."
        },
        {
          "name": "evidence_refund_refusal_explanation",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "A justification for why the customer is not entitled to a refund."
        },
        {
          "name": "evidence_service_date",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The date on which the customer received or began receiving the purchased service, in a clear human-readable format."
        },
        {
          "name": "evidence_service_documentation_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "(ID of a file upload) Documentation showing proof that a service was provided to the customer. This could include a copy of a signed contract, work order, or other form of written agreement."
        },
        {
          "name": "evidence_shipping_address",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The address to which a physical product was shipped. You should try to include as complete address information as possible."
        },
        {
          "name": "evidence_shipping_carrier",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The delivery service that shipped a physical product, such as Fedex, UPS, USPS, etc. If multiple carriers were used for this purchase, please separate them with commas."
        },
        {
          "name": "evidence_shipping_date",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The date on which a physical product began its route to the shipping address, in a clear human-readable format."
        },
        {
          "name": "evidence_shipping_documentation_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "(ID of a file upload) Documentation showing proof that a product was shipped to the customer at the same address the customer provided to you. This could include a copy of the shipment receipt, shipping label, etc. It should show the customer's full shipping address, if possible."
        },
        {
          "name": "evidence_shipping_tracking_number",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The tracking number for a physical product, obtained from the delivery service. If multiple tracking numbers were generated for this purchase, please separate them with commas."
        },
        {
          "name": "evidence_uncategorized_file_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "(ID of a file upload) Any additional evidence or statements."
        },
        {
          "name": "evidence_uncategorized_text",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "Any additional evidence or statements."
        },
        {
          "name": "is_charge_refundable",
          "type": "boolean",
          "description": "If true, it's still possible to refund the disputed payment. After the payment has been fully refunded, no further funds are withdrawn from your Stripe account as a result of this dispute.",
          "confidence": "verified",
          "raw_type": "boolean"
        },
        {
          "name": "network_details_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The network type for this dispute. There will be a corresponding hash of details keyed by the value of this field."
        },
        {
          "name": "network_details_visa_rapid_dispute_resolution",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": "Whether this dispute was resolved via Visa's Rapid Dispute Resolution process."
        },
        {
          "name": "network_reason_code",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "Network-dependent reason code for the dispute."
        },
        {
          "name": "partner_processed_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": "The timestamp when the partner processed the dispute."
        },
        {
          "name": "reason",
          "type": "varchar",
          "description": "Reason given by cardholder for dispute. Possible values are bank_cannot_process, check_returned, credit_not_processed, customer_initiated, debit_not_authorized, duplicate, fraudulent, general, incorrect_account_details, insufficient_funds, noncompliant, product_not_received, product_unacceptable, subscription_canceled, or unrecognized. Learn more about dispute reasons.",
          "enum": [
            "bank_cannot_process",
            "check_returned",
            "credit_not_processed",
            "customer_initiated",
            "debit_not_authorized",
            "duplicate",
            "fraudulent",
            "general",
            "incorrect_account_details",
            "insufficient_funds",
            "noncompliant",
            "product_not_received",
            "product_unacceptable",
            "subscription_canceled",
            "unrecognized"
          ],
          "confidence": "verified",
          "doc_sources": [
            "data_query-disputes-and-fraud-data.md"
          ],
          "raw_type": "varchar"
        },
        {
          "name": "status",
          "type": "varchar",
          "description": "The current status of a dispute. Possible values include:warning_needs_response, warning_under_review, warning_closed, needs_response, under_review, won, lost, or prevented.",
          "enum": [
            "warning_needs_response",
            "warning_under_review",
            "warning_closed",
            "needs_response",
            "under_review",
            "won",
            "lost",
            "prevented"
          ],
          "confidence": "verified",
          "doc_sources": [
            "data_query-disputes-and-fraud-data.md"
          ],
          "raw_type": "varchar"
        }
      ],
      "foreign_keys": [
        {
          "columns": [
            "charge_id"
          ],
          "references": {
            "table": "charges",
            "columns": [
              "id"
            ]
          },
          "confidence": "documented"
        }
      ],
      "notes": [
        "Exclude status = 'prevented' when computing chargeback ratios the way card networks measure them.",
        "Dispute data lags: recent months undercount because disputes arrive weeks after the charge."
      ],
      "verified_against_account": true
    },
    {
      "name": "disputes_enhanced_eligibility",
      "dataset": "payments",
      "source": "api_backed",
      "freshness_hours": 3,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Eligibility of each dispute for enhanced evidence programs such as Visa Compelling Evidence 3.0.",
      "grain": "One row per dispute.",
      "primary_key": [
        "id"
      ],
      "columns": [
        {
          "name": "id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "created",
          "type": "double",
          "confidence": "verified",
          "raw_type": "double",
          "description": ""
        },
        {
          "name": "mastercard_compliance_status",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "visa_compelling_evidence_3_required_actions",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "visa_compelling_evidence_3_status",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "visa_compliance_status",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        }
      ],
      "foreign_keys": [],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "disputes_metadata",
      "dataset": "payments",
      "source": "api_backed",
      "freshness_hours": 3,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Metadata key/value pairs set on disputes. One row per (object, metadata key) pair. Objects with no metadata have no rows.",
      "grain": "One row per (object, metadata key) pair. Objects with no metadata have no rows.",
      "primary_key": [
        "key"
      ],
      "columns": [
        {
          "name": "dispute_id",
          "type": "varchar",
          "key": "foreign",
          "description": "References the id column of the parent object table.",
          "confidence": "verified"
        },
        {
          "name": "key",
          "type": "varchar",
          "description": "The metadata key set on the object.",
          "confidence": "verified",
          "key": "primary"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "value",
          "type": "varchar",
          "description": "The metadata value for that key. Always a string, even when it holds a number or boolean.",
          "confidence": "verified",
          "raw_type": "varchar"
        }
      ],
      "columns_complete": true,
      "foreign_keys": [
        {
          "columns": [
            "dispute_id"
          ],
          "references": {
            "table": "disputes",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        }
      ],
      "notes": [
        "Values are always strings, even when they hold numbers or booleans.",
        "Pivot to columns with: select dispute_id, map_agg(key, value) as md from disputes_metadata group by 1"
      ],
      "derived_from_convention": "metadata_tables",
      "verified_against_account": true
    },
    {
      "name": "disputes_reporting_v1_itemized",
      "dataset": "unclassified",
      "source": "api_backed",
      "freshness_hours": null,
      "preview": false,
      "listed_in_stripe_freshness_table": false,
      "description": "",
      "grain": "",
      "primary_key": [
        "id"
      ],
      "foreign_keys": [],
      "notes": [],
      "columns": [
        {
          "name": "id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "amount_in_usd",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "card_brand",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "card_country",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "card_input_method",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "card_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "charge_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "dispute_amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "dispute_amount_in_usd",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "dispute_created_day",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "dispute_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "dispute_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "gateway_country",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "has_early_fraud_warning",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": ""
        },
        {
          "name": "is_connected_account",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": ""
        },
        {
          "name": "payment_created_day",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "representment_product",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "responded",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": ""
        },
        {
          "name": "status",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "user_facing_reason",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "draft_tax_forms",
      "dataset": "unclassified",
      "source": "api_backed",
      "freshness_hours": null,
      "preview": false,
      "listed_in_stripe_freshness_table": false,
      "description": "",
      "grain": "",
      "primary_key": [
        "id"
      ],
      "foreign_keys": [],
      "notes": [],
      "columns": [
        {
          "name": "id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "created",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "email",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "filing_requirement",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "livemode",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": ""
        },
        {
          "name": "payee_account_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "payee_address_line_1",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "payee_address_line_2",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "payee_city",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "payee_country",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "payee_name_line_1",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "payee_name_line_2",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "payee_postal_code",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "payee_region",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "payee_tin_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "payee_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "payer_override",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "postal_delivery",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "reporting_year",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "us_1099_k_numerical_data_by_calculation_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "us_1099_k_numerical_deltas",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "us_1099_k_selected_calculation_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "us_1099_misc_numerical_data_by_calculation_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "us_1099_misc_numerical_deltas",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "us_1099_misc_selected_calculation_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "us_1099_nec_numerical_data_by_calculation_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "us_1099_nec_numerical_deltas",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "us_1099_nec_selected_calculation_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "early_fraud_warnings",
      "dataset": "radar",
      "source": "api_backed",
      "freshness_hours": null,
      "preview": false,
      "listed_in_stripe_freshness_table": false,
      "evidence": "https://docs.stripe.com/data/query-disputes-and-fraud-data",
      "description": "Fraud reports issued by the card network before a formal dispute is filed. Leading indicator for card brand monitoring programs such as Visa VAMP.",
      "grain": "One row per early fraud warning.",
      "primary_key": [
        "id"
      ],
      "columns_complete": true,
      "columns": [
        {
          "name": "id",
          "type": "varchar",
          "key": "primary",
          "description": "Unique identifier, prefixed issfr_.",
          "confidence": "verified"
        },
        {
          "name": "actionable",
          "type": "boolean",
          "description": "Whether you can still act (for example refund) to avoid a chargeback.",
          "confidence": "verified",
          "raw_type": "boolean"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "charge_id",
          "type": "varchar",
          "key": "foreign",
          "description": "Charge the warning is about.",
          "confidence": "verified"
        },
        {
          "name": "created",
          "type": "timestamp",
          "description": "When the warning was received (UTC).",
          "confidence": "verified",
          "raw_type": "timestamp"
        },
        {
          "name": "fraud_type",
          "type": "varchar",
          "description": "Type of fraud reported by the network.",
          "confidence": "verified",
          "raw_type": "varchar"
        }
      ],
      "foreign_keys": [
        {
          "columns": [
            "charge_id"
          ],
          "references": {
            "table": "charges",
            "columns": [
              "id"
            ]
          },
          "confidence": "documented"
        }
      ],
      "verified_against_account": true
    },
    {
      "name": "exchange_rates_from_usd",
      "dataset": "other",
      "source": "derived",
      "freshness_hours": 24,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Daily currency conversion rates expressed relative to USD. Needed to sum multi-currency amounts into one reporting currency.",
      "grain": "One row per date.",
      "primary_key": [
        "date"
      ],
      "columns_complete": true,
      "columns": [
        {
          "name": "date",
          "type": "varchar",
          "description": "Date, as a midnight timestamp.",
          "confidence": "verified",
          "key": "primary"
        },
        {
          "name": "buy_currency_exchange_rates",
          "type": "varchar",
          "description": "Buy currencies (to) and approximate mid-market exchange rates for the day, in JSON format. Excludes any Stripe fees that apply to currency conversions. Currencies are three-letter ISO currency codes in lowercase. See supported currencies.",
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "sell_currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "Sell currency (from), as a three-letter ISO currency code in lowercase. Always usd for this table."
        }
      ],
      "notes": [
        "This is a JSON string column, not a map. Parse it before use.",
        "To convert an amount from currency A to currency B: amount / rate[A] * rate[B]."
      ],
      "foreign_keys": [],
      "verified_against_account": true
    },
    {
      "name": "external_account_bank_accounts",
      "dataset": "unclassified",
      "source": "api_backed",
      "freshness_hours": null,
      "preview": false,
      "listed_in_stripe_freshness_table": false,
      "description": "",
      "grain": "",
      "primary_key": [
        "id"
      ],
      "foreign_keys": [
        {
          "columns": [
            "account_id"
          ],
          "references": {
            "table": "accounts",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        }
      ],
      "notes": [],
      "columns": [
        {
          "name": "account_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "account_holder_name",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "account_holder_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "account_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "available_payout_methods",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "bank_name",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "country",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "default_for_currency",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": ""
        },
        {
          "name": "fingerprint",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "last4",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "routing_number",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "status",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "external_account_cards",
      "dataset": "unclassified",
      "source": "api_backed",
      "freshness_hours": null,
      "preview": false,
      "listed_in_stripe_freshness_table": false,
      "description": "",
      "grain": "",
      "primary_key": [
        "id"
      ],
      "foreign_keys": [
        {
          "columns": [
            "account_id"
          ],
          "references": {
            "table": "accounts",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        },
        {
          "columns": [
            "customer_id"
          ],
          "references": {
            "table": "customers",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        }
      ],
      "notes": [],
      "columns": [
        {
          "name": "account_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "address_city",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "address_country",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "address_line1",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "address_line1_check",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "address_line2",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "address_state",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "address_zip",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "address_zip_check",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "allow_redisplay",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "available_payout_methods",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "brand",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "country",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "customer_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "cvc_check",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "default_for_currency",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": ""
        },
        {
          "name": "dynamic_last4",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "exp_month",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "exp_year",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "fingerprint",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "funding",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "last4",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "name",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "recipient_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "regulated_status",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "status",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "tokenization_method",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "fee_credits_activities",
      "dataset": "unclassified",
      "source": "api_backed",
      "freshness_hours": null,
      "preview": false,
      "listed_in_stripe_freshness_table": false,
      "description": "",
      "grain": "",
      "primary_key": [
        "credit_id",
        "transaction_id"
      ],
      "foreign_keys": [],
      "notes": [],
      "columns": [
        {
          "name": "credit_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "transaction_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "amount_in_minor",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "attribution_window_end",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "attribution_window_start",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "billing_account_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "created_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "credit_name",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "description",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "owner_account_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "financing_balances",
      "dataset": "capital",
      "source": "derived",
      "freshness_hours": 24,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Outstanding Stripe Capital loan balances over time.",
      "grain": "One row per balance snapshot.",
      "primary_key": [
        "id"
      ],
      "columns": [
        {
          "name": "id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "account_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "effective_date_utc",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "financing_offer",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "overdue_payment_amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "pending_payment_amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "premium_outstanding_amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "principal_outstanding_amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        }
      ],
      "foreign_keys": [
        {
          "columns": [
            "account_id"
          ],
          "references": {
            "table": "accounts",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "financing_offers",
      "dataset": "capital",
      "source": "derived",
      "freshness_hours": 24,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Stripe Capital financing offers extended to you or your connected accounts.",
      "grain": "One row per financing offer.",
      "primary_key": [
        "id"
      ],
      "columns": [
        {
          "name": "id",
          "type": "varchar",
          "key": "primary",
          "description": "Unique identifier for the offer.",
          "confidence": "verified"
        },
        {
          "name": "accepted_advance_amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "accepted_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "accepted_premium_amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "accepted_terms_repayment_interval_configuration_duration_days",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "accepted_terms_repayment_interval_configuration_maximum_amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "accepted_terms_repayment_interval_configuration_minimum_amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "accepted_terms_target_payback_days",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "accepted_withhold_rate",
          "type": "double",
          "confidence": "verified",
          "raw_type": "double",
          "description": ""
        },
        {
          "name": "account_id",
          "type": "varchar",
          "key": "foreign",
          "description": "Account the offer was made to.",
          "confidence": "verified"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "campaign_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "canceled_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "charged_off_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "created_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "expires_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "financing_application_status_transitions_accepted_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "financing_application_status_transitions_initiated_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "financing_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "fully_repaid_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "is_first_time_offer",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": ""
        },
        {
          "name": "max_advance_amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "max_premium_amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "max_withhold_rate",
          "type": "double",
          "confidence": "verified",
          "raw_type": "double",
          "description": ""
        },
        {
          "name": "metadata",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "offered_terms_repayment_interval_configuration_duration_days",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "offered_terms_repayment_interval_configuration_maximum_amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "offered_terms_repayment_interval_configuration_minimum_amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "offered_terms_target_payback_days",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "paid_out_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "previous_financing_fee_discount_amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "previous_financing_fee_discount_rate",
          "type": "double",
          "confidence": "verified",
          "raw_type": "double",
          "description": ""
        },
        {
          "name": "product_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "rejected_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "replacement_for",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "replacement_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "revshare_earned_amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "state",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        }
      ],
      "foreign_keys": [
        {
          "columns": [
            "account_id"
          ],
          "references": {
            "table": "accounts",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "financing_transactions",
      "dataset": "capital",
      "source": "derived",
      "freshness_hours": 24,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Repayments and drawdowns against Stripe Capital financing.",
      "grain": "One row per financing transaction.",
      "primary_key": [
        "id"
      ],
      "columns": [
        {
          "name": "id",
          "type": "varchar",
          "key": "primary",
          "description": "Unique identifier for the transaction.",
          "confidence": "verified"
        },
        {
          "name": "advance_amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "currency",
          "type": "varchar",
          "description": "Three-letter ISO currency code, lowercase.",
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "description",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "effective_time",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "fee_amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "financing_offer",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "legacy_balance_transaction_source",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "linked_withholdable_object_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "linked_withholdable_object_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "reason",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "reversed_transaction",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "total_amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "transaction_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        }
      ],
      "foreign_keys": [],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "icplus_fees",
      "dataset": "other",
      "source": "derived",
      "freshness_hours": 72,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Interchange-plus fee breakdown, splitting each fee into interchange, scheme and Stripe components.",
      "grain": "One row per fee component tied to a balance transaction.",
      "primary_key": [],
      "columns_complete": false,
      "columns": [
        {
          "name": "balance_transaction_created_at",
          "type": "timestamp",
          "description": "When the balance transaction hit your balance (UTC).",
          "confidence": "documented",
          "doc_sources": [
            "data_data-freshness.md"
          ]
        },
        {
          "name": "balance_transaction_id",
          "type": "varchar",
          "key": "foreign",
          "description": "Balance transaction that debited the fee.",
          "confidence": "documented",
          "doc_sources": [
            "data_data-freshness.md"
          ]
        },
        {
          "name": "billing_amount",
          "type": "bigint",
          "description": "Fee amount billed.",
          "confidence": "documented",
          "doc_sources": [
            "data_data-freshness.md"
          ]
        },
        {
          "name": "billing_currency",
          "type": "varchar",
          "description": "Currency of billing_amount.",
          "confidence": "documented",
          "doc_sources": [
            "data_data-freshness.md"
          ]
        },
        {
          "name": "charge_id",
          "type": "varchar",
          "key": "foreign",
          "description": "Charge the fee relates to.",
          "confidence": "documented",
          "doc_sources": [
            "data_data-freshness.md"
          ]
        }
      ],
      "foreign_keys": [
        {
          "columns": [
            "balance_transaction_id"
          ],
          "references": {
            "table": "balance_transactions",
            "columns": [
              "id"
            ]
          },
          "confidence": "documented"
        },
        {
          "columns": [
            "charge_id"
          ],
          "references": {
            "table": "charges",
            "columns": [
              "id"
            ]
          },
          "confidence": "documented"
        }
      ],
      "notes": [
        "Only populated for accounts on interchange-plus pricing."
      ],
      "verified_against_account": false
    },
    {
      "name": "iins",
      "dataset": "unclassified",
      "source": "api_backed",
      "freshness_hours": null,
      "preview": false,
      "listed_in_stripe_freshness_table": false,
      "description": "",
      "grain": "",
      "primary_key": [
        "id"
      ],
      "foreign_keys": [],
      "notes": [],
      "columns": [
        {
          "name": "id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "bank",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "country_code",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "description",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "invoice_custom_fields",
      "dataset": "billing",
      "source": "api_backed",
      "freshness_hours": 3,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Custom key/value fields rendered on an invoice.",
      "grain": "One row per (invoice, custom field).",
      "primary_key": [
        "invoice_id",
        "name"
      ],
      "columns": [
        {
          "name": "invoice_id",
          "type": "varchar",
          "key": "primary",
          "description": "Invoice the field appears on.",
          "confidence": "verified"
        },
        {
          "name": "name",
          "type": "varchar",
          "description": "Field label.",
          "confidence": "verified",
          "key": "primary"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "value",
          "type": "varchar",
          "description": "Field value.",
          "confidence": "verified",
          "raw_type": "varchar"
        }
      ],
      "foreign_keys": [
        {
          "columns": [
            "invoice_id"
          ],
          "references": {
            "table": "invoices",
            "columns": [
              "id"
            ]
          }
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "invoice_customer_tax_ids",
      "dataset": "billing",
      "source": "api_backed",
      "freshness_hours": 3,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Customer tax identifiers captured on an invoice.",
      "grain": "One row per (invoice, tax id).",
      "primary_key": [
        "invoice_id",
        "value"
      ],
      "columns": [
        {
          "name": "invoice_id",
          "type": "varchar",
          "key": "primary",
          "description": "Invoice the tax id appears on.",
          "confidence": "verified"
        },
        {
          "name": "value",
          "type": "varchar",
          "description": "The tax identifier itself.",
          "confidence": "verified",
          "key": "primary"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "type",
          "type": "varchar",
          "description": "Tax id type, e.g. eu_vat, us_ein.",
          "confidence": "verified",
          "raw_type": "varchar"
        }
      ],
      "foreign_keys": [],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "invoice_item_discount_amounts",
      "dataset": "unclassified",
      "source": "api_backed",
      "freshness_hours": null,
      "preview": false,
      "listed_in_stripe_freshness_table": false,
      "description": "",
      "grain": "",
      "primary_key": [
        "invoice_item_id"
      ],
      "foreign_keys": [
        {
          "columns": [
            "discount_id"
          ],
          "references": {
            "table": "discounts",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        }
      ],
      "notes": [],
      "columns": [
        {
          "name": "discount_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "invoice_item_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "invoice_items",
      "dataset": "billing",
      "source": "api_backed",
      "freshness_hours": 3,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "One-off charges or credits queued onto a customer's next invoice.",
      "grain": "One row per invoice item.",
      "primary_key": [
        "id"
      ],
      "columns": [
        {
          "name": "id",
          "type": "varchar",
          "key": "primary",
          "description": "Unique identifier, prefixed ii_.",
          "confidence": "verified"
        },
        {
          "name": "amount",
          "type": "bigint",
          "description": "Amount in minor currency units. Negative for credits.",
          "confidence": "verified",
          "raw_type": "bigint"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "currency",
          "type": "varchar",
          "description": "Three-letter ISO currency code, lowercase.",
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "customer_id",
          "type": "varchar",
          "key": "foreign",
          "description": "Customer the item will be billed to.",
          "confidence": "verified"
        },
        {
          "name": "date",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "description",
          "type": "varchar",
          "description": "Customer-facing description.",
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "discountable",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": ""
        },
        {
          "name": "discounts",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "invoice_id",
          "type": "varchar",
          "key": "foreign",
          "description": "Invoice the item landed on, once invoiced.",
          "confidence": "verified"
        },
        {
          "name": "net_amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "period_end",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "period_start",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "plan_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "price_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "proration",
          "type": "boolean",
          "description": "Whether the item is a proration adjustment.",
          "confidence": "verified",
          "raw_type": "boolean"
        },
        {
          "name": "quantity",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "quantity_decimal",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "subscription_id",
          "type": "varchar",
          "key": "foreign",
          "description": "Subscription the item relates to, if any.",
          "confidence": "verified"
        },
        {
          "name": "subscription_item",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "unit_amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "unit_amount_decimal",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        }
      ],
      "foreign_keys": [
        {
          "columns": [
            "customer_id"
          ],
          "references": {
            "table": "customers",
            "columns": [
              "id"
            ]
          }
        },
        {
          "columns": [
            "invoice_id"
          ],
          "references": {
            "table": "invoices",
            "columns": [
              "id"
            ]
          }
        },
        {
          "columns": [
            "plan_id"
          ],
          "references": {
            "table": "plans",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        },
        {
          "columns": [
            "price_id"
          ],
          "references": {
            "table": "prices",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        },
        {
          "columns": [
            "subscription_id"
          ],
          "references": {
            "table": "subscriptions",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "invoice_items_metadata",
      "dataset": "billing",
      "source": "api_backed",
      "freshness_hours": 3,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Metadata key/value pairs set on invoice_items. One row per (object, metadata key) pair. Objects with no metadata have no rows.",
      "grain": "One row per (object, metadata key) pair. Objects with no metadata have no rows.",
      "primary_key": [
        "key"
      ],
      "columns": [
        {
          "name": "invoice_item_id",
          "type": "varchar",
          "key": "foreign",
          "description": "References the id column of the parent object table.",
          "confidence": "verified"
        },
        {
          "name": "key",
          "type": "varchar",
          "description": "The metadata key set on the object.",
          "confidence": "verified",
          "key": "primary"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "value",
          "type": "varchar",
          "description": "The metadata value for that key. Always a string, even when it holds a number or boolean.",
          "confidence": "verified",
          "raw_type": "varchar"
        }
      ],
      "columns_complete": true,
      "foreign_keys": [
        {
          "columns": [
            "invoice_item_id"
          ],
          "references": {
            "table": "invoice_items",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        }
      ],
      "notes": [
        "Values are always strings, even when they hold numbers or booleans.",
        "Pivot to columns with: select invoice_item_id, map_agg(key, value) as md from invoice_items_metadata group by 1"
      ],
      "derived_from_convention": "metadata_tables",
      "verified_against_account": true
    },
    {
      "name": "invoice_line_item_discount_amounts",
      "dataset": "billing",
      "source": "api_backed",
      "freshness_hours": 3,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Discount amounts applied to individual invoice line items.",
      "grain": "One row per (invoice line item, discount).",
      "primary_key": [
        "id",
        "invoice_id",
        "invoice_line_item_id"
      ],
      "columns": [
        {
          "name": "id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "invoice_id",
          "type": "varchar",
          "key": "primary",
          "description": "Parent invoice.",
          "confidence": "verified"
        },
        {
          "name": "invoice_line_item_id",
          "type": "varchar",
          "key": "primary",
          "description": "Invoice line item discounted.",
          "confidence": "verified"
        },
        {
          "name": "amount",
          "type": "bigint",
          "description": "Discount amount in minor currency units.",
          "confidence": "verified",
          "raw_type": "bigint"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "discount",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        }
      ],
      "foreign_keys": [
        {
          "columns": [
            "invoice_id"
          ],
          "references": {
            "table": "invoices",
            "columns": [
              "id"
            ]
          },
          "confidence": "documented"
        }
      ],
      "notes": [
        "Sum amount grouped by invoice_id to get total discount per invoice."
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "invoice_line_item_tax_amounts",
      "dataset": "billing",
      "source": "api_backed",
      "freshness_hours": 3,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Tax amounts applied to individual invoice line items.",
      "grain": "One row per (invoice line item, tax rate).",
      "primary_key": [
        "id",
        "invoice_id",
        "invoice_line_item_id"
      ],
      "columns": [
        {
          "name": "id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "invoice_id",
          "type": "varchar",
          "key": "primary",
          "description": "Parent invoice.",
          "confidence": "verified"
        },
        {
          "name": "invoice_line_item_id",
          "type": "varchar",
          "key": "primary",
          "description": "Invoice line item taxed.",
          "confidence": "verified"
        },
        {
          "name": "amount",
          "type": "bigint",
          "description": "Tax amount in minor currency units.",
          "confidence": "verified",
          "raw_type": "bigint"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "filing_amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "inclusive",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": ""
        },
        {
          "name": "tax_rate",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "taxable_amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        }
      ],
      "foreign_keys": [],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "invoice_line_items",
      "dataset": "billing",
      "source": "api_backed",
      "freshness_hours": 3,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Individual line items on an invoice.",
      "grain": "One row per invoice line item.",
      "primary_key": [
        "id"
      ],
      "columns_complete": true,
      "columns": [
        {
          "name": "invoice_id",
          "type": "varchar",
          "key": "foreign",
          "description": "Parent invoice.",
          "confidence": "verified"
        },
        {
          "name": "amount",
          "type": "bigint",
          "description": "The amount, in cents.",
          "confidence": "verified",
          "raw_type": "bigint"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": "The time in epoch format at which updates to the object were processed through the Stripe Data Pipeline. If the object hasn't changed, the time remains unchanged. This field isn't available in Sigma. It's only available for core API tables, including Connect versions, exported through the Stripe Data Pipeline."
        },
        {
          "name": "currency",
          "type": "varchar",
          "description": "Three-letter ISO currency code, in lowercase. Must be a supported currency.",
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "description",
          "type": "varchar",
          "description": "An arbitrary string attached to the object. Often useful for displaying to users.",
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "discountable",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": "If true, discounts will apply to this line item. Always false for prorations."
        },
        {
          "name": "id",
          "type": "varchar",
          "key": "primary",
          "description": "The globally unique id for this invoice line item.",
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "invoice_item_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "The ID of the invoice item associated with this line item if any.",
          "key": "foreign"
        },
        {
          "name": "line_item_parent_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The parent object id derived from parent details for this line item."
        },
        {
          "name": "line_item_parent_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The type of parent that generated this line item. Mirrors parent.type from the API."
        },
        {
          "name": "period_end",
          "type": "timestamp",
          "description": "The end of the period, which must be greater than or equal to the start. This value is inclusive.",
          "confidence": "verified",
          "raw_type": "timestamp"
        },
        {
          "name": "period_start",
          "type": "timestamp",
          "description": "The start of the period. This value is inclusive.",
          "confidence": "verified",
          "raw_type": "timestamp"
        },
        {
          "name": "plan_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "Unique identifier for the object.",
          "key": "foreign"
        },
        {
          "name": "price_id",
          "type": "varchar",
          "key": "foreign",
          "description": "Unique identifier for the object.",
          "confidence": "verified"
        },
        {
          "name": "proration",
          "type": "boolean",
          "description": "Whether this is a proration.",
          "confidence": "verified",
          "raw_type": "boolean"
        },
        {
          "name": "proration_details_credited_items_invoice",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "Invoice containing the credited invoice line items"
        },
        {
          "name": "proration_details_credited_items_invoice_line_items",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "Credited invoice line items"
        },
        {
          "name": "quantity",
          "type": "bigint",
          "description": "Quantity of units for the invoice line item in integer format, with any decimal precision truncated. For the line item's full-precision decimal quantity, use quantity_decimal. This field will be deprecated in favor of quantity_decimal in a future version. If the line item is a proration or subscription, the quantity of the subscription that the proration was computed for.",
          "confidence": "verified",
          "raw_type": "bigint"
        },
        {
          "name": "quantity_decimal",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "Non-negative decimal with at most 12 decimal places. The quantity of units for the line item."
        },
        {
          "name": "source_id",
          "type": "varchar",
          "key": "foreign",
          "description": "Unique identifier for the object.",
          "confidence": "verified"
        },
        {
          "name": "source_type",
          "type": "varchar",
          "description": "A string identifying the type of the source of this line item, either an invoiceitem or a subscription.",
          "enum": [
            "subscription",
            "invoice_item"
          ],
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "subscription",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "subscription_item_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "The subscription item that generated this line item. Left empty if the line item is not an explicit result of a subscription.",
          "key": "foreign"
        },
        {
          "name": "total_discount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": "The sum total of the top- and item-level discounts applied to this line item."
        },
        {
          "name": "total_exclusive_tax",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": "The sum total of the exclusive taxes applied to this line item."
        }
      ],
      "foreign_keys": [
        {
          "columns": [
            "invoice_id"
          ],
          "references": {
            "table": "invoices",
            "columns": [
              "id"
            ]
          }
        },
        {
          "columns": [
            "invoice_item_id"
          ],
          "references": {
            "table": "invoice_items",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        },
        {
          "columns": [
            "plan_id"
          ],
          "references": {
            "table": "plans",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        },
        {
          "columns": [
            "price_id"
          ],
          "references": {
            "table": "prices",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        },
        {
          "columns": [
            "source_id"
          ],
          "references": {
            "table": "sources",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        },
        {
          "columns": [
            "subscription_item_id"
          ],
          "references": {
            "table": "subscription_items",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        }
      ],
      "notes": [
        "source_id is polymorphic \u2014 always filter on source_type before joining it to subscriptions or invoice_items."
      ],
      "verified_against_account": true
    },
    {
      "name": "invoice_payments",
      "dataset": "billing",
      "source": "api_backed",
      "freshness_hours": 3,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Payment attempts against an invoice, linking invoices to the charges or payment intents that settled them.",
      "grain": "One row per payment applied to an invoice.",
      "primary_key": [
        "id"
      ],
      "columns": [
        {
          "name": "id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "amount_overpaid",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "amount_paid",
          "type": "bigint",
          "description": "Amount applied, in minor currency units.",
          "confidence": "verified",
          "raw_type": "bigint"
        },
        {
          "name": "amount_requested",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "invoice",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "is_default",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": ""
        },
        {
          "name": "payment_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "payment_intent",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "payment_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "status",
          "type": "varchar",
          "description": "Payment status.",
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "status_transitions_canceled_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "status_transitions_paid_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        }
      ],
      "foreign_keys": [],
      "notes": [
        "Use this rather than invoices.charge_id when an invoice can be settled by multiple payments."
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "invoice_shipping_cost_taxes",
      "dataset": "billing",
      "source": "api_backed",
      "freshness_hours": 3,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Tax applied to shipping costs on an invoice.",
      "grain": "One row per (invoice, shipping tax rate).",
      "primary_key": [
        "id",
        "invoice_id"
      ],
      "columns": [
        {
          "name": "id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "invoice_id",
          "type": "varchar",
          "key": "primary",
          "description": "Parent invoice.",
          "confidence": "verified"
        },
        {
          "name": "amount",
          "type": "bigint",
          "description": "Tax amount in minor currency units.",
          "confidence": "verified",
          "raw_type": "bigint"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "filing_amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "inclusive",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": ""
        },
        {
          "name": "tax_rate",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "taxable_amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        }
      ],
      "foreign_keys": [],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "invoices",
      "dataset": "billing",
      "source": "api_backed",
      "freshness_hours": 3,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "One row per Invoice object. Each subscription generates invoices on a recurring basis covering the subscription amount plus any invoice items.",
      "grain": "One row per invoice, including drafts and voided invoices.",
      "primary_key": [
        "id"
      ],
      "columns_complete": true,
      "columns": [
        {
          "name": "id",
          "type": "varchar",
          "key": "primary",
          "description": "Unique identifier for the object.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-billing-data.md",
            "data_query-tax-data.md"
          ]
        },
        {
          "name": "amount_due",
          "type": "bigint",
          "description": "Final amount due at this time for this invoice. If the invoice's total is smaller than the minimum charge amount, for example, or if there is account credit that can be applied to the invoice, the amount_due may be 0. If there is a positive starting_balance for the invoice (the customer owes money), the amount_due will also take that into account. The charge that gets generated for the invoice will be for the amount specified in amount_due.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-billing-data.md"
          ],
          "raw_type": "bigint"
        },
        {
          "name": "amount_paid",
          "type": "bigint",
          "description": "The amount, in cents, that was paid.",
          "confidence": "verified",
          "raw_type": "bigint"
        },
        {
          "name": "amount_remaining",
          "type": "bigint",
          "description": "The difference between amount_due and amount_paid, in cents.",
          "confidence": "verified",
          "raw_type": "bigint"
        },
        {
          "name": "amount_shipping",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": "This is the sum of all the shipping amounts."
        },
        {
          "name": "application_fee",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "application_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "ID of the Connect Application that created the invoice."
        },
        {
          "name": "attempt_count",
          "type": "bigint",
          "description": "Number of payment attempts made for this invoice, from the perspective of the payment retry schedule. Any payment attempt counts as the first attempt, and subsequently only automatic retries increment the attempt count. In other words, manual payment attempts after the first attempt do not affect the retry schedule. If a failure is returned with a non-retryable return code, the invoice can no longer be retried unless a new payment method is obtained. Retries will continue to be scheduled, and attempt_count will continue to increment, but retries will only be executed if a new payment method is obtained.",
          "confidence": "verified",
          "raw_type": "bigint"
        },
        {
          "name": "attempted",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": "Whether an attempt has been made to pay the invoice. An invoice is not attempted until 1 hour after the invoice.created webhook, for example, so you might not want to display that invoice as unpaid to your users."
        },
        {
          "name": "auto_advance",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": "Controls whether Stripe performs automatic collection of the invoice. If false, the invoice's state doesn't automatically advance without an explicit action."
        },
        {
          "name": "automatic_tax_enabled",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": "Whether Stripe automatically computes tax on this invoice. Note that incompatible invoice items (invoice items with manually specified tax rates, negative amounts, or tax_behavior=unspecified) cannot be added to automatic tax invoices."
        },
        {
          "name": "automatic_tax_provider",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The tax provider powering automatic tax."
        },
        {
          "name": "automatic_tax_status",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The status of the most recent automated tax calculation for this invoice."
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": "The time in epoch format at which updates to the object were processed through the Stripe Data Pipeline. If the object hasn't changed, the time remains unchanged. This field isn't available in Sigma. It's only available for core API tables, including Connect versions, exported through the Stripe Data Pipeline."
        },
        {
          "name": "billing_reason",
          "type": "varchar",
          "description": "Indicates the reason why the invoice was created.\n\nmanual: Unrelated to a subscription, for example, created via the invoice editor.\nsubscription: No longer in use. Applies to subscriptions from before May 2018 where no distinction was made between updates, cycles, and thresholds.\nsubscription_create: A new subscription was created.\nsubscription_cycle: A subscription advanced into a new period.\nsubscription_threshold: A subscription reached a billing threshold.\nsubscription_update: A subscription was updated.\nupcoming: Reserved for upcoming invoices created through the Create Preview Invoice API or when an invoice.upcoming event is generated for an upcoming invoice on a subscription.",
          "enum": [
            "subscription_cycle",
            "subscription_create",
            "subscription_update",
            "subscription",
            "manual",
            "upcoming",
            "subscription_threshold"
          ],
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "charge_id",
          "type": "varchar",
          "key": "foreign",
          "description": "ID of the latest charge generated for this invoice, if any.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-billing-data.md"
          ]
        },
        {
          "name": "collection_method",
          "type": "varchar",
          "description": "How payment is collected.",
          "enum": [
            "charge_automatically",
            "send_invoice"
          ],
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "currency",
          "type": "varchar",
          "description": "Three-letter ISO currency code, in lowercase. Must be a supported currency.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-billing-data.md"
          ],
          "raw_type": "varchar"
        },
        {
          "name": "customer_address_city",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "City, district, suburb, town, or village."
        },
        {
          "name": "customer_address_country",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "Two-letter country code (ISO 3166-1 alpha-2)."
        },
        {
          "name": "customer_address_line1",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "Address line 1, such as the street, PO Box, or company name."
        },
        {
          "name": "customer_address_line2",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "Address line 2, such as the apartment, suite, unit, or building."
        },
        {
          "name": "customer_address_postal_code",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "ZIP or postal code."
        },
        {
          "name": "customer_address_state",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "State, county, province, or region (ISO 3166-2)."
        },
        {
          "name": "customer_description",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "customer_email",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The customer's email. Until the invoice is finalized, this field will equal customer.email. Once the invoice is finalized, this field will no longer be updated."
        },
        {
          "name": "customer_id",
          "type": "varchar",
          "key": "foreign",
          "description": "The ID of the customer to bill.",
          "confidence": "verified"
        },
        {
          "name": "customer_name",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The customer's name. Until the invoice is finalized, this field will equal customer.name. Once the invoice is finalized, this field will no longer be updated."
        },
        {
          "name": "customer_phone",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The customer's phone number. Until the invoice is finalized, this field will equal customer.phone. Once the invoice is finalized, this field will no longer be updated."
        },
        {
          "name": "customer_shipping_address_city",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "City, district, suburb, town, or village."
        },
        {
          "name": "customer_shipping_address_country",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "Two-letter country code (ISO 3166-1 alpha-2)."
        },
        {
          "name": "customer_shipping_address_line1",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "Address line 1, such as the street, PO Box, or company name."
        },
        {
          "name": "customer_shipping_address_line2",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "Address line 2, such as the apartment, suite, unit, or building."
        },
        {
          "name": "customer_shipping_address_postal_code",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "ZIP or postal code."
        },
        {
          "name": "customer_shipping_address_state",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "State, county, province, or region (ISO 3166-2)."
        },
        {
          "name": "customer_shipping_name",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "Customer name."
        },
        {
          "name": "customer_shipping_phone",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "Customer phone (including extension)."
        },
        {
          "name": "customer_tax_exempt",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The customer's tax exempt status. Until the invoice is finalized, this field will equal customer.tax_exempt. Once the invoice is finalized, this field will no longer be updated."
        },
        {
          "name": "date",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
        },
        {
          "name": "default_payment_method_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "ID of the default payment method for the invoice. It must belong to the customer associated with the invoice. If not set, defaults to the subscription's default payment method, if any, or to the default payment method in the customer's invoice settings.",
          "key": "foreign"
        },
        {
          "name": "description",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "An arbitrary string attached to the object. Often useful for displaying to users. Referenced as 'memo' in the Dashboard."
        },
        {
          "name": "discount_checkout_session",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The Checkout session that this coupon is applied to, if it is applied to a particular session in payment mode. Not present for subscription mode."
        },
        {
          "name": "discount_coupon_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "Unique identifier for the object.",
          "key": "foreign"
        },
        {
          "name": "discount_customer_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "The ID of the customer associated with this discount.",
          "key": "foreign"
        },
        {
          "name": "discount_end",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": "If the coupon has a duration of repeating, the date that this discount will end. If the coupon has a duration of once or forever, this attribute will be null."
        },
        {
          "name": "discount_invoice",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The invoice that the discount's coupon was applied to, if it was applied directly to a particular invoice."
        },
        {
          "name": "discount_invoice_item",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The invoice item id (or invoice line item id for invoice line items of type='subscription') that the discount's coupon was applied to, if it was applied directly to a particular invoice item or invoice line item."
        },
        {
          "name": "discount_promotion_code_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The promotion code applied to create this discount."
        },
        {
          "name": "discount_schedule_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "The subscription schedule that this coupon is applied to, if it is applied to a particular subscription schedule.",
          "key": "foreign"
        },
        {
          "name": "discount_start",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": "Date that the coupon was applied."
        },
        {
          "name": "discount_subscription",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The subscription that this coupon is applied to, if it is applied to a particular subscription."
        },
        {
          "name": "discount_subscription_item",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The subscription item that this coupon is applied to, if it is applied to a particular subscription item."
        },
        {
          "name": "discounts",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The discounts applied to the invoice. Line item discounts are applied before invoice discounts. Use expand[]=discounts to expand each discount."
        },
        {
          "name": "due_date",
          "type": "timestamp",
          "description": "The date on which payment for this invoice is due. This value will be null for invoices where collection_method=charge_automatically.",
          "confidence": "verified",
          "raw_type": "timestamp"
        },
        {
          "name": "effective_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": "The date when this invoice is in effect. Same as finalized_at unless overwritten. When defined, this value replaces the system-generated 'Date of issue' printed on the invoice PDF and receipt."
        },
        {
          "name": "ending_balance",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "footer",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "Footer displayed on the invoice."
        },
        {
          "name": "next_payment_attempt",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": "The time at which payment will next be attempted. This value will be null for invoices where collection_method=send_invoice."
        },
        {
          "name": "number",
          "type": "varchar",
          "description": "A unique, identifying string that appears on emails sent to the customer for this invoice. This starts with the customer's unique invoice_prefix if it is specified.",
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "on_behalf_of_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "The account (if any) for which the funds of the invoice payment are intended. If set, the invoice will be presented with the branding and support information of the specified account. See the Invoices with Connect documentation for details.",
          "key": "foreign"
        },
        {
          "name": "paid",
          "type": "boolean",
          "description": "Whether payment was successfully collected for this invoice. An invoice can be paid (most commonly) with a charge or with credit from the customer's account balance.",
          "confidence": "verified",
          "raw_type": "boolean"
        },
        {
          "name": "paid_out_of_band",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": "Returns true if the invoice was manually marked paid, returns false if the invoice hasn't been paid yet or was paid on Stripe."
        },
        {
          "name": "parent_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The ID of the parent that generated the invoice."
        },
        {
          "name": "parent_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The parent type of the invoice. Possible values: billing_cadence, subscription, quote, schedule.",
          "enum": [
            "billing_cadence",
            "subscription",
            "quote",
            "schedule"
          ]
        },
        {
          "name": "period_end",
          "type": "timestamp",
          "description": "The latest timestamp at which invoice items can be associated with this invoice. Use the line item period to get the service period for each price.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-billing-data.md"
          ],
          "raw_type": "timestamp"
        },
        {
          "name": "period_start",
          "type": "timestamp",
          "description": "The earliest timestamp at which invoice items can be associated with this invoice. Use the line item period to get the service period for each price.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-billing-data.md"
          ],
          "raw_type": "timestamp"
        },
        {
          "name": "post_payment_credit_notes_amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": "Total amount of all post-payment credit notes issued for this invoice."
        },
        {
          "name": "pre_payment_credit_notes_amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": "Total amount of all pre-payment credit notes issued for this invoice."
        },
        {
          "name": "quote_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "The quote this invoice was generated from.",
          "key": "foreign"
        },
        {
          "name": "receipt_number",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "This is the transaction number that appears on email receipts sent for this invoice."
        },
        {
          "name": "shipping_cost_amount_subtotal",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": "Total shipping cost before any taxes are applied."
        },
        {
          "name": "shipping_cost_amount_tax",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": "Total tax amount applied due to shipping costs. If no tax was applied, defaults to 0."
        },
        {
          "name": "shipping_cost_amount_total",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": "Total shipping cost after taxes are applied."
        },
        {
          "name": "shipping_cost_shipping_rate_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The ID of the ShippingRate for this invoice."
        },
        {
          "name": "shipping_details_address_city",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "City, district, suburb, town, or village."
        },
        {
          "name": "shipping_details_address_country",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "Two-letter country code (ISO 3166-1 alpha-2)."
        },
        {
          "name": "shipping_details_address_line1",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "Address line 1, such as the street, PO Box, or company name."
        },
        {
          "name": "shipping_details_address_line2",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "Address line 2, such as the apartment, suite, unit, or building."
        },
        {
          "name": "shipping_details_address_postal_code",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "ZIP or postal code."
        },
        {
          "name": "shipping_details_address_state",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "State, county, province, or region (ISO 3166-2)."
        },
        {
          "name": "shipping_details_name",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "Recipient name."
        },
        {
          "name": "shipping_details_phone",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "Recipient phone (including extension)."
        },
        {
          "name": "starting_balance",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": "Starting customer balance before the invoice is finalized. If the invoice has not been finalized yet, this will be the current customer balance."
        },
        {
          "name": "statement_descriptor",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "Extra information about an invoice for the customer's credit card statement."
        },
        {
          "name": "status",
          "type": "varchar",
          "description": "The status of the invoice, one of draft, open, paid, uncollectible, or void. Learn more",
          "enum": [
            "draft",
            "open",
            "paid",
            "uncollectible",
            "void"
          ],
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "status_transitions_finalized_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": "The time that the invoice draft was finalized."
        },
        {
          "name": "status_transitions_marked_uncollectible_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": "The time that the invoice was marked uncollectible."
        },
        {
          "name": "status_transitions_paid_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": "The time that the invoice was paid."
        },
        {
          "name": "status_transitions_voided_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": "The time that the invoice was voided."
        },
        {
          "name": "subscription_id",
          "type": "varchar",
          "key": "foreign",
          "description": "The subscription that this invoice was prepared for, if any.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-billing-data.md"
          ]
        },
        {
          "name": "subscription_proration_date",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": "Only set for upcoming invoices that preview prorations. The time used to calculate prorations."
        },
        {
          "name": "subtotal",
          "type": "bigint",
          "description": "Total of all subscriptions, invoice items, and prorations on the invoice before any invoice level discount or exclusive tax is applied. Item discounts are already incorporated",
          "confidence": "verified",
          "raw_type": "bigint"
        },
        {
          "name": "tax",
          "type": "bigint",
          "description": "The amount of tax on this invoice. This is the sum of all the tax amounts on this invoice.",
          "confidence": "verified",
          "raw_type": "bigint"
        },
        {
          "name": "tax_percent",
          "type": "double",
          "confidence": "verified",
          "raw_type": "double",
          "description": "This percentage of the subtotal has been added to the total amount of the invoice, including invoice line items and discounts. This field is inherited from the subscription's tax_percent field, but can be changed before the invoice is paid. This field defaults to null."
        },
        {
          "name": "total",
          "type": "bigint",
          "description": "Total after discounts and taxes.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-tax-data.md"
          ],
          "raw_type": "bigint"
        },
        {
          "name": "transfer_data_amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": "The amount in cents that will be transferred to the destination account when the invoice is paid. By default, the entire amount is transferred to the destination."
        },
        {
          "name": "transfer_data_destination_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "The account where funds from the payment will be transferred to upon payment success.",
          "key": "foreign"
        },
        {
          "name": "webhooks_delivered_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": "Invoices are automatically paid or sent 1 hour after webhooks are delivered, or until all webhook delivery attempts have been exhausted. This field tracks the time when webhooks for this invoice were successfully delivered. If the invoice had no webhooks to deliver, this will be set while the invoice is being created."
        }
      ],
      "foreign_keys": [
        {
          "columns": [
            "customer_id"
          ],
          "references": {
            "table": "customers",
            "columns": [
              "id"
            ]
          }
        },
        {
          "columns": [
            "subscription_id"
          ],
          "references": {
            "table": "subscriptions",
            "columns": [
              "id"
            ]
          },
          "confidence": "documented"
        },
        {
          "columns": [
            "charge_id"
          ],
          "references": {
            "table": "charges",
            "columns": [
              "id"
            ]
          },
          "confidence": "documented"
        },
        {
          "columns": [
            "quote_id"
          ],
          "references": {
            "table": "quotes",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        }
      ],
      "notes": [
        "period_start/period_end describe the service period, which often differs from created. Use the right one for revenue reporting."
      ],
      "verified_against_account": true
    },
    {
      "name": "invoices_metadata",
      "dataset": "billing",
      "source": "api_backed",
      "freshness_hours": 3,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Metadata key/value pairs set on invoices. One row per (object, metadata key) pair. Objects with no metadata have no rows.",
      "grain": "One row per (object, metadata key) pair. Objects with no metadata have no rows.",
      "primary_key": [
        "key"
      ],
      "columns": [
        {
          "name": "invoice_id",
          "type": "varchar",
          "key": "foreign",
          "description": "References the id column of the parent object table.",
          "confidence": "verified"
        },
        {
          "name": "key",
          "type": "varchar",
          "description": "The metadata key set on the object.",
          "confidence": "verified",
          "key": "primary"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "value",
          "type": "varchar",
          "description": "The metadata value for that key. Always a string, even when it holds a number or boolean.",
          "confidence": "verified",
          "raw_type": "varchar"
        }
      ],
      "columns_complete": true,
      "foreign_keys": [
        {
          "columns": [
            "invoice_id"
          ],
          "references": {
            "table": "invoices",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        }
      ],
      "notes": [
        "Values are always strings, even when they hold numbers or booleans.",
        "Pivot to columns with: select invoice_id, map_agg(key, value) as md from invoices_metadata group by 1"
      ],
      "derived_from_convention": "metadata_tables",
      "verified_against_account": true
    },
    {
      "name": "issuing_authorizations",
      "dataset": "issuing",
      "source": "api_backed",
      "freshness_hours": 3,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Authorization requests created whenever an issued card is used. Includes declined attempts.",
      "grain": "One row per authorization.",
      "primary_key": [
        "id"
      ],
      "columns_complete": true,
      "columns": [
        {
          "name": "id",
          "type": "varchar",
          "key": "primary",
          "description": "Unique identifier, prefixed iauth_.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-issuing-data.md"
          ]
        },
        {
          "name": "amount",
          "type": "bigint",
          "description": "Authorized amount in minor currency units.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-issuing-data.md"
          ],
          "raw_type": "bigint"
        },
        {
          "name": "approved",
          "type": "boolean",
          "description": "Whether the authorization was approved.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-issuing-data.md"
          ],
          "raw_type": "boolean"
        },
        {
          "name": "authorization_method",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "card_id",
          "type": "varchar",
          "key": "foreign",
          "description": "Card used for the purchase.",
          "confidence": "verified"
        },
        {
          "name": "created",
          "type": "timestamp",
          "description": "When the authorization was requested (UTC).",
          "confidence": "verified",
          "doc_sources": [
            "data_query-issuing-data.md"
          ],
          "raw_type": "timestamp"
        },
        {
          "name": "currency",
          "type": "varchar",
          "description": "Three-letter ISO currency code, lowercase.",
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "fraud_disputability_likelihood",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "merchant_amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "merchant_currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "merchant_data_category",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "merchant_data_category_code",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "merchant_data_city",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "merchant_data_country",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "merchant_data_name",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "merchant_data_network_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "merchant_data_postal_code",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "merchant_data_state",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "network_data_acquiring_institution_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "risk_assessment_card_testing_risk_invalid_account_number_decline_rate_past_hour",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "risk_assessment_card_testing_risk_invalid_credentials_decline_rate_past_hour",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "risk_assessment_card_testing_risk_level",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "risk_assessment_fraud_risk_level",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "risk_assessment_fraud_risk_score",
          "type": "double",
          "confidence": "verified",
          "raw_type": "double",
          "description": ""
        },
        {
          "name": "risk_assessment_merchant_dispute_risk_dispute_rate",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "risk_assessment_merchant_dispute_risk_level",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "status",
          "type": "varchar",
          "description": "Authorization status.",
          "enum": [
            "pending",
            "closed",
            "reversed",
            "expired"
          ],
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "verification_data_address_line1_check",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "verification_data_address_postal_code_check",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "verification_data_cvc_check",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "verification_data_expiry_check",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "verification_data_postal_code",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "wallet",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        }
      ],
      "foreign_keys": [
        {
          "columns": [
            "card_id"
          ],
          "references": {
            "table": "issuing_cards",
            "columns": [
              "id"
            ]
          },
          "confidence": "documented"
        }
      ],
      "notes": [
        "The API's request_history field is not available in Sigma."
      ],
      "verified_against_account": true
    },
    {
      "name": "issuing_authorizations_metadata",
      "dataset": "issuing",
      "source": "api_backed",
      "freshness_hours": 3,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Metadata key/value pairs set on issuing_authorizations. One row per (object, metadata key) pair. Objects with no metadata have no rows.",
      "grain": "One row per (object, metadata key) pair. Objects with no metadata have no rows.",
      "primary_key": [
        "key"
      ],
      "columns": [
        {
          "name": "issuing_authorization_id",
          "type": "varchar",
          "key": "foreign",
          "description": "References the id column of the parent object table.",
          "confidence": "verified"
        },
        {
          "name": "key",
          "type": "varchar",
          "description": "The metadata key set on the object.",
          "confidence": "verified",
          "key": "primary"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "value",
          "type": "varchar",
          "description": "The metadata value for that key. Always a string, even when it holds a number or boolean.",
          "confidence": "verified",
          "raw_type": "varchar"
        }
      ],
      "columns_complete": true,
      "foreign_keys": [
        {
          "columns": [
            "issuing_authorization_id"
          ],
          "references": {
            "table": "issuing_authorizations",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        }
      ],
      "notes": [
        "Values are always strings, even when they hold numbers or booleans.",
        "Pivot to columns with: select issuing_authorization_id, map_agg(key, value) as md from issuing_authorizations_metadata group by 1"
      ],
      "derived_from_convention": "metadata_tables",
      "verified_against_account": true
    },
    {
      "name": "issuing_authorizations_request_history",
      "dataset": "unclassified",
      "source": "api_backed",
      "freshness_hours": null,
      "preview": false,
      "listed_in_stripe_freshness_table": false,
      "description": "",
      "grain": "",
      "primary_key": [],
      "foreign_keys": [
        {
          "columns": [
            "issuing_authorization_id"
          ],
          "references": {
            "table": "issuing_authorizations",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        }
      ],
      "notes": [],
      "columns": [
        {
          "name": "issuing_authorization_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "amount_details_atm_fee",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "amount_details_cashback_amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "approved",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": ""
        },
        {
          "name": "authorization_code",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "created",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "merchant_amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "merchant_currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "network_risk_score",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "reason",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "reason_message",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "requested_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "issuing_cardholders",
      "dataset": "issuing",
      "source": "api_backed",
      "freshness_hours": 3,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "People or businesses that hold cards you have issued.",
      "grain": "One row per cardholder.",
      "primary_key": [
        "id"
      ],
      "columns_complete": true,
      "columns": [
        {
          "name": "id",
          "type": "varchar",
          "key": "primary",
          "description": "Unique identifier, prefixed ich_.",
          "confidence": "verified"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "billing_address_city",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "billing_address_country",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "billing_address_line1",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "billing_address_line2",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "billing_address_postal_code",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "billing_address_state",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "company_tax_id_provided",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": ""
        },
        {
          "name": "created",
          "type": "timestamp",
          "description": "When the cardholder was created (UTC).",
          "confidence": "verified",
          "doc_sources": [
            "data_query-issuing-data.md"
          ],
          "raw_type": "timestamp"
        },
        {
          "name": "email",
          "type": "varchar",
          "description": "Cardholder email address.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-issuing-data.md"
          ],
          "raw_type": "varchar"
        },
        {
          "name": "individual_dob_day",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "individual_dob_month",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "individual_dob_year",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "individual_first_name",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "individual_last_name",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "individual_verification_document_back_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "individual_verification_document_front_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "name",
          "type": "varchar",
          "description": "Cardholder name.",
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "phone_number",
          "type": "varchar",
          "description": "Cardholder phone number.",
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "requirements_disabled_reason",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "requirements_past_due",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "status",
          "type": "varchar",
          "description": "Cardholder status.",
          "enum": [
            "active",
            "inactive",
            "blocked"
          ],
          "confidence": "verified",
          "doc_sources": [
            "data_query-issuing-data.md"
          ],
          "raw_type": "varchar"
        },
        {
          "name": "type",
          "type": "varchar",
          "description": "Cardholder type.",
          "enum": [
            "individual",
            "company"
          ],
          "confidence": "verified",
          "doc_sources": [
            "data_query-issuing-data.md"
          ],
          "raw_type": "varchar"
        }
      ],
      "notes": [
        "Documented examples show a 'business_entity' value for type alongside 'individual'; the API uses 'company'. Verify against your own data before filtering."
      ],
      "foreign_keys": [],
      "verified_against_account": true
    },
    {
      "name": "issuing_cardholders_metadata",
      "dataset": "issuing",
      "source": "api_backed",
      "freshness_hours": 3,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Metadata key/value pairs set on issuing_cardholders. One row per (object, metadata key) pair. Objects with no metadata have no rows.",
      "grain": "One row per (object, metadata key) pair. Objects with no metadata have no rows.",
      "primary_key": [
        "key"
      ],
      "columns": [
        {
          "name": "issuing_cardholder_id",
          "type": "varchar",
          "key": "foreign",
          "description": "References the id column of the parent object table.",
          "confidence": "verified"
        },
        {
          "name": "key",
          "type": "varchar",
          "description": "The metadata key set on the object.",
          "confidence": "verified",
          "key": "primary"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "value",
          "type": "varchar",
          "description": "The metadata value for that key. Always a string, even when it holds a number or boolean.",
          "confidence": "verified",
          "raw_type": "varchar"
        }
      ],
      "columns_complete": true,
      "foreign_keys": [
        {
          "columns": [
            "issuing_cardholder_id"
          ],
          "references": {
            "table": "issuing_cardholders",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        }
      ],
      "notes": [
        "Values are always strings, even when they hold numbers or booleans.",
        "Pivot to columns with: select issuing_cardholder_id, map_agg(key, value) as md from issuing_cardholders_metadata group by 1"
      ],
      "derived_from_convention": "metadata_tables",
      "verified_against_account": true
    },
    {
      "name": "issuing_cards",
      "dataset": "issuing",
      "source": "api_backed",
      "freshness_hours": 3,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Cards you have issued.",
      "grain": "One row per issued card.",
      "primary_key": [
        "id"
      ],
      "columns_complete": true,
      "columns": [
        {
          "name": "id",
          "type": "varchar",
          "key": "primary",
          "description": "Unique identifier, prefixed ic_.",
          "confidence": "verified"
        },
        {
          "name": "allowed_authorization_period_ends_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "allowed_authorization_period_starts_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "brand",
          "type": "varchar",
          "description": "Card brand.",
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "cancellation_reason",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "cardholder_id",
          "type": "varchar",
          "key": "foreign",
          "description": "Cardholder the card belongs to.",
          "confidence": "verified"
        },
        {
          "name": "created",
          "type": "timestamp",
          "description": "When the card was created (UTC).",
          "confidence": "verified",
          "raw_type": "timestamp"
        },
        {
          "name": "currency",
          "type": "varchar",
          "description": "Currency the card transacts in.",
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "exp_month",
          "type": "bigint",
          "description": "Expiry month.",
          "confidence": "verified",
          "raw_type": "bigint"
        },
        {
          "name": "exp_year",
          "type": "bigint",
          "description": "Expiry year.",
          "confidence": "verified",
          "raw_type": "bigint"
        },
        {
          "name": "last4",
          "type": "varchar",
          "description": "Last four digits of the card number.",
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "latest_fraud_warning_started_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "latest_fraud_warning_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "lifecycle_controls_cancel_after_payment_count",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "mcc_groups_allowed_categories",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "mcc_groups_blocked_categories",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "personalization_design_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "program_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "replaced_by_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "replacement_for_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "shipping_address_city",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "shipping_address_country",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "shipping_address_line1",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "shipping_address_line2",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "shipping_address_postal_code",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "shipping_address_state",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "shipping_address_validation_mode",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "shipping_address_validation_normalized_address_city",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "shipping_address_validation_normalized_address_country",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "shipping_address_validation_normalized_address_line1",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "shipping_address_validation_normalized_address_line2",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "shipping_address_validation_normalized_address_postal_code",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "shipping_address_validation_normalized_address_state",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "shipping_address_validation_result",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "shipping_carrier",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "shipping_eta",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "shipping_name",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "shipping_service",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "shipping_status",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "shipping_tracking_number",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "shipping_tracking_url",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "shipping_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "spending_limits",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "status",
          "type": "varchar",
          "description": "Card status.",
          "enum": [
            "active",
            "inactive",
            "canceled"
          ],
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "type",
          "type": "varchar",
          "description": "Card form factor.",
          "enum": [
            "physical",
            "virtual"
          ],
          "confidence": "verified",
          "raw_type": "varchar"
        }
      ],
      "foreign_keys": [
        {
          "columns": [
            "cardholder_id"
          ],
          "references": {
            "table": "issuing_cardholders",
            "columns": [
              "id"
            ]
          },
          "confidence": "documented"
        }
      ],
      "notes": [
        "The API's spending_controls field is not available in Sigma."
      ],
      "verified_against_account": true
    },
    {
      "name": "issuing_cards_metadata",
      "dataset": "issuing",
      "source": "api_backed",
      "freshness_hours": 3,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Metadata key/value pairs set on issuing_cards. One row per (object, metadata key) pair. Objects with no metadata have no rows.",
      "grain": "One row per (object, metadata key) pair. Objects with no metadata have no rows.",
      "primary_key": [
        "key"
      ],
      "columns": [
        {
          "name": "issuing_card_id",
          "type": "varchar",
          "key": "foreign",
          "description": "References the id column of the parent object table.",
          "confidence": "verified"
        },
        {
          "name": "key",
          "type": "varchar",
          "description": "The metadata key set on the object.",
          "confidence": "verified",
          "key": "primary"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "value",
          "type": "varchar",
          "description": "The metadata value for that key. Always a string, even when it holds a number or boolean.",
          "confidence": "verified",
          "raw_type": "varchar"
        }
      ],
      "columns_complete": true,
      "foreign_keys": [
        {
          "columns": [
            "issuing_card_id"
          ],
          "references": {
            "table": "issuing_cards",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        }
      ],
      "notes": [
        "Values are always strings, even when they hold numbers or booleans.",
        "Pivot to columns with: select issuing_card_id, map_agg(key, value) as md from issuing_cards_metadata group by 1"
      ],
      "derived_from_convention": "metadata_tables",
      "verified_against_account": true
    },
    {
      "name": "issuing_credit_ledger_adjustments",
      "dataset": "unclassified",
      "source": "api_backed",
      "freshness_hours": null,
      "preview": false,
      "listed_in_stripe_freshness_table": false,
      "description": "",
      "grain": "",
      "primary_key": [
        "id"
      ],
      "foreign_keys": [],
      "notes": [],
      "columns": [
        {
          "name": "id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "created",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "livemode",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": ""
        },
        {
          "name": "merchant",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "reason",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "reason_description",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "issuing_credit_ledger_entries",
      "dataset": "unclassified",
      "source": "api_backed",
      "freshness_hours": null,
      "preview": false,
      "listed_in_stripe_freshness_table": false,
      "description": "",
      "grain": "",
      "primary_key": [
        "id"
      ],
      "foreign_keys": [],
      "notes": [],
      "columns": [
        {
          "name": "id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "created",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "livemode",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": ""
        },
        {
          "name": "source_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "source_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "issuing_credit_policies",
      "dataset": "unclassified",
      "source": "api_backed",
      "freshness_hours": null,
      "preview": false,
      "listed_in_stripe_freshness_table": false,
      "description": "",
      "grain": "",
      "primary_key": [
        "id"
      ],
      "foreign_keys": [],
      "notes": [],
      "columns": [
        {
          "name": "id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "created",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "credit_limit_amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "credit_limit_currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "credit_period_ends_on_days",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "credit_period_interval",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "credit_period_interval_count",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "days_until_due",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "last_effective_attributes_credit_limit_amount_amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "last_effective_attributes_credit_limit_amount_currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "last_effective_attributes_credit_period_ends_on_days",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "last_effective_attributes_credit_period_interval",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "last_effective_attributes_credit_period_interval_count",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "last_effective_attributes_effective_until",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "livemode",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": ""
        },
        {
          "name": "status",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "upcoming_attributes_credit_limit_amount_amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "upcoming_attributes_credit_limit_amount_currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "upcoming_attributes_credit_period_ends_on_days",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "upcoming_attributes_credit_period_interval",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "upcoming_attributes_credit_period_interval_count",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "upcoming_attributes_effective_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "issuing_credit_policy_archive",
      "dataset": "unclassified",
      "source": "api_backed",
      "freshness_hours": null,
      "preview": false,
      "listed_in_stripe_freshness_table": false,
      "description": "",
      "grain": "",
      "primary_key": [
        "id"
      ],
      "foreign_keys": [],
      "notes": [],
      "columns": [
        {
          "name": "id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "created",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "credit_limit_amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "credit_limit_currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "credit_period_ends_on_days",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "credit_period_interval",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "credit_period_interval_count",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "credit_policy_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "days_until_due",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "last_effective_attributes_credit_limit_amount_amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "last_effective_attributes_credit_limit_amount_currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "last_effective_attributes_credit_period_ends_on_days",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "last_effective_attributes_credit_period_interval",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "last_effective_attributes_credit_period_interval_count",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "last_effective_attributes_effective_until",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "livemode",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": ""
        },
        {
          "name": "status",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "upcoming_attributes_credit_limit_amount_amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "upcoming_attributes_credit_limit_amount_currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "upcoming_attributes_credit_period_ends_on_days",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "upcoming_attributes_credit_period_interval",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "upcoming_attributes_credit_period_interval_count",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "upcoming_attributes_effective_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "issuing_credit_repayments",
      "dataset": "unclassified",
      "source": "api_backed",
      "freshness_hours": null,
      "preview": false,
      "listed_in_stripe_freshness_table": false,
      "description": "",
      "grain": "",
      "primary_key": [
        "id"
      ],
      "foreign_keys": [],
      "notes": [],
      "columns": [
        {
          "name": "id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "allocation_fees",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "allocation_interest",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "allocation_principal",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "balance_transaction_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "connected_account",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "created",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "credit_statement_descriptor",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "destination",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "destination_balance_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "failure_balance_transaction_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "merchant",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "status",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "status_transitions_canceled_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "status_transitions_failed_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "status_transitions_processing_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "status_transitions_reversed_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "status_transitions_succeeded_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "issuing_credit_underwriting_records",
      "dataset": "unclassified",
      "source": "api_backed",
      "freshness_hours": null,
      "preview": false,
      "listed_in_stripe_freshness_table": false,
      "description": "",
      "grain": "",
      "primary_key": [
        "id"
      ],
      "foreign_keys": [],
      "notes": [],
      "columns": [
        {
          "name": "id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "application_application_method",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "application_purpose",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "application_submitted_at",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "created",
          "type": "double",
          "confidence": "verified",
          "raw_type": "double",
          "description": ""
        },
        {
          "name": "created_from",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "credit_user_email",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "credit_user_name",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "decided_at",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "decision_application_rejected_reason_other_explanation",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "decision_application_rejected_reasons",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "decision_credit_limit_approved_amount_amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "decision_credit_limit_approved_amount_currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "decision_credit_limit_decreased_amount_amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "decision_credit_limit_decreased_amount_currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "decision_credit_limit_decreased_reasons",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "decision_credit_line_closed_reasons",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "decision_deadline",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "decision_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "livemode",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": ""
        },
        {
          "name": "merchant",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "regulatory_reporting_file",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "underwriting_exception_reason",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "issuing_credit_underwriting_records_metadata",
      "dataset": "unclassified",
      "source": "api_backed",
      "freshness_hours": null,
      "preview": false,
      "listed_in_stripe_freshness_table": false,
      "description": "",
      "grain": "",
      "primary_key": [
        "credit_underwriting_record_id",
        "key"
      ],
      "foreign_keys": [],
      "notes": [],
      "columns": [
        {
          "name": "credit_underwriting_record_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "key",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "value",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "issuing_disputes",
      "dataset": "issuing",
      "source": "api_backed",
      "freshness_hours": 3,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Disputes you filed on behalf of cardholders against merchants.",
      "grain": "One row per issuing dispute.",
      "primary_key": [
        "id"
      ],
      "columns": [
        {
          "name": "id",
          "type": "varchar",
          "key": "primary",
          "description": "Unique identifier, prefixed idp_.",
          "confidence": "verified"
        },
        {
          "name": "amount",
          "type": "double",
          "description": "Disputed amount in minor currency units.",
          "confidence": "verified",
          "raw_type": "double"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "card",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "cardholder",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "created",
          "type": "double",
          "description": "When the dispute was created (UTC).",
          "confidence": "verified",
          "raw_type": "double"
        },
        {
          "name": "currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "evidence_additional_documentation",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "evidence_canceled_at",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "evidence_cancellation_policy_provided",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": ""
        },
        {
          "name": "evidence_cancellation_reason",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "evidence_card_statement",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "evidence_cash_receipt",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "evidence_check_image",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "evidence_expected_at",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "evidence_explanation",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "evidence_original_transaction",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "evidence_product_description",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "evidence_product_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "evidence_received_at",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "evidence_return_description",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "evidence_return_status",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "evidence_returned_at",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "internal_reason",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "loss_reason",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "merchant",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "reason",
          "type": "varchar",
          "description": "Reason for the dispute.",
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "status",
          "type": "varchar",
          "description": "Dispute status.",
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "transaction",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "updated",
          "type": "double",
          "confidence": "verified",
          "raw_type": "double",
          "description": ""
        }
      ],
      "foreign_keys": [],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "issuing_disputes_metadata",
      "dataset": "unclassified",
      "source": "api_backed",
      "freshness_hours": null,
      "preview": false,
      "listed_in_stripe_freshness_table": false,
      "description": "",
      "grain": "",
      "primary_key": [
        "dispute_id",
        "key"
      ],
      "foreign_keys": [],
      "notes": [],
      "columns": [
        {
          "name": "dispute_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "key",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "value",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "issuing_funding_obligations",
      "dataset": "unclassified",
      "source": "api_backed",
      "freshness_hours": null,
      "preview": false,
      "listed_in_stripe_freshness_table": false,
      "description": "",
      "grain": "",
      "primary_key": [
        "id"
      ],
      "foreign_keys": [],
      "notes": [],
      "columns": [
        {
          "name": "id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "amount_outstanding",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "amount_paid",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "amount_paid_from_reserve",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "amount_total",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "balance_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "created",
          "type": "double",
          "confidence": "verified",
          "raw_type": "double",
          "description": ""
        },
        {
          "name": "credit_period_ends_at",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "credit_period_starts_at",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "due_at",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "finalized_at",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "grace_period_ends_at",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "livemode",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": ""
        },
        {
          "name": "merchant",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "owed_to",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "paid_at",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "status",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "transaction_period_ends_at",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "transaction_period_starts_at",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "issuing_funding_obligations_metadata",
      "dataset": "unclassified",
      "source": "api_backed",
      "freshness_hours": null,
      "preview": false,
      "listed_in_stripe_freshness_table": false,
      "description": "",
      "grain": "",
      "primary_key": [
        "funding_obligation_id",
        "key"
      ],
      "foreign_keys": [],
      "notes": [],
      "columns": [
        {
          "name": "funding_obligation_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "key",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "value",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "issuing_network_tokens",
      "dataset": "issuing",
      "source": "api_backed",
      "freshness_hours": 3,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Network tokens provisioned for issued cards, such as those created when a card is added to a mobile wallet.",
      "grain": "One row per network token.",
      "primary_key": [
        "id"
      ],
      "columns": [
        {
          "name": "id",
          "type": "varchar",
          "key": "primary",
          "description": "Unique identifier for the token.",
          "confidence": "verified"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "card",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "created",
          "type": "double",
          "description": "When the token was provisioned (UTC).",
          "confidence": "verified",
          "raw_type": "double"
        },
        {
          "name": "device_fingerprint",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "last4",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "merchant",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "network",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "network_updated_at",
          "type": "double",
          "confidence": "verified",
          "raw_type": "double",
          "description": ""
        },
        {
          "name": "status",
          "type": "varchar",
          "description": "Token status.",
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "wallet_provider",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        }
      ],
      "foreign_keys": [],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "issuing_personalization_designs",
      "dataset": "unclassified",
      "source": "api_backed",
      "freshness_hours": null,
      "preview": false,
      "listed_in_stripe_freshness_table": false,
      "description": "",
      "grain": "",
      "primary_key": [
        "id"
      ],
      "foreign_keys": [],
      "notes": [],
      "columns": [
        {
          "name": "id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "card_logo",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "carrier_text_footer_body",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "carrier_text_footer_title",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "carrier_text_header_body",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "carrier_text_header_title",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "created",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "livemode",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": ""
        },
        {
          "name": "lookup_key",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "name",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "physical_bundle",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "preferences_is_default",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": ""
        },
        {
          "name": "preferences_is_platform_default",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": ""
        },
        {
          "name": "rejection_reasons_card_logo",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "rejection_reasons_carrier_text",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "status",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "issuing_personalization_designs_metadata",
      "dataset": "unclassified",
      "source": "api_backed",
      "freshness_hours": null,
      "preview": false,
      "listed_in_stripe_freshness_table": false,
      "description": "",
      "grain": "",
      "primary_key": [
        "card_design_id",
        "key"
      ],
      "foreign_keys": [],
      "notes": [],
      "columns": [
        {
          "name": "card_design_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "key",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "value",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "issuing_programs",
      "dataset": "unclassified",
      "source": "api_backed",
      "freshness_hours": null,
      "preview": false,
      "listed_in_stripe_freshness_table": false,
      "description": "",
      "grain": "",
      "primary_key": [
        "id"
      ],
      "foreign_keys": [],
      "notes": [],
      "columns": [
        {
          "name": "id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "created",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "is_default",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": ""
        },
        {
          "name": "platform_program_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "issuing_programs_metadata",
      "dataset": "unclassified",
      "source": "api_backed",
      "freshness_hours": null,
      "preview": false,
      "listed_in_stripe_freshness_table": false,
      "description": "",
      "grain": "",
      "primary_key": [
        "key"
      ],
      "foreign_keys": [
        {
          "columns": [
            "issuing_program_id"
          ],
          "references": {
            "table": "issuing_programs",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        }
      ],
      "notes": [],
      "columns": [
        {
          "name": "issuing_program_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "key",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "value",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "issuing_transaction_amount_details_tax",
      "dataset": "unclassified",
      "source": "api_backed",
      "freshness_hours": null,
      "preview": false,
      "listed_in_stripe_freshness_table": false,
      "description": "",
      "grain": "",
      "primary_key": [],
      "foreign_keys": [
        {
          "columns": [
            "issuing_transaction_id"
          ],
          "references": {
            "table": "issuing_transactions",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        }
      ],
      "notes": [],
      "columns": [
        {
          "name": "issuing_transaction_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "behavior",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "jurisdiction",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "issuing_transactions",
      "dataset": "issuing",
      "source": "api_backed",
      "freshness_hours": 3,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Uses of an issued card that actually moved funds, such as completed purchases and refunds.",
      "grain": "One row per issuing transaction.",
      "primary_key": [
        "id"
      ],
      "columns_complete": true,
      "columns": [
        {
          "name": "id",
          "type": "varchar",
          "key": "primary",
          "description": "Unique identifier, prefixed ipi_.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-issuing-data.md"
          ]
        },
        {
          "name": "amount",
          "type": "bigint",
          "description": "Amount in minor currency units. Negative for captures (money leaving your account).",
          "confidence": "verified",
          "doc_sources": [
            "data_query-issuing-data.md"
          ],
          "raw_type": "bigint"
        },
        {
          "name": "authorization_id",
          "type": "varchar",
          "key": "foreign",
          "description": "Authorization this transaction settles. Empty for force captures and some refunds.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-issuing-data.md"
          ]
        },
        {
          "name": "balance_transaction_id",
          "type": "varchar",
          "key": "foreign",
          "description": "Balance transaction recording the effect on your balance, including fees.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-issuing-data.md"
          ]
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "card_id",
          "type": "varchar",
          "key": "foreign",
          "description": "Card involved in the transaction.",
          "confidence": "verified"
        },
        {
          "name": "cardholder_id",
          "type": "varchar",
          "key": "foreign",
          "description": "Cardholder involved in the transaction.",
          "confidence": "verified"
        },
        {
          "name": "created",
          "type": "timestamp",
          "description": "When the transaction occurred (UTC).",
          "confidence": "verified",
          "doc_sources": [
            "data_query-issuing-data.md"
          ],
          "raw_type": "timestamp"
        },
        {
          "name": "currency",
          "type": "varchar",
          "description": "Three-letter ISO currency code, lowercase.",
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "interchange_amount_decimal",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "interchange_enhanced_data_interchange_amount_decimal",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "interchange_enhanced_data_interchange_received_on",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "merchant_amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "merchant_currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "merchant_data_category",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "merchant_data_category_code",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "merchant_data_city",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "merchant_data_country",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "merchant_data_name",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "merchant_data_network_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "merchant_data_postal_code",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "merchant_data_state",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "network_data_authorization_code",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "network_data_processing_date",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "network_data_transaction_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "purchase_details_flight_departure_at",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "purchase_details_flight_passenger_name",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "purchase_details_flight_refundable",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": ""
        },
        {
          "name": "purchase_details_flight_travel_agency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "purchase_details_fuel_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "purchase_details_fuel_unit",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "purchase_details_fuel_unit_cost",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "purchase_details_fuel_unit_cost_decimal",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "purchase_details_fuel_volume",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "purchase_details_fuel_volume_decimal",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "purchase_details_lodging_check_in_at",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "purchase_details_lodging_nights",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "purchase_details_reference",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "token_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "type",
          "type": "varchar",
          "description": "Transaction type.",
          "enum": [
            "capture",
            "refund"
          ],
          "confidence": "verified",
          "doc_sources": [
            "data_query-issuing-data.md"
          ],
          "raw_type": "varchar"
        }
      ],
      "foreign_keys": [
        {
          "columns": [
            "authorization_id"
          ],
          "references": {
            "table": "issuing_authorizations",
            "columns": [
              "id"
            ]
          },
          "confidence": "documented"
        },
        {
          "columns": [
            "balance_transaction_id"
          ],
          "references": {
            "table": "balance_transactions",
            "columns": [
              "id"
            ]
          },
          "confidence": "documented"
        },
        {
          "columns": [
            "card_id"
          ],
          "references": {
            "table": "issuing_cards",
            "columns": [
              "id"
            ]
          },
          "confidence": "documented"
        },
        {
          "columns": [
            "cardholder_id"
          ],
          "references": {
            "table": "issuing_cardholders",
            "columns": [
              "id"
            ]
          },
          "confidence": "documented"
        }
      ],
      "notes": [
        "amount is negative for captures, so an over-capture check compares -1 * issuing_transactions.amount against issuing_authorizations.amount.",
        "authorization_id can be empty \u2014 use a left join if you need every transaction."
      ],
      "verified_against_account": true
    },
    {
      "name": "issuing_transactions_metadata",
      "dataset": "issuing",
      "source": "api_backed",
      "freshness_hours": 3,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Metadata key/value pairs set on issuing_transactions. One row per (object, metadata key) pair. Objects with no metadata have no rows.",
      "grain": "One row per (object, metadata key) pair. Objects with no metadata have no rows.",
      "primary_key": [
        "key"
      ],
      "columns": [
        {
          "name": "issuing_transaction_id",
          "type": "varchar",
          "key": "foreign",
          "description": "References the id column of the parent object table.",
          "confidence": "verified"
        },
        {
          "name": "key",
          "type": "varchar",
          "description": "The metadata key set on the object.",
          "confidence": "verified",
          "key": "primary"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "value",
          "type": "varchar",
          "description": "The metadata value for that key. Always a string, even when it holds a number or boolean.",
          "confidence": "verified",
          "raw_type": "varchar"
        }
      ],
      "columns_complete": true,
      "foreign_keys": [
        {
          "columns": [
            "issuing_transaction_id"
          ],
          "references": {
            "table": "issuing_transactions",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        }
      ],
      "notes": [
        "Values are always strings, even when they hold numbers or booleans.",
        "Pivot to columns with: select issuing_transaction_id, map_agg(key, value) as md from issuing_transactions_metadata group by 1"
      ],
      "derived_from_convention": "metadata_tables",
      "verified_against_account": true
    },
    {
      "name": "itemized_fees",
      "dataset": "other",
      "source": "derived",
      "freshness_hours": 120,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Granular breakdown of every fee charged or deducted from your Stripe balance, one row per fee component.",
      "grain": "One row per individual fee.",
      "primary_key": [],
      "columns_complete": true,
      "columns": [
        {
          "name": "activity_end_time",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": "For fees calculated from activity spanning a period of time, this will be the activity's ending date (in UTC)."
        },
        {
          "name": "activity_start_time",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": "For fees calculated from activity spanning a period of time, this will be the activity's starting date (in UTC)."
        },
        {
          "name": "amount",
          "type": "double",
          "description": "Amount of this activity, expressed in major units of the currency.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-all-fees-data.md"
          ],
          "raw_type": "Decimal(38,18)"
        },
        {
          "name": "balance_transaction_created",
          "type": "timestamp",
          "description": "Time (in UTC) at which the balance transaction affected your Stripe balance.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-all-fees-data.md"
          ],
          "raw_type": "timestamp"
        },
        {
          "name": "balance_transaction_description",
          "type": "varchar",
          "description": "[Deprecated] The description of the balance transaction containing the fee. Use the fee_description field to get more details on the fee.",
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "balance_transaction_id",
          "type": "varchar",
          "key": "foreign",
          "description": "The ID of the balance transaction containing the fee.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-all-fees-data.md"
          ]
        },
        {
          "name": "connected_account_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "Connected Account ID",
          "key": "foreign"
        },
        {
          "name": "credit_note_number",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The number of the credit note issued in case of fee adjustments against invoices. This field will be null for non-adjustment fees."
        },
        {
          "name": "currency",
          "type": "varchar",
          "description": "Three-letter ISO code for the currency in which the amount is defined.",
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "feature_description",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "One line description of the product feature"
        },
        {
          "name": "feature_name",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The product feature the fee belongs to. For instance, Radar for Fraud Teams - transaction fee."
        },
        {
          "name": "fee_category",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "[Deprecated] Fee category where product feature description maps to. This field is no longer maintained and could have incomplete data. Use the product and suite fields instead."
        },
        {
          "name": "fee_description",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "One line fee description. Use this in place of balance_transaction_description"
        },
        {
          "name": "fee_transaction_created",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": "Time (in UTC) at which the fee transaction affected your Stripe/Credit balance."
        },
        {
          "name": "fee_transaction_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The id of the fee transaction containing the fee."
        },
        {
          "name": "incurred_at",
          "type": "timestamp",
          "description": "Time (in UTC) at which the fee was incurred, by the date of its originating event.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-all-fees-data.md"
          ],
          "raw_type": "timestamp"
        },
        {
          "name": "incurred_by",
          "type": "varchar",
          "description": "The ID of the object that incurred this fee, if any. Use the incurred_by_type field to determine the type of this object.",
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "incurred_by_type",
          "type": "varchar",
          "description": "The object type which the incurred_by references. Matches the object field in the API (charge, refund, invoice, etc).",
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "invoice_number",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The number of the invoice which was sent to invoice the Fees. This field will be null for non-invoiced fees."
        },
        {
          "name": "platform_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "Platform account ID"
        },
        {
          "name": "pricing_tier",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": "The pricing tier at which this fee was assessed."
        },
        {
          "name": "product",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The product area the fee belongs to. For instance, Radar."
        },
        {
          "name": "product_feature_description",
          "type": "varchar",
          "description": "[Deprecated] The product and feature description of the fee. This field is no longer maintained and could have incomplete data. Use the feature_name field instead.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-all-fees-data.md"
          ],
          "raw_type": "varchar"
        },
        {
          "name": "settled_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": "The column gives information on when these fees were settled. In case of Invoices, this is the invoice sent date."
        },
        {
          "name": "settled_via",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "This column gives information on how a particular fee was settled. Possible Values are credit, balance, v2_balance, invoice and multiple.",
          "enum": [
            "credit",
            "balance",
            "v2_balance",
            "invoice",
            "multiple"
          ]
        },
        {
          "name": "suite",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The product suite the fee belongs to. For instance, Payments."
        },
        {
          "name": "tax",
          "type": "double",
          "description": "Tax of this activity, expressed in major units of the currency.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-all-fees-data.md"
          ],
          "raw_type": "Decimal(38,18)"
        }
      ],
      "foreign_keys": [
        {
          "columns": [
            "balance_transaction_id"
          ],
          "references": {
            "table": "balance_transactions",
            "columns": [
              "id"
            ]
          },
          "confidence": "documented"
        },
        {
          "columns": [
            "connected_account_id"
          ],
          "references": {
            "table": "connected_accounts",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        }
      ],
      "notes": [
        "amount and tax are in MAJOR currency units here, unlike almost every other Sigma table. Do not divide by 100.",
        "Column list is complete as published by Stripe."
      ],
      "verified_against_account": true
    },
    {
      "name": "itemized_fees_beta",
      "dataset": "other",
      "source": "derived",
      "freshness_hours": 120,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Preview version of itemized_fees.",
      "grain": "One row per fee.",
      "primary_key": [],
      "mirror_of": "itemized_fees",
      "columns": [
        {
          "name": "activity_end_date",
          "type": "timestamp",
          "description": "For fees calculated from activity spanning a period of time, the activity's ending date (UTC).",
          "confidence": "documented"
        },
        {
          "name": "activity_start_date",
          "type": "timestamp",
          "description": "For fees calculated from activity spanning a period of time, the activity's starting date (UTC).",
          "confidence": "documented"
        },
        {
          "name": "amount",
          "type": "double",
          "description": "Fee incurred for this activity, expressed in MAJOR units of the currency. Excludes the tax amount.",
          "confidence": "documented",
          "doc_sources": [
            "data_query-all-fees-data.md"
          ]
        },
        {
          "name": "balance_transaction_created",
          "type": "timestamp",
          "description": "Time (in UTC) at which the balance transaction affected your Stripe balance.",
          "confidence": "documented",
          "doc_sources": [
            "data_query-all-fees-data.md"
          ]
        },
        {
          "name": "balance_transaction_description",
          "type": "varchar",
          "description": "The description of the balance transaction containing the fee.",
          "confidence": "documented"
        },
        {
          "name": "balance_transaction_id",
          "type": "varchar",
          "key": "foreign",
          "description": "The ID of the balance transaction that debited the fee from your balance.",
          "confidence": "documented",
          "doc_sources": [
            "data_query-all-fees-data.md"
          ]
        },
        {
          "name": "currency",
          "type": "varchar",
          "description": "Three-letter ISO code for the currency in which amount and tax are defined.",
          "confidence": "documented"
        },
        {
          "name": "incurred_at",
          "type": "timestamp",
          "description": "Time (in UTC) at which the fee was incurred, by the date of its originating event.",
          "confidence": "documented",
          "doc_sources": [
            "data_query-all-fees-data.md"
          ]
        },
        {
          "name": "incurred_by",
          "type": "varchar",
          "description": "The ID of the object that incurred this fee, if any. Use incurred_by_type to determine the type of this object.",
          "confidence": "documented"
        },
        {
          "name": "incurred_by_type",
          "type": "varchar",
          "description": "The object type which incurred_by references. Matches the object field in the API (Charge, Refund, Invoice, etc).",
          "confidence": "documented"
        },
        {
          "name": "product_feature_description",
          "type": "varchar",
          "description": "The product or feature associated with the fee.",
          "confidence": "documented",
          "doc_sources": [
            "data_query-all-fees-data.md"
          ]
        },
        {
          "name": "tax",
          "type": "double",
          "description": "Tax component of the fees paid, expressed in MAJOR units of the currency.",
          "confidence": "documented",
          "doc_sources": [
            "data_query-all-fees-data.md"
          ]
        }
      ],
      "foreign_keys": [
        {
          "columns": [
            "balance_transaction_id"
          ],
          "references": {
            "table": "balance_transactions",
            "columns": [
              "id"
            ]
          },
          "confidence": "documented"
        }
      ],
      "columns_complete": false,
      "columns_inherited_from": "itemized_fees",
      "verified_against_account": false
    },
    {
      "name": "mandates",
      "dataset": "unclassified",
      "source": "api_backed",
      "freshness_hours": null,
      "preview": false,
      "listed_in_stripe_freshness_table": false,
      "description": "",
      "grain": "",
      "primary_key": [
        "id"
      ],
      "foreign_keys": [],
      "notes": [],
      "columns": [
        {
          "name": "id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "customer_acceptance_accepted_at",
          "type": "double",
          "confidence": "verified",
          "raw_type": "double",
          "description": ""
        },
        {
          "name": "customer_acceptance_online_ip_address",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "customer_acceptance_online_user_agent",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "customer_acceptance_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "on_behalf_of",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "payment_method",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "payment_method_details_acss_debit_interval_description",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "payment_method_details_acss_debit_payment_schedule",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "payment_method_details_acss_debit_transaction_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "payment_method_details_au_becs_debit_url",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "payment_method_details_bacs_debit_network_status",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "payment_method_details_bacs_debit_reference",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "payment_method_details_bacs_debit_revocation_reason",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "payment_method_details_bacs_debit_url",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "payment_method_details_paypal_billing_agreement_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "payment_method_details_payto_amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "payment_method_details_payto_amount_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "payment_method_details_payto_end_date",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "payment_method_details_payto_payment_schedule",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "payment_method_details_payto_payments_per_period",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "payment_method_details_payto_purpose",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "payment_method_details_payto_start_date",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "payment_method_details_sepa_debit_reference",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "payment_method_details_sepa_debit_url",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "payment_method_details_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "payment_method_details_upi_amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "payment_method_details_upi_amount_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "payment_method_details_upi_description",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "payment_method_details_upi_end_date",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "payment_method_details_us_bank_account_collection_method",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "single_use_amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "single_use_currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "status",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "metered_items_beta",
      "dataset": "unclassified",
      "source": "api_backed",
      "freshness_hours": null,
      "preview": false,
      "listed_in_stripe_freshness_table": false,
      "description": "",
      "grain": "",
      "primary_key": [
        "id"
      ],
      "foreign_keys": [],
      "notes": [],
      "columns": [
        {
          "name": "id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "created_at",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "display_name",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "invoice_presentation_dimensions",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "locality_zone",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "lookup_key",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "metadata",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "meter",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "object",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "tax_details_tax_code",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "unit_label",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "money_management_adjustments",
      "dataset": "unclassified",
      "source": "api_backed",
      "freshness_hours": null,
      "preview": false,
      "listed_in_stripe_freshness_table": false,
      "description": "",
      "grain": "",
      "primary_key": [],
      "foreign_keys": [],
      "notes": [],
      "columns": [
        {
          "name": "amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "created",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "description",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "financial_account_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "money_management_financial_accounts",
      "dataset": "unclassified",
      "source": "api_backed",
      "freshness_hours": null,
      "preview": false,
      "listed_in_stripe_freshness_table": false,
      "description": "",
      "grain": "",
      "primary_key": [],
      "foreign_keys": [],
      "notes": [],
      "columns": [
        {
          "name": "country",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "created",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "display_name",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "status",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "money_management_financial_accounts_metadata",
      "dataset": "unclassified",
      "source": "api_backed",
      "freshness_hours": null,
      "preview": false,
      "listed_in_stripe_freshness_table": false,
      "description": "",
      "grain": "",
      "primary_key": [],
      "foreign_keys": [],
      "notes": [],
      "columns": [
        {
          "name": "financial_account_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "key",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "value",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "money_management_financial_addresses",
      "dataset": "unclassified",
      "source": "api_backed",
      "freshness_hours": null,
      "preview": false,
      "listed_in_stripe_freshness_table": false,
      "description": "",
      "grain": "",
      "primary_key": [],
      "foreign_keys": [],
      "notes": [],
      "columns": [
        {
          "name": "created",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "credentials_bank_name",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "credentials_bic",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "credentials_clabe",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "credentials_country",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "credentials_crypto_address",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "credentials_crypto_memo",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "credentials_crypto_network",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "credentials_institution_number",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "credentials_last4",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "credentials_routing_number",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "credentials_sort_code",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "credentials_transit_number",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "credentials_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "financial_account_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "settlement_currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "status",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "money_management_inbound_transfers",
      "dataset": "unclassified",
      "source": "api_backed",
      "freshness_hours": null,
      "preview": false,
      "listed_in_stripe_freshness_table": false,
      "description": "",
      "grain": "",
      "primary_key": [],
      "foreign_keys": [],
      "notes": [],
      "columns": [
        {
          "name": "created",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "credited_amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "credited_currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "debited_amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "debited_currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "description",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "from_payment_method_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "from_payment_method_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "status",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "to_financial_account_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "money_management_inbound_transfers_history",
      "dataset": "unclassified",
      "source": "api_backed",
      "freshness_hours": null,
      "preview": false,
      "listed_in_stripe_freshness_table": false,
      "description": "",
      "grain": "",
      "primary_key": [],
      "foreign_keys": [],
      "notes": [],
      "columns": [
        {
          "name": "bank_debit_failure_reason",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "bank_debit_return_reason",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "created",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "effective_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "inbound_transfer_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "level",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "money_management_outbound_payments",
      "dataset": "unclassified",
      "source": "api_backed",
      "freshness_hours": null,
      "preview": false,
      "listed_in_stripe_freshness_table": false,
      "description": "",
      "grain": "",
      "primary_key": [],
      "foreign_keys": [],
      "notes": [],
      "columns": [
        {
          "name": "ach_submission",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "ach_transaction_purpose",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "canceled_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "created",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "credited_amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "credited_currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "debited_amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "debited_currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "delivery_options_bank_account",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "description",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "expected_arrival_date",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "failed_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "failed_reason",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "from_financial_account_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "payout_method_options_bank_account_preferred_networks",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "posted_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "returned_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "returned_reason",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "statement_descriptor",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "status",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "to_payout_method_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "to_recipient_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "money_management_outbound_payments_metadata",
      "dataset": "unclassified",
      "source": "api_backed",
      "freshness_hours": null,
      "preview": false,
      "listed_in_stripe_freshness_table": false,
      "description": "",
      "grain": "",
      "primary_key": [],
      "foreign_keys": [],
      "notes": [],
      "columns": [
        {
          "name": "key",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "outbound_payment_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "value",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "money_management_outbound_transfers",
      "dataset": "unclassified",
      "source": "api_backed",
      "freshness_hours": null,
      "preview": false,
      "listed_in_stripe_freshness_table": false,
      "description": "",
      "grain": "",
      "primary_key": [],
      "foreign_keys": [],
      "notes": [],
      "columns": [
        {
          "name": "canceled_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "created",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "credited_amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "credited_currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "debited_amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "debited_currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "delivery_options_bank_account",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "description",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "expected_arrival_date",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "failed_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "failed_reason",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "from_financial_account_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "payout_method_options_bank_account_preferred_networks",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "posted_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "returned_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "returned_reason",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "statement_descriptor",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "status",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "to_payout_method_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "money_management_outbound_transfers_metadata",
      "dataset": "unclassified",
      "source": "api_backed",
      "freshness_hours": null,
      "preview": false,
      "listed_in_stripe_freshness_table": false,
      "description": "",
      "grain": "",
      "primary_key": [],
      "foreign_keys": [],
      "notes": [],
      "columns": [
        {
          "name": "key",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "outbound_transfer_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "value",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "money_management_received_credits",
      "dataset": "unclassified",
      "source": "api_backed",
      "freshness_hours": null,
      "preview": false,
      "listed_in_stripe_freshness_table": false,
      "description": "",
      "grain": "",
      "primary_key": [],
      "foreign_keys": [],
      "notes": [],
      "columns": [
        {
          "name": "amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "balance_transfer_from_account_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "balance_transfer_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "balance_transfer_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "bank_transfer_account_holder_name",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "bank_transfer_bank_name",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "bank_transfer_bic",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "bank_transfer_financial_address_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "bank_transfer_last4",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "bank_transfer_network",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "bank_transfer_origin_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "bank_transfer_routing_number",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "bank_transfer_sort_code",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "bank_transfer_statement_descriptor",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "card_spend_card_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "card_spend_issuing_dispute",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "card_spend_issuing_refund",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "created",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "description",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "failed_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "failed_reason",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "financial_account_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "returned_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "returned_reason",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "status",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "succeeded_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "money_management_received_debits",
      "dataset": "unclassified",
      "source": "api_backed",
      "freshness_hours": null,
      "preview": false,
      "listed_in_stripe_freshness_table": false,
      "description": "",
      "grain": "",
      "primary_key": [],
      "foreign_keys": [],
      "notes": [],
      "columns": [
        {
          "name": "amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "bank_transfer_bank_name",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "bank_transfer_financial_address_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "bank_transfer_network",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "bank_transfer_routing_number",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "bank_transfer_statement_descriptor",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "canceled_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "created",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "description",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "failed_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "failed_reason",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "financial_account_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "status",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "succeeded_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "money_management_transaction_entries",
      "dataset": "unclassified",
      "source": "api_backed",
      "freshness_hours": null,
      "preview": false,
      "listed_in_stripe_freshness_table": false,
      "description": "",
      "grain": "",
      "primary_key": [],
      "foreign_keys": [],
      "notes": [],
      "columns": [
        {
          "name": "available_balance_impact",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "created",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "effective_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "inbound_pending_balance_impact",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "outbound_pending_balance_impact",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "transaction_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "money_management_transactions",
      "dataset": "unclassified",
      "source": "api_backed",
      "freshness_hours": null,
      "preview": false,
      "listed_in_stripe_freshness_table": false,
      "description": "",
      "grain": "",
      "primary_key": [],
      "foreign_keys": [],
      "notes": [],
      "columns": [
        {
          "name": "amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "available_balance_impact",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "category",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "counterparty_name",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "created",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "description",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "financial_account_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "flow_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "flow_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "inbound_pending_balance_impact",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "outbound_pending_balance_impact",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "posted_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "status",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "void_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "network_cost_insights_report",
      "dataset": "cost",
      "source": "derived",
      "freshness_hours": 120,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Breakdown of interchange and scheme network costs underlying your processing fees.",
      "grain": "One row per network cost line.",
      "primary_key": [],
      "columns": [],
      "foreign_keys": [],
      "columns_complete": false,
      "verified_against_account": false
    },
    {
      "name": "payins_insights_lightning_astro_deduped_aggregated_with_attempts_v2",
      "dataset": "unclassified",
      "source": "api_backed",
      "freshness_hours": null,
      "preview": false,
      "listed_in_stripe_freshness_table": false,
      "description": "",
      "grain": "",
      "primary_key": [
        "attributable_optimization",
        "blocked_reason",
        "card_brand",
        "card_country",
        "card_input_method",
        "card_type",
        "cof",
        "currency",
        "decline_reason",
        "gateway_conversation_avs_outcome",
        "gateway_conversation_cvc_outcome",
        "is_connected_account",
        "outcome_type",
        "transaction_initiator",
        "used_network_tokens"
      ],
      "foreign_keys": [],
      "notes": [],
      "columns": [
        {
          "name": "attributable_optimization",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "blocked_reason",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "card_brand",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "card_country",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "card_input_method",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "card_type",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "cof",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "currency",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "decline_reason",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "gateway_conversation_avs_outcome",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "gateway_conversation_cvc_outcome",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "is_connected_account",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "outcome_type",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "transaction_initiator",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "used_network_tokens",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "accepted_amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "accepted_amount_in_usd",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "accepted_count",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "created_hour",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "transaction_amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "transaction_amount_in_usd",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "transaction_count",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "payins_insights_lightning_astro_raw_aggregated_with_attempts_v2",
      "dataset": "unclassified",
      "source": "api_backed",
      "freshness_hours": null,
      "preview": false,
      "listed_in_stripe_freshness_table": false,
      "description": "",
      "grain": "",
      "primary_key": [
        "attributable_optimization",
        "blocked_reason",
        "card_brand",
        "card_country",
        "card_input_method",
        "card_type",
        "cof",
        "currency",
        "decline_reason",
        "gateway_conversation_avs_outcome",
        "gateway_conversation_cvc_outcome",
        "is_connected_account",
        "outcome_type",
        "transaction_initiator",
        "used_network_tokens"
      ],
      "foreign_keys": [],
      "notes": [],
      "columns": [
        {
          "name": "attributable_optimization",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "blocked_reason",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "card_brand",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "card_country",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "card_input_method",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "card_type",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "cof",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "currency",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "decline_reason",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "gateway_conversation_avs_outcome",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "gateway_conversation_cvc_outcome",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "is_connected_account",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "outcome_type",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "transaction_initiator",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "used_network_tokens",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "accepted_amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "accepted_amount_in_usd",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "accepted_count",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "created_hour",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "transaction_amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "transaction_amount_in_usd",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "transaction_count",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "payment_evaluations",
      "dataset": "unclassified",
      "source": "api_backed",
      "freshness_hours": null,
      "preview": false,
      "listed_in_stripe_freshness_table": false,
      "description": "",
      "grain": "",
      "primary_key": [
        "id"
      ],
      "foreign_keys": [
        {
          "columns": [
            "payment_method_id"
          ],
          "references": {
            "table": "payment_methods",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        }
      ],
      "notes": [],
      "columns": [
        {
          "name": "id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "billing_email",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "created",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "customer_email",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "early_fraud_warning_risk_level",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "early_fraud_warning_score",
          "type": "double",
          "confidence": "verified",
          "raw_type": "double",
          "description": ""
        },
        {
          "name": "fraudulent_dispute_risk_level",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "fraudulent_dispute_score",
          "type": "double",
          "confidence": "verified",
          "raw_type": "double",
          "description": ""
        },
        {
          "name": "fraudulent_payment_risk_level",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "fraudulent_payment_score",
          "type": "double",
          "confidence": "verified",
          "raw_type": "double",
          "description": ""
        },
        {
          "name": "payment_method_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "recommended_action",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "risk_recommended_action",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "risk_score",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "payment_intent_line_items",
      "dataset": "unclassified",
      "source": "api_backed",
      "freshness_hours": null,
      "preview": false,
      "listed_in_stripe_freshness_table": false,
      "description": "",
      "grain": "",
      "primary_key": [
        "id",
        "payment_intent_id"
      ],
      "foreign_keys": [],
      "notes": [],
      "columns": [
        {
          "name": "id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "payment_intent_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "created",
          "type": "double",
          "confidence": "verified",
          "raw_type": "double",
          "description": ""
        },
        {
          "name": "discount_amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "livemode",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": ""
        },
        {
          "name": "merchant",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "payment_method_options_klarna_image_url",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "payment_method_options_klarna_product_url",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "payment_method_options_paypal_category",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "payment_method_options_paypal_description",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "payment_method_options_paypal_sold_by",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "product_code",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "product_name",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "quantity",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "total_tax_amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "unit_cost",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "payment_intents",
      "dataset": "payments",
      "source": "api_backed",
      "freshness_hours": 3,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "One row per PaymentIntent. Represents the full lifecycle of collecting a payment, including attempts that never produced a charge.",
      "grain": "One row per PaymentIntent.",
      "primary_key": [
        "id"
      ],
      "columns_complete": true,
      "columns": [
        {
          "name": "id",
          "type": "varchar",
          "key": "primary",
          "description": "Unique identifier for the object.",
          "confidence": "verified"
        },
        {
          "name": "amount",
          "type": "bigint",
          "description": "Amount intended to be collected by this PaymentIntent. A positive integer representing how much to charge in the smallest currency unit (e.g., 100 cents to charge $1.00 or 100 to charge \u00a5100, a zero-decimal currency). The minimum amount is $0.50 US or equivalent in charge currency. The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99).",
          "confidence": "verified",
          "raw_type": "bigint"
        },
        {
          "name": "amount_capturable",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": "Amount that can be captured from this PaymentIntent."
        },
        {
          "name": "amount_details_discount_amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": "The total discount applied on the transaction represented in the smallest currency unit. An integer greater than 0.\n\nThis field is mutually exclusive with the amount_details[line_items][#][discount_amount] field."
        },
        {
          "name": "amount_details_shipping_amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": "If a physical good is being shipped, the cost of shipping represented in the smallest currency unit. An integer greater than or equal to 0."
        },
        {
          "name": "amount_details_shipping_from_postal_code",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens and spaces are allowed."
        },
        {
          "name": "amount_details_shipping_to_postal_code",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens and spaces are allowed."
        },
        {
          "name": "amount_details_surcharge_amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": "Portion of the amount that corresponds to a surcharge."
        },
        {
          "name": "amount_details_tax_total_tax_amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": "The total amount of tax on the transaction represented in the smallest currency unit. Required for L2 rates. An integer greater than or equal to 0.\n\nThis field is mutually exclusive with the amount_details[line_items][#][tax][total_tax_amount] field."
        },
        {
          "name": "amount_details_tip_amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": "Portion of the amount that corresponds to a tip."
        },
        {
          "name": "application_fee_amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": "The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. The amount of the application fee collected will be capped at the total amount captured. For more information, see the PaymentIntents use case for connected accounts."
        },
        {
          "name": "application_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "ID of the Connect application that created the PaymentIntent."
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": "The time in epoch format at which updates to the object were processed through the Stripe Data Pipeline. If the object hasn't changed, the time remains unchanged. This field isn't available in Sigma. It's only available for core API tables, including Connect versions, exported through the Stripe Data Pipeline."
        },
        {
          "name": "canceled_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": "Populated when status is canceled, this is the time at which the PaymentIntent was canceled. Measured in seconds since the Unix epoch."
        },
        {
          "name": "cancellation_reason",
          "type": "varchar",
          "description": "Reason for cancellation of this PaymentIntent, either user-provided (duplicate, fraudulent, requested_by_customer, or abandoned) or generated by Stripe internally (failed_invoice, void_invoice, automatic, or expired).",
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "capture_method",
          "type": "varchar",
          "description": "Controls when the funds will be captured from the customer's account.",
          "enum": [
            "automatic",
            "automatic_async",
            "manual"
          ],
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "card_request_three_d_secure",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and other requirements. However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to automatic. Read our guide on manually requesting 3D Secure for more information on how this configuration interacts with Radar and our SCA Engine."
        },
        {
          "name": "confirmation_method",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "Describes whether we can confirm this PaymentIntent automatically, or if it requires customer action to confirm the payment."
        },
        {
          "name": "created",
          "type": "timestamp",
          "description": "Time at which the object was created. Measured in seconds since the Unix epoch.",
          "confidence": "verified",
          "raw_type": "timestamp"
        },
        {
          "name": "currency",
          "type": "varchar",
          "description": "Three-letter ISO currency code, in lowercase. Must be a supported currency.",
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "customer_id",
          "type": "varchar",
          "key": "foreign",
          "description": "ID of the Customer this PaymentIntent belongs to, if one exists.\n\nPayment methods attached to other Customers cannot be used with this PaymentIntent.\n\nIf setup_future_usage is set and this PaymentIntent's payment method is not card_present, then the payment method attaches to the Customer after the PaymentIntent has been confirmed and any required actions from the user are complete. If the payment method is card_present and isn't a digital wallet, then a generated_card payment method representing the card is created and attached to the Customer instead.",
          "confidence": "verified"
        },
        {
          "name": "description",
          "type": "varchar",
          "description": "An arbitrary string attached to the object. Often useful for displaying to users.",
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "invoice_id",
          "type": "varchar",
          "key": "foreign",
          "description": "ID of the invoice that created this PaymentIntent, if it exists.",
          "confidence": "verified"
        },
        {
          "name": "last_payment_error_charge",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "For card errors, the ID of the failed charge."
        },
        {
          "name": "last_payment_error_source",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The source object for errors returned on a request involving a source."
        },
        {
          "name": "last_payment_error_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The type of error returned. One of api_error, card_error, idempotency_error, or invalid_request_error"
        },
        {
          "name": "managed_payments_enabled",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": "Whether Managed Payments is enabled for this payment intent."
        },
        {
          "name": "on_behalf_of_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "You can specify the settlement merchant as the connected account using the on_behalf_of attribute on the charge. See the PaymentIntents use case for connected accounts for details."
        },
        {
          "name": "payment_details_customer_reference",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "A unique value to identify the customer. This field is available only for card payments.\n\nThis field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks."
        },
        {
          "name": "payment_details_order_reference",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates.\n\nFor Cards, this field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks. For Klarna, this field is truncated to 255 characters and is visible to customers when they view the order in the Klarna app."
        },
        {
          "name": "payment_method_id",
          "type": "varchar",
          "key": "foreign",
          "description": "ID of the payment method used in this PaymentIntent.",
          "confidence": "verified"
        },
        {
          "name": "payment_method_types",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The list of payment method types (e.g. card) that this PaymentIntent is allowed to use. A comprehensive list of valid payment method types can be found here."
        },
        {
          "name": "presentment_amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": "Amount intended to be collected by this payment, denominated in presentment_currency."
        },
        {
          "name": "presentment_currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "Currency presented to the customer during payment."
        },
        {
          "name": "receipt_email",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "Email address that the receipt for the resulting payment will be sent to. If receipt_email is specified for a payment in live mode, a receipt will be sent regardless of your email settings."
        },
        {
          "name": "review_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "ID of the review associated with this PaymentIntent, if any.",
          "key": "foreign"
        },
        {
          "name": "setup_future_usage",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "Indicates that you intend to make future payments with this PaymentIntent's payment method.\n\nIf you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still attach the payment method to a Customer after the transaction completes.\n\nIf the payment method is card_present and isn't a digital wallet, Stripe creates and attaches a generated_card payment method representing the card to the Customer instead.\n\nWhen processing card payments, Stripe uses setup_future_usage to help you comply with regional legislation and network rules, such as SCA."
        },
        {
          "name": "statement_descriptor",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "Text that appears on the customer's statement as the statement descriptor for a non-card charge. This value overrides the account's default statement descriptor. For information about requirements, including the 22-character limit, see the Statement Descriptor docs.\n\nSetting this value for a card charge returns an error. For card charges, set the statement_descriptor_suffix instead."
        },
        {
          "name": "statement_descriptor_suffix",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "Provides information about a card charge. Concatenated to the account's statement descriptor prefix to form the complete statement descriptor that appears on the customer's statement."
        },
        {
          "name": "status",
          "type": "varchar",
          "description": "Status of this PaymentIntent, one of requires_payment_method, requires_confirmation, requires_action, processing, requires_capture, canceled, or succeeded. Read more about each PaymentIntent status.",
          "enum": [
            "requires_payment_method",
            "requires_confirmation",
            "requires_action",
            "processing",
            "requires_capture",
            "canceled",
            "succeeded"
          ],
          "confidence": "verified",
          "raw_type": "varchar"
        }
      ],
      "foreign_keys": [
        {
          "columns": [
            "customer_id"
          ],
          "references": {
            "table": "customers",
            "columns": [
              "id"
            ]
          }
        },
        {
          "columns": [
            "invoice_id"
          ],
          "references": {
            "table": "invoices",
            "columns": [
              "id"
            ]
          }
        },
        {
          "columns": [
            "payment_method_id"
          ],
          "references": {
            "table": "payment_methods",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        }
      ],
      "notes": [
        "Use this table to measure checkout conversion and drop-off; charges only contains attempts that reached the network."
      ],
      "verified_against_account": true
    },
    {
      "name": "payment_intents_metadata",
      "dataset": "payments",
      "source": "api_backed",
      "freshness_hours": 3,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Metadata key/value pairs set on payment_intents. One row per (object, metadata key) pair. Objects with no metadata have no rows.",
      "grain": "One row per (object, metadata key) pair. Objects with no metadata have no rows.",
      "primary_key": [
        "key",
        "payment_intent_id"
      ],
      "columns": [
        {
          "name": "key",
          "type": "varchar",
          "description": "The metadata key set on the object.",
          "confidence": "verified",
          "key": "primary"
        },
        {
          "name": "payment_intent_id",
          "type": "varchar",
          "key": "primary",
          "description": "References the id column of the parent object table.",
          "confidence": "verified"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "value",
          "type": "varchar",
          "description": "The metadata value for that key. Always a string, even when it holds a number or boolean.",
          "confidence": "verified",
          "raw_type": "varchar"
        }
      ],
      "columns_complete": true,
      "foreign_keys": [
        {
          "columns": [
            "payment_intent_id"
          ],
          "references": {
            "table": "payment_intents",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        }
      ],
      "notes": [
        "Values are always strings, even when they hold numbers or booleans.",
        "Pivot to columns with: select payment_intent_id, map_agg(key, value) as md from payment_intents_metadata group by 1"
      ],
      "derived_from_convention": "metadata_tables",
      "verified_against_account": true
    },
    {
      "name": "payment_links",
      "dataset": "checkout",
      "source": "api_backed",
      "freshness_hours": 3,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Reusable shareable links that open a Checkout session.",
      "grain": "One row per payment link.",
      "primary_key": [
        "id"
      ],
      "columns": [
        {
          "name": "id",
          "type": "varchar",
          "key": "primary",
          "description": "Unique identifier, prefixed plink_.",
          "confidence": "verified"
        },
        {
          "name": "active",
          "type": "boolean",
          "description": "Whether the link still accepts payments.",
          "confidence": "verified",
          "raw_type": "boolean"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "created",
          "type": "timestamp",
          "description": "When the link was created (UTC).",
          "confidence": "verified",
          "raw_type": "timestamp"
        }
      ],
      "foreign_keys": [],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "payment_method_details",
      "dataset": "payments",
      "source": "api_backed",
      "freshness_hours": 3,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Per-charge payment method detail that does not fit in the flattened card_* columns on charges, including 3D Secure results and wallet information.",
      "grain": "One row per charge.",
      "primary_key": [
        "charge_id"
      ],
      "columns_complete": true,
      "columns": [
        {
          "name": "charge_id",
          "type": "varchar",
          "key": "primary",
          "description": "The charge these details describe.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-disputes-and-fraud-data.md"
          ]
        },
        {
          "name": "ach_debit_account_holder_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "Type of entity that holds the account. This can be either individual or company."
        },
        {
          "name": "ach_debit_bank_name",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "Name of the bank associated with the bank account."
        },
        {
          "name": "ach_debit_country",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "Two-letter ISO code representing the country the bank account is located in."
        },
        {
          "name": "ach_debit_fingerprint",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same."
        },
        {
          "name": "ach_debit_last4",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "Last four digits of the bank account number."
        },
        {
          "name": "ach_debit_routing_number",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "Routing transit number of the bank account."
        },
        {
          "name": "acss_debit_fingerprint",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "acss_debit_institution_number",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "Institution number of the bank account"
        },
        {
          "name": "acss_debit_last4",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "acss_debit_mandate_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "acss_debit_transit_number",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "Transit number of the bank account."
        },
        {
          "name": "alipay_fingerprint",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "Uniquely identifies this particular Alipay account. You can use this attribute to check whether two Alipay accounts are the same."
        },
        {
          "name": "alipay_transaction_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "Transaction ID of this particular Alipay transaction."
        },
        {
          "name": "au_becs_debit_bsb_number",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "Bank-State-Branch number of the bank account."
        },
        {
          "name": "au_becs_debit_fingerprint",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same."
        },
        {
          "name": "au_becs_debit_last4",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "Last four digits of the bank account number."
        },
        {
          "name": "au_becs_debit_mandate_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "ID of the mandate used to make this payment."
        },
        {
          "name": "bacs_debit_fingerprint",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same."
        },
        {
          "name": "bacs_debit_last4",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "Last four digits of the bank account number."
        },
        {
          "name": "bacs_debit_mandate_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "ID of the mandate used to make this payment."
        },
        {
          "name": "bacs_debit_sort_code",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "Sort code of the bank account. (e.g., 10-20-30)"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": "The time in epoch format at which updates to the object were processed through the Stripe Data Pipeline. If the object hasn't changed, the time remains unchanged. This field isn't available in Sigma. It's only available for core API tables, including Connect versions, exported through the Stripe Data Pipeline."
        },
        {
          "name": "bizum_buyer_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "A unique identifier for the buyer as determined by the local payment processor."
        },
        {
          "name": "bizum_transaction_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The Bizum transaction ID associated with this payment."
        },
        {
          "name": "boleto_expires_at",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": "Boleto Expiration Timestamp (UTC)"
        },
        {
          "name": "boleto_number",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "Boleto Number"
        },
        {
          "name": "card_3ds_authenticated",
          "type": "boolean",
          "description": "Whether or not authentication was performed. 3D Secure will succeed without authentication when the card is not enrolled.",
          "confidence": "verified",
          "raw_type": "boolean"
        },
        {
          "name": "card_3ds_succeeded",
          "type": "boolean",
          "description": "Whether or not 3D Secure succeeded.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-disputes-and-fraud-data.md"
          ],
          "raw_type": "boolean"
        },
        {
          "name": "card_3ds_version",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The version of 3D Secure that was used"
        },
        {
          "name": "card_address_line1_check",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "If a address line1 was provided, results of the check, one of pass, fail, unavailable, or unchecked.",
          "enum": [
            "pass",
            "fail",
            "unavailable",
            "unchecked"
          ]
        },
        {
          "name": "card_address_postal_code_check",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "If a address postal code was provided, results of the check, one of pass, fail, unavailable, or unchecked.",
          "enum": [
            "pass",
            "fail",
            "unavailable",
            "unchecked"
          ]
        },
        {
          "name": "card_amount_authorized",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": "The authorized amount"
        },
        {
          "name": "card_authorization_code",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "Authorization code on the charge."
        },
        {
          "name": "card_brand",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "Card brand. Can be amex, cartes_bancaires, diners, discover, eftpos_au, jcb, link, mastercard, unionpay, visa or unknown.",
          "enum": [
            "amex",
            "cartes_bancaires",
            "diners",
            "discover",
            "eftpos_au",
            "jcb",
            "link",
            "mastercard",
            "unionpay",
            "visa",
            "unknown"
          ]
        },
        {
          "name": "card_brand_product",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The product code that identifies the specific program or product associated with a card."
        },
        {
          "name": "card_country",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected."
        },
        {
          "name": "card_cvc_check",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "If a CVC was provided, results of the check, one of pass, fail, unavailable, or unchecked.",
          "enum": [
            "pass",
            "fail",
            "unavailable",
            "unchecked"
          ]
        },
        {
          "name": "card_exp_month",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": "Two-digit number representing the card's expiration month."
        },
        {
          "name": "card_exp_year",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": "Four-digit number representing the card's expiration year."
        },
        {
          "name": "card_fingerprint",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "Uniquely identifies this particular card number. You can use this attribute to check whether two customers who\u2019ve signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number.\n\nAs of May 1, 2021, card fingerprint in India for Connect changed to allow two fingerprints for the same card---one for India and one for the rest of the world."
        },
        {
          "name": "card_funding",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "Card funding type. Can be credit, debit, prepaid, or unknown.",
          "enum": [
            "credit",
            "debit",
            "prepaid",
            "unknown"
          ]
        },
        {
          "name": "card_generated_card",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "ID of a card PaymentMethod generated from the card_present PaymentMethod that may be attached to a Customer for future transactions. Only present if it was possible to generate a card PaymentMethod."
        },
        {
          "name": "card_iin",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "Issuer identification number of the card."
        },
        {
          "name": "card_installments_plan_count",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": "For fixed_count installment plans, this is the number of installment payments your customer will make to their credit card."
        },
        {
          "name": "card_installments_plan_interval",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "For fixed_count installment plans, this is the interval between installment payments your customer will make to their credit card. One of month."
        },
        {
          "name": "card_installments_plan_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "Type of installment plan, one of fixed_count, bonus, or revolving.",
          "enum": [
            "fixed_count",
            "bonus",
            "revolving"
          ]
        },
        {
          "name": "card_last4",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The last four digits of the card."
        },
        {
          "name": "card_mandate",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "ID of the mandate used to make this payment or created by it."
        },
        {
          "name": "card_moto",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": "True if this payment was marked as MOTO and out of scope for SCA."
        },
        {
          "name": "card_network",
          "type": "varchar",
          "description": "Identifies which network this charge was processed on. Can be amex, cartes_bancaires, diners, discover, eftpos_au, interac, jcb, link, mastercard, unionpay, visa, or unknown.",
          "confidence": "verified",
          "raw_type": "varchar",
          "enum": [
            "amex",
            "cartes_bancaires",
            "diners",
            "discover",
            "eftpos_au",
            "interac",
            "jcb",
            "link",
            "mastercard",
            "unionpay",
            "visa",
            "unknown"
          ]
        },
        {
          "name": "card_network_token_used",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": "Indicates if Stripe used a network token, either user provided or Stripe managed when processing the transaction"
        },
        {
          "name": "card_network_transaction_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "This is used by the financial networks to identify a transaction. Visa calls this the Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the Acquirer Reference Data. This value will be present if it is returned by the financial network in the authorization response, and null otherwise."
        },
        {
          "name": "card_present_dynamic_currency_conversion_cardholder_rate",
          "type": "double",
          "confidence": "verified",
          "raw_type": "double",
          "description": "Exchange rate received by the cardholder, including markup."
        },
        {
          "name": "card_present_dynamic_currency_conversion_markup_percent",
          "type": "double",
          "confidence": "verified",
          "raw_type": "double",
          "description": "Markup percentage added to the transaction_fx_rate to get the cardholder_rate."
        },
        {
          "name": "card_present_dynamic_currency_conversion_original_amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": "Amount in the original currency before conversion, expressed in minor units."
        },
        {
          "name": "card_present_dynamic_currency_conversion_original_currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "Original currency before conversion."
        },
        {
          "name": "card_present_dynamic_currency_conversion_status",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "Whether dynamic currency conversion was performed on this transaction. This can be either enabled or disabled."
        },
        {
          "name": "card_present_dynamic_currency_conversion_transaction_fx_rate",
          "type": "double",
          "confidence": "verified",
          "raw_type": "double",
          "description": "Exchange rate applied to the transaction, excluding markup."
        },
        {
          "name": "card_read_method",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "How card details were read in this transaction."
        },
        {
          "name": "card_regulated_status",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "Status of a card based on the card issuer."
        },
        {
          "name": "card_transaction_link_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "Transaction Link ID (TLID) is a unique identifier for a transaction. This is used by some card networks, such as Mastercard, for transaction linking, in addition to Network Transaction IDs. This value will be present if it is returned by the financial network in the authorization response, and null otherwise."
        },
        {
          "name": "card_wallet_apple_pay_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "Apple Pay type. Can be apple_pay, apple_pay_later or unknown.",
          "enum": [
            "apple_pay",
            "apple_pay_later",
            "unknown"
          ]
        },
        {
          "name": "card_wallet_type",
          "type": "varchar",
          "description": "The type of the card wallet",
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "cashapp_buyer_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "A unique and immutable identifier assigned by Cash App to every buyer."
        },
        {
          "name": "cashapp_cashtag",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "A public identifier for buyers using Cash App."
        },
        {
          "name": "cashapp_transaction_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "A unique and immutable identifier of payments assigned by Cash App"
        },
        {
          "name": "customer_balance_bank_transfer_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "customer_balance_funding_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "eps_bank",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "eps_verified_name",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "fpx_account_holder_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "fpx_bank",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "fpx_transaction_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "giropay_bank_code",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "giropay_bank_name",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "giropay_bic",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "giropay_verified_name",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "ideal_bank",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "ideal_bic",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "ideal_generated_sepa_debit_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "ideal_generated_sepa_debit_mandate_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "ideal_iban_last4",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "ideal_transaction_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "ideal_verified_name",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "klarna_payer_details_address_country",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "klarna_payment_method_category",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "klarna_preferred_locale",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "konbini_store_chain",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "link_country",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "multibanco_entity",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "multibanco_reference",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "naver_buyer_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "naver_transaction_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "nz_bank_account_account_holder_name",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "nz_bank_account_bank_code",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "nz_bank_account_bank_name",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "nz_bank_account_branch_code",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "nz_bank_account_last4",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "nz_bank_account_suffix",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "oxxo_number",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "p24_bank",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "p24_reference",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "p24_verified_name",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "paynow_transaction_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "payto_account_number",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "payto_bsb_number",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "payto_last4",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "payto_mandate",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "payto_pay_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "pix_bank_transaction_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "pix_fingerprint",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "promptpay_transaction_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "sepa_debit_bank_code",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "sepa_debit_branch_code",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "sepa_debit_country",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "sepa_debit_fingerprint",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same."
        },
        {
          "name": "sepa_debit_last4",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "Last four digits of the bank account number."
        },
        {
          "name": "sepa_debit_mandate_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "ID of the mandate used to make this payment."
        },
        {
          "name": "sofort_bank_code",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "sofort_bank_name",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "sofort_bic",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "sofort_country",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "sofort_iban_last4",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "sofort_preferred_language",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "sofort_verified_name",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "swish_fingerprint",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "swish_payment_reference",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "swish_verified_phone_last4",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "terminal_location_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "terminal_reader_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "type",
          "type": "varchar",
          "description": "Payment method family, e.g. card, us_bank_account.",
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "us_bank_account_account_holder_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "us_bank_account_account_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "us_bank_account_bank_name",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "us_bank_account_fingerprint",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "us_bank_account_last4",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "us_bank_account_mandate_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "us_bank_account_payment_reference",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "us_bank_account_routing_number",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        }
      ],
      "foreign_keys": [
        {
          "columns": [
            "charge_id"
          ],
          "references": {
            "table": "charges",
            "columns": [
              "id"
            ]
          },
          "confidence": "documented"
        }
      ],
      "notes": [
        "Left join from charges \u2014 not every charge has a row here."
      ],
      "verified_against_account": true
    },
    {
      "name": "payment_methods",
      "dataset": "payments",
      "source": "api_backed",
      "freshness_hours": 3,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Saved payment instruments attached to customers.",
      "grain": "One row per payment method.",
      "primary_key": [
        "id"
      ],
      "columns": [
        {
          "name": "id",
          "type": "varchar",
          "key": "primary",
          "description": "Unique identifier, prefixed pm_.",
          "confidence": "verified"
        },
        {
          "name": "acss_debit_fingerprint",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "acss_debit_institution_number",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "acss_debit_last4",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "acss_debit_transit_number",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "au_becs_debit_bsb_number",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "au_becs_debit_fingerprint",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "au_becs_debit_last4",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "bacs_debit_fingerprint",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "bacs_debit_last4",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "bacs_debit_sort_code",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "billing_details_address_city",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "billing_details_address_country",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "billing_details_address_line1",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "billing_details_address_line2",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "billing_details_address_postal_code",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "billing_details_address_state",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "billing_details_email",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "billing_details_name",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "billing_details_phone",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "bizum_buyer_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "boleto_tax_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "card_address_line1_check",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "card_address_postal_code_check",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "card_brand",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "card_brand_product",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "card_country",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "card_cvc_check",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "card_exp_month",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "card_exp_year",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "card_fingerprint",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "card_funding",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "card_generated_from_charge_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "card_iin",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "card_last4",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "card_regulated_status",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "card_three_d_secure_supported",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": ""
        },
        {
          "name": "card_wallet_apple_pay_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "card_wallet_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "cashapp_buyer_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "cashapp_cashtag",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "created",
          "type": "timestamp",
          "description": "When the payment method was created (UTC).",
          "confidence": "verified",
          "raw_type": "timestamp"
        },
        {
          "name": "custom_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "customer_id",
          "type": "varchar",
          "key": "foreign",
          "description": "Customer the method is attached to.",
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "eps_bank",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "fpx_account_holder_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "fpx_bank",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "ideal_bank",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "ideal_bic",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "klarna_dob_day",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "klarna_dob_month",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "klarna_dob_year",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "link_email",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "naver_buyer_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "naver_funding",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "nz_bank_account_account_holder_name",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "nz_bank_account_bank_code",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "nz_bank_account_bank_name",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "nz_bank_account_branch_code",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "nz_bank_account_last4",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "nz_bank_account_suffix",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "p24_bank",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "paypal_country",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "paypal_payer_email",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "paypal_payer_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "payto_account_number",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "payto_bsb_number",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "payto_last4",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "payto_pay_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "pix_fingerprint",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "sepa_debit_bank_code",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "sepa_debit_branch_code",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "sepa_debit_country",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "sepa_debit_fingerprint",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "sepa_debit_generated_from_charge_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "sepa_debit_generated_from_setup_attempt_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "sepa_debit_last4",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "sofort_country",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "type",
          "type": "varchar",
          "description": "Payment method family, e.g. card, us_bank_account, sepa_debit.",
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "upi_vpa",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "us_bank_account_account_holder_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "us_bank_account_account_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "us_bank_account_fingerprint",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "us_bank_account_last4",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "us_bank_account_linked_account",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "us_bank_account_routing_number",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        }
      ],
      "foreign_keys": [
        {
          "columns": [
            "customer_id"
          ],
          "references": {
            "table": "customers",
            "columns": [
              "id"
            ]
          }
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "payment_methods_metadata",
      "dataset": "payments",
      "source": "api_backed",
      "freshness_hours": 3,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Metadata key/value pairs set on payment_methods. One row per (object, metadata key) pair. Objects with no metadata have no rows.",
      "grain": "One row per (object, metadata key) pair. Objects with no metadata have no rows.",
      "primary_key": [
        "key",
        "payment_method_id"
      ],
      "columns": [
        {
          "name": "key",
          "type": "varchar",
          "description": "The metadata key set on the object.",
          "confidence": "verified",
          "key": "primary"
        },
        {
          "name": "payment_method_id",
          "type": "varchar",
          "key": "primary",
          "description": "References the id column of the parent object table.",
          "confidence": "verified"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "value",
          "type": "varchar",
          "description": "The metadata value for that key. Always a string, even when it holds a number or boolean.",
          "confidence": "verified",
          "raw_type": "varchar"
        }
      ],
      "columns_complete": true,
      "foreign_keys": [
        {
          "columns": [
            "payment_method_id"
          ],
          "references": {
            "table": "payment_methods",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        }
      ],
      "notes": [
        "Values are always strings, even when they hold numbers or booleans.",
        "Pivot to columns with: select payment_method_id, map_agg(key, value) as md from payment_methods_metadata group by 1"
      ],
      "derived_from_convention": "metadata_tables",
      "verified_against_account": true
    },
    {
      "name": "payment_records",
      "dataset": "payments",
      "source": "derived",
      "freshness_hours": 6,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Unified payment records spanning Stripe and externally processed payments.",
      "grain": "One row per payment record.",
      "primary_key": [
        "id"
      ],
      "columns": [
        {
          "name": "id",
          "type": "varchar",
          "key": "primary",
          "description": "Unique identifier for the payment record.",
          "confidence": "verified"
        },
        {
          "name": "amount_authorized_currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "amount_authorized_value",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "amount_canceled_currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "amount_canceled_value",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "amount_currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "amount_disputed_currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "amount_disputed_value",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "amount_failed_currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "amount_failed_value",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "amount_guaranteed_currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "amount_guaranteed_value",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "amount_refunded_currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "amount_refunded_value",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "amount_requested_currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "amount_requested_value",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "amount_value",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "application",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "capture_method",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "created",
          "type": "timestamp",
          "description": "When the record was created (UTC).",
          "confidence": "verified",
          "raw_type": "timestamp"
        },
        {
          "name": "customer_details_customer",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "customer_details_email",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "customer_details_name",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "customer_details_phone",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "customer_presence",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "description",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "initiated_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "latest_occurred_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "latest_payment_attempt_record",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "money_services_transaction_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "payment_method_details_billing_address_city",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "payment_method_details_billing_address_country",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "payment_method_details_billing_address_line1",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "payment_method_details_billing_address_line2",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "payment_method_details_billing_address_postal_code",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "payment_method_details_billing_address_state",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "payment_method_details_billing_email",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "payment_method_details_billing_name",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "payment_method_details_billing_phone",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "payment_method_details_card_brand",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "payment_method_details_card_capture_before",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "payment_method_details_card_country",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "payment_method_details_card_exp_month",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "integer",
          "description": ""
        },
        {
          "name": "payment_method_details_card_exp_year",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "integer",
          "description": ""
        },
        {
          "name": "payment_method_details_card_fingerprint",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "payment_method_details_card_funding",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "payment_method_details_card_last4",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "payment_method_details_card_moto",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": ""
        },
        {
          "name": "payment_method_details_card_network",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "payment_method_details_card_network_transaction_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "payment_method_details_card_payment_account_reference",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "payment_method_details_card_wallet_dynamic_last4",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "payment_method_details_card_wallet_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "payment_method_details_custom_display_name",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "payment_method_details_custom_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "payment_method_details_payment_method",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "payment_method_details_shared_payment_granted_token",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "payment_method_details_shop_pay_external_source_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "payment_method_details_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "processor_adyen_merchant_account",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "processor_adyen_psp_reference",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "processor_braintree_merchant_account_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "processor_braintree_transaction_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "processor_custom_payment_reference",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "processor_stripe_charge",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "processor_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "processor_worldpay_merchant_code",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "processor_worldpay_order_code",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "reported_by",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "setup_future_usage",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "shipping_address_city",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "shipping_address_country",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "shipping_address_line1",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "shipping_address_line2",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "shipping_address_postal_code",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "shipping_address_state",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "shipping_name",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "shipping_phone",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "updated",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        }
      ],
      "foreign_keys": [],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "payment_records_metadata",
      "dataset": "payments",
      "source": "derived",
      "freshness_hours": 6,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Metadata key/value pairs set on payment_records. One row per (object, metadata key) pair. Objects with no metadata have no rows.",
      "grain": "One row per (object, metadata key) pair. Objects with no metadata have no rows.",
      "primary_key": [
        "key"
      ],
      "columns": [
        {
          "name": "key",
          "type": "varchar",
          "description": "The metadata key set on the object.",
          "confidence": "verified",
          "key": "primary"
        },
        {
          "name": "payment_record_id",
          "type": "varchar",
          "key": "foreign",
          "description": "References the id column of the parent object table.",
          "confidence": "verified"
        },
        {
          "name": "value",
          "type": "varchar",
          "description": "The metadata value for that key. Always a string, even when it holds a number or boolean.",
          "confidence": "verified",
          "raw_type": "varchar"
        }
      ],
      "columns_complete": true,
      "foreign_keys": [
        {
          "columns": [
            "payment_record_id"
          ],
          "references": {
            "table": "payment_records",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        }
      ],
      "notes": [
        "Values are always strings, even when they hold numbers or booleans.",
        "Pivot to columns with: select payment_record_id, map_agg(key, value) as md from payment_records_metadata group by 1"
      ],
      "derived_from_convention": "metadata_tables",
      "verified_against_account": true
    },
    {
      "name": "payment_reviews",
      "dataset": "payments",
      "source": "api_backed",
      "freshness_hours": 3,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Payments flagged by Radar for manual review, and how they were resolved.",
      "grain": "One row per review.",
      "primary_key": [
        "id"
      ],
      "columns": [
        {
          "name": "id",
          "type": "varchar",
          "key": "primary",
          "description": "Unique identifier, prefixed prv_.",
          "confidence": "verified"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "charge_id",
          "type": "varchar",
          "key": "foreign",
          "description": "Charge under review.",
          "confidence": "verified"
        },
        {
          "name": "created",
          "type": "timestamp",
          "description": "When the review was opened (UTC).",
          "confidence": "verified",
          "raw_type": "timestamp"
        },
        {
          "name": "early_fraud_warning_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "open",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": ""
        },
        {
          "name": "payment_intent_id",
          "type": "varchar",
          "key": "foreign",
          "description": "PaymentIntent under review.",
          "confidence": "verified"
        },
        {
          "name": "reason",
          "type": "varchar",
          "description": "Why the payment was flagged.",
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "recommended_refund_confidence_level",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "recommended_refund_created_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        }
      ],
      "foreign_keys": [
        {
          "columns": [
            "charge_id"
          ],
          "references": {
            "table": "charges",
            "columns": [
              "id"
            ]
          }
        },
        {
          "columns": [
            "early_fraud_warning_id"
          ],
          "references": {
            "table": "early_fraud_warnings",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        },
        {
          "columns": [
            "payment_intent_id"
          ],
          "references": {
            "table": "payment_intents",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "payout_minimum_balance_settings",
      "dataset": "unclassified",
      "source": "api_backed",
      "freshness_hours": null,
      "preview": false,
      "listed_in_stripe_freshness_table": false,
      "description": "",
      "grain": "",
      "primary_key": [],
      "foreign_keys": [],
      "notes": [],
      "columns": [
        {
          "name": "amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "plans",
      "dataset": "billing",
      "source": "api_backed",
      "freshness_hours": 3,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Legacy recurring pricing objects, superseded by prices. Retained for older integrations.",
      "grain": "One row per plan.",
      "primary_key": [
        "id"
      ],
      "columns": [
        {
          "name": "id",
          "type": "varchar",
          "key": "primary",
          "description": "Unique identifier, prefixed plan_.",
          "confidence": "verified"
        },
        {
          "name": "aggregate_usage",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "amount",
          "type": "bigint",
          "description": "Amount per interval in minor currency units.",
          "confidence": "verified",
          "raw_type": "bigint"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "billing_scheme",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "created",
          "type": "timestamp",
          "description": "When the plan was created (UTC).",
          "confidence": "verified",
          "raw_type": "timestamp"
        },
        {
          "name": "currency",
          "type": "varchar",
          "description": "Three-letter ISO currency code, lowercase.",
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "interval",
          "type": "varchar",
          "description": "Billing interval. `interval` is a reserved word in Trino \u2014 quote it as \"interval\".",
          "enum": [
            "day",
            "week",
            "month",
            "year"
          ],
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "interval_count",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "nickname",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "product_id",
          "type": "varchar",
          "key": "foreign",
          "description": "Product the plan bills for.",
          "confidence": "verified"
        },
        {
          "name": "tiers_mode",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "transform_usage_divide_by",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "transform_usage_round",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "trial_period_days",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "unit_amount_decimal",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "usage_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        }
      ],
      "notes": [
        "Prefer prices for new work. `interval` must be quoted in Trino."
      ],
      "foreign_keys": [
        {
          "columns": [
            "product_id"
          ],
          "references": {
            "table": "products",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "plans_metadata",
      "dataset": "billing",
      "source": "api_backed",
      "freshness_hours": 3,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Metadata key/value pairs set on plans. One row per (object, metadata key) pair. Objects with no metadata have no rows.",
      "grain": "One row per (object, metadata key) pair. Objects with no metadata have no rows.",
      "primary_key": [
        "key",
        "plan_id"
      ],
      "columns": [
        {
          "name": "key",
          "type": "varchar",
          "description": "The metadata key set on the object.",
          "confidence": "verified",
          "key": "primary"
        },
        {
          "name": "plan_id",
          "type": "varchar",
          "key": "primary",
          "description": "References the id column of the parent object table.",
          "confidence": "verified"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "value",
          "type": "varchar",
          "description": "The metadata value for that key. Always a string, even when it holds a number or boolean.",
          "confidence": "verified",
          "raw_type": "varchar"
        }
      ],
      "columns_complete": true,
      "foreign_keys": [
        {
          "columns": [
            "plan_id"
          ],
          "references": {
            "table": "plans",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        }
      ],
      "notes": [
        "Values are always strings, even when they hold numbers or booleans.",
        "Pivot to columns with: select plan_id, map_agg(key, value) as md from plans_metadata group by 1"
      ],
      "derived_from_convention": "metadata_tables",
      "verified_against_account": true
    },
    {
      "name": "platform_tax_settings",
      "dataset": "unclassified",
      "source": "api_backed",
      "freshness_hours": null,
      "preview": false,
      "listed_in_stripe_freshness_table": false,
      "description": "",
      "grain": "",
      "primary_key": [
        "id"
      ],
      "foreign_keys": [],
      "notes": [],
      "columns": [
        {
          "name": "id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "created",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "default_form_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "k_default_calculation_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "livemode",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": ""
        },
        {
          "name": "merchant",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "misc_default_calculation_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "nec_default_calculation_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "reporting_year",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "year",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "price_tiers",
      "dataset": "billing",
      "source": "api_backed",
      "freshness_hours": 3,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Tier definitions for prices using tiered billing.",
      "grain": "One row per tier of a price.",
      "primary_key": [
        "price_id",
        "upto"
      ],
      "columns_complete": true,
      "columns": [
        {
          "name": "price_id",
          "type": "varchar",
          "key": "primary",
          "description": "Price these tiers belong to.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-billing-data.md"
          ]
        },
        {
          "name": "upto",
          "type": "varchar",
          "description": "Upper bound of the tier in units. Null represents the unbounded final tier.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-billing-data.md"
          ],
          "key": "primary"
        },
        {
          "name": "amount",
          "type": "bigint",
          "description": "Per-unit amount for this tier, in minor currency units.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-billing-data.md"
          ],
          "raw_type": "bigint"
        },
        {
          "name": "amount_decimal",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "flat_amount",
          "type": "bigint",
          "description": "Flat fee charged for this tier, in minor currency units.",
          "confidence": "verified",
          "raw_type": "bigint"
        },
        {
          "name": "flat_amount_decimal",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        }
      ],
      "foreign_keys": [
        {
          "columns": [
            "price_id"
          ],
          "references": {
            "table": "prices",
            "columns": [
              "id"
            ]
          },
          "confidence": "documented"
        }
      ],
      "verified_against_account": true
    },
    {
      "name": "prices",
      "dataset": "billing",
      "source": "api_backed",
      "freshness_hours": 3,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "How much and how often to charge for a product.",
      "grain": "One row per price.",
      "primary_key": [
        "id"
      ],
      "columns_complete": true,
      "columns": [
        {
          "name": "id",
          "type": "varchar",
          "key": "primary",
          "description": "The ID of the price object.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-billing-data.md"
          ]
        },
        {
          "name": "active",
          "type": "boolean",
          "description": "Whether the price can be used for new purchases.",
          "confidence": "verified",
          "raw_type": "boolean"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": "The time in epoch format at which updates to the object were processed through the Stripe Data Pipeline. If the object hasn't changed, the time remains unchanged. This field isn't available in Sigma. It's only available for core API tables, including Connect versions, exported through the Stripe Data Pipeline."
        },
        {
          "name": "billing_scheme",
          "type": "varchar",
          "description": "Describes how to compute the price per period. Either per_unit or tiered. per_unit indicates that the fixed amount (specified in unit_amount or unit_amount_decimal) will be charged per unit in quantity (for prices with usage_type=licensed), or per unit of total usage (for prices with usage_type=metered). tiered indicates that the unit pricing will be computed using a tiering strategy as defined using the tiers and tiers_mode attributes.",
          "enum": [
            "per_unit",
            "tiered"
          ],
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "created",
          "type": "timestamp",
          "description": "Time at which the object was created. Measured in seconds since the Unix epoch.",
          "confidence": "verified",
          "raw_type": "timestamp"
        },
        {
          "name": "currency",
          "type": "varchar",
          "description": "Three-letter ISO currency code, in lowercase. Must be a supported currency.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-billing-data.md"
          ],
          "raw_type": "varchar"
        },
        {
          "name": "custom_unit_amount_default",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": "The starting unit amount which can be updated by the customer."
        },
        {
          "name": "custom_unit_amount_maximum",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": "The maximum unit amount the customer can specify for this item."
        },
        {
          "name": "custom_unit_amount_minimum",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": "The minimum unit amount the customer can specify for this item. Must be at least the minimum charge amount."
        },
        {
          "name": "lookup_key",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "A lookup key used to retrieve prices dynamically from a static string. This may be up to 200 characters."
        },
        {
          "name": "nickname",
          "type": "varchar",
          "description": "A brief description of the price, hidden from customers.",
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "product_id",
          "type": "varchar",
          "key": "foreign",
          "description": "The ID of the product this price is associated with.",
          "confidence": "verified"
        },
        {
          "name": "recurring_aggregate_usage",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "Specifies a usage aggregation strategy for prices of usage_type=metered. Defaults to sum."
        },
        {
          "name": "recurring_interval",
          "type": "varchar",
          "description": "The frequency at which a subscription is billed. One of day, week, month or year.",
          "enum": [
            "day",
            "week",
            "month",
            "year"
          ],
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "recurring_interval_count",
          "type": "bigint",
          "description": "The number of intervals (specified in the interval attribute) between subscription billings. For example, interval=month and interval_count=3 bills every 3 months.",
          "confidence": "verified",
          "raw_type": "bigint"
        },
        {
          "name": "recurring_meter_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "The meter tracking the usage of a metered price",
          "key": "foreign"
        },
        {
          "name": "recurring_trial_period_days",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": "Default number of trial days when subscribing a customer to this price using trial_from_plan=true."
        },
        {
          "name": "recurring_usage_type",
          "type": "varchar",
          "description": "Configures how the quantity per period should be determined. Can be either metered or licensed. licensed automatically bills the quantity set when adding it to a subscription. metered aggregates the total usage based on usage records. Defaults to licensed.",
          "enum": [
            "licensed",
            "metered"
          ],
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "tax_behavior",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "Only required if a default tax behavior was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of inclusive, exclusive, or unspecified. Once specified as either inclusive or exclusive, it cannot be changed.",
          "enum": [
            "inclusive",
            "exclusive",
            "unspecified"
          ]
        },
        {
          "name": "tiers_mode",
          "type": "varchar",
          "description": "Defines if the tiering price should be graduated or volume based. In volume-based tiering, the maximum quantity within a period determines the per unit price. In graduated tiering, pricing can change as the quantity grows.",
          "enum": [
            "graduated",
            "volume"
          ],
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "transform_quantity_divide_by",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": "Divide usage by this number."
        },
        {
          "name": "transform_quantity_round",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "After division, either round the result up or down."
        },
        {
          "name": "type",
          "type": "varchar",
          "description": "One of one_time or recurring depending on whether the price is for a one-time purchase or a recurring (subscription) purchase.",
          "enum": [
            "one_time",
            "recurring"
          ],
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "unit_amount",
          "type": "bigint",
          "description": "The unit amount in cents to be charged, represented as a whole integer if possible. Only set if billing_scheme=per_unit.",
          "confidence": "verified",
          "raw_type": "bigint"
        },
        {
          "name": "unit_amount_decimal",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The unit amount in cents to be charged, represented as a decimal string with at most 12 decimal places. Only set if billing_scheme=per_unit."
        }
      ],
      "foreign_keys": [
        {
          "columns": [
            "product_id"
          ],
          "references": {
            "table": "products",
            "columns": [
              "id"
            ]
          }
        }
      ],
      "notes": [
        "When billing_scheme is 'tiered', unit_amount is null and the real pricing lives in price_tiers."
      ],
      "verified_against_account": true
    },
    {
      "name": "prices_currency_options",
      "dataset": "billing",
      "source": "api_backed",
      "freshness_hours": 3,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Per-currency overrides for multi-currency prices.",
      "grain": "One row per (price, currency).",
      "primary_key": [
        "currency",
        "price_id"
      ],
      "columns": [
        {
          "name": "currency",
          "type": "varchar",
          "description": "Currency this option applies to.",
          "confidence": "verified",
          "key": "primary"
        },
        {
          "name": "price_id",
          "type": "varchar",
          "key": "primary",
          "description": "Price being overridden.",
          "confidence": "verified"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "unit_amount",
          "type": "bigint",
          "description": "Amount in that currency's minor units.",
          "confidence": "verified",
          "raw_type": "bigint"
        },
        {
          "name": "unit_amount_decimal",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        }
      ],
      "foreign_keys": [
        {
          "columns": [
            "price_id"
          ],
          "references": {
            "table": "prices",
            "columns": [
              "id"
            ]
          }
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "prices_metadata",
      "dataset": "billing",
      "source": "api_backed",
      "freshness_hours": 3,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Metadata key/value pairs set on prices. One row per (object, metadata key) pair. Objects with no metadata have no rows.",
      "grain": "One row per (object, metadata key) pair. Objects with no metadata have no rows.",
      "primary_key": [
        "key",
        "price_id"
      ],
      "columns": [
        {
          "name": "key",
          "type": "varchar",
          "description": "The metadata key set on the object.",
          "confidence": "verified",
          "key": "primary"
        },
        {
          "name": "price_id",
          "type": "varchar",
          "key": "primary",
          "description": "References the id column of the parent object table.",
          "confidence": "verified"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "value",
          "type": "varchar",
          "description": "The metadata value for that key. Always a string, even when it holds a number or boolean.",
          "confidence": "verified",
          "raw_type": "varchar"
        }
      ],
      "columns_complete": true,
      "foreign_keys": [
        {
          "columns": [
            "price_id"
          ],
          "references": {
            "table": "prices",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        }
      ],
      "notes": [
        "Values are always strings, even when they hold numbers or booleans.",
        "Pivot to columns with: select price_id, map_agg(key, value) as md from prices_metadata group by 1"
      ],
      "derived_from_convention": "metadata_tables",
      "verified_against_account": true
    },
    {
      "name": "products",
      "dataset": "billing",
      "source": "api_backed",
      "freshness_hours": 3,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Goods or services you sell.",
      "grain": "One row per product.",
      "primary_key": [
        "id"
      ],
      "columns_complete": true,
      "columns": [
        {
          "name": "id",
          "type": "varchar",
          "key": "primary",
          "description": "Unique identifier for the object.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-billing-data.md"
          ]
        },
        {
          "name": "active",
          "type": "boolean",
          "description": "Whether the product is currently available for purchase.",
          "confidence": "verified",
          "raw_type": "boolean"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": "The time in epoch format at which updates to the object were processed through the Stripe Data Pipeline. If the object hasn't changed, the time remains unchanged. This field isn't available in Sigma. It's only available for core API tables, including Connect versions, exported through the Stripe Data Pipeline."
        },
        {
          "name": "caption",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "created",
          "type": "timestamp",
          "description": "Time at which the object was created. Measured in seconds since the Unix epoch.",
          "confidence": "verified",
          "raw_type": "timestamp"
        },
        {
          "name": "deactivate_on",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "description",
          "type": "varchar",
          "description": "The product's description, meant to be displayable to the customer. Use this field to optionally store a long form explanation of the product being sold for your own rendering purposes.",
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "name",
          "type": "varchar",
          "description": "The product's name, meant to be displayable to the customer.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-billing-data.md"
          ],
          "raw_type": "varchar"
        },
        {
          "name": "shippable",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": "Whether this product is shipped (i.e., physical goods)."
        },
        {
          "name": "statement_descriptor",
          "type": "varchar",
          "description": "Extra information about a product which will appear on your customer's credit card statement. In the case that multiple products are billed at once, the first statement descriptor will be used. Only used for subscription payments.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-billing-data.md"
          ],
          "raw_type": "varchar"
        },
        {
          "name": "type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The type of the product. The product is either of type good, which is eligible for use with Orders and SKUs, or service, which is eligible for use with Subscriptions and Plans."
        },
        {
          "name": "unit_label",
          "type": "varchar",
          "description": "A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal.",
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "url",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "A URL of a publicly-accessible webpage for this product."
        }
      ],
      "foreign_keys": [],
      "verified_against_account": true
    },
    {
      "name": "products_metadata",
      "dataset": "billing",
      "source": "api_backed",
      "freshness_hours": 3,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Metadata key/value pairs set on products. One row per (object, metadata key) pair. Objects with no metadata have no rows.",
      "grain": "One row per (object, metadata key) pair. Objects with no metadata have no rows.",
      "primary_key": [
        "key"
      ],
      "columns": [
        {
          "name": "key",
          "type": "varchar",
          "description": "The metadata key set on the object.",
          "confidence": "verified",
          "key": "primary"
        },
        {
          "name": "product_id",
          "type": "varchar",
          "key": "foreign",
          "description": "References the id column of the parent object table.",
          "confidence": "verified"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "value",
          "type": "varchar",
          "description": "The metadata value for that key. Always a string, even when it holds a number or boolean.",
          "confidence": "verified",
          "raw_type": "varchar"
        }
      ],
      "columns_complete": true,
      "foreign_keys": [
        {
          "columns": [
            "product_id"
          ],
          "references": {
            "table": "products",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        }
      ],
      "notes": [
        "Values are always strings, even when they hold numbers or booleans.",
        "Pivot to columns with: select product_id, map_agg(key, value) as md from products_metadata group by 1"
      ],
      "derived_from_convention": "metadata_tables",
      "verified_against_account": true
    },
    {
      "name": "promotion_codes",
      "dataset": "billing",
      "source": "api_backed",
      "freshness_hours": 3,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Customer-facing codes that map to a coupon.",
      "grain": "One row per promotion code.",
      "primary_key": [
        "id"
      ],
      "columns_complete": true,
      "columns": [
        {
          "name": "id",
          "type": "varchar",
          "key": "primary",
          "description": "Unique identifier, prefixed promo_.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-billing-data.md"
          ]
        },
        {
          "name": "active",
          "type": "boolean",
          "description": "Whether the code can still be redeemed.",
          "confidence": "verified",
          "raw_type": "boolean"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "code",
          "type": "varchar",
          "description": "The code customers type in, e.g. SPRING25.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-billing-data.md"
          ],
          "raw_type": "varchar"
        },
        {
          "name": "coupon_id",
          "type": "varchar",
          "key": "foreign",
          "description": "Coupon this code applies.",
          "confidence": "verified"
        },
        {
          "name": "created",
          "type": "timestamp",
          "description": "When the promotion code was created (UTC).",
          "confidence": "verified",
          "raw_type": "timestamp"
        },
        {
          "name": "customer_id",
          "type": "varchar",
          "key": "foreign",
          "description": "Customer the code is restricted to, if any.",
          "confidence": "verified"
        },
        {
          "name": "expires_at",
          "type": "bigint",
          "description": "When the code expires.",
          "confidence": "verified",
          "raw_type": "bigint"
        },
        {
          "name": "max_redemptions",
          "type": "bigint",
          "description": "Redemption limit for the code.",
          "confidence": "verified",
          "raw_type": "bigint"
        },
        {
          "name": "restrictions_first_time_transaction",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": ""
        },
        {
          "name": "restrictions_minium_amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "restrictions_minium_amount_currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "times_redeemed",
          "type": "bigint",
          "description": "Number of times the code has been redeemed.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-billing-data.md"
          ],
          "raw_type": "bigint"
        }
      ],
      "foreign_keys": [
        {
          "columns": [
            "coupon_id"
          ],
          "references": {
            "table": "coupons",
            "columns": [
              "id"
            ]
          }
        },
        {
          "columns": [
            "customer_id"
          ],
          "references": {
            "table": "customers",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        }
      ],
      "verified_against_account": true
    },
    {
      "name": "purchase_details_receipts",
      "dataset": "unclassified",
      "source": "api_backed",
      "freshness_hours": null,
      "preview": false,
      "listed_in_stripe_freshness_table": false,
      "description": "",
      "grain": "",
      "primary_key": [],
      "foreign_keys": [
        {
          "columns": [
            "issuing_transaction_id"
          ],
          "references": {
            "table": "issuing_transactions",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        }
      ],
      "notes": [],
      "columns": [
        {
          "name": "issuing_transaction_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "description",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "quantity",
          "type": "double",
          "confidence": "verified",
          "raw_type": "double",
          "description": ""
        },
        {
          "name": "total",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "unit_cost",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "quote_metadata",
      "dataset": "unclassified",
      "source": "api_backed",
      "freshness_hours": null,
      "preview": false,
      "listed_in_stripe_freshness_table": false,
      "description": "",
      "grain": "",
      "primary_key": [
        "key",
        "quote_id"
      ],
      "foreign_keys": [],
      "notes": [],
      "columns": [
        {
          "name": "key",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "quote_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "value",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "quotes",
      "dataset": "billing",
      "source": "api_backed",
      "freshness_hours": 3,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Sales quotes that can be accepted to create an invoice or subscription.",
      "grain": "One row per quote.",
      "primary_key": [
        "id"
      ],
      "columns": [
        {
          "name": "id",
          "type": "varchar",
          "key": "primary",
          "description": "Unique identifier, prefixed qt_.",
          "confidence": "verified"
        },
        {
          "name": "accepted_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "amount_subtotal",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "amount_total",
          "type": "bigint",
          "description": "Quote total in minor currency units.",
          "confidence": "verified",
          "raw_type": "bigint"
        },
        {
          "name": "application_fee_amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "application_fee_percent",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "automatic_tax_enabled",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": ""
        },
        {
          "name": "automatic_tax_status",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "canceled_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "cloned_from",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "collection_method",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "created",
          "type": "timestamp",
          "description": "When the quote was created (UTC).",
          "confidence": "verified",
          "raw_type": "timestamp"
        },
        {
          "name": "currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "customer_id",
          "type": "varchar",
          "key": "foreign",
          "description": "Customer the quote is for.",
          "confidence": "verified"
        },
        {
          "name": "default_tax_rates",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "description",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "expires_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "finalized_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "footer",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "header",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "invoice_id",
          "type": "varchar",
          "key": "foreign",
          "description": "Invoice created on acceptance.",
          "confidence": "verified"
        },
        {
          "name": "invoice_settings_days_until_due",
          "type": "double",
          "confidence": "verified",
          "raw_type": "double",
          "description": ""
        },
        {
          "name": "is_revision",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": ""
        },
        {
          "name": "line_item_group",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "number",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "on_behalf_of_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "recurring_line_item_group",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "status",
          "type": "varchar",
          "description": "Quote status.",
          "enum": [
            "draft",
            "open",
            "accepted",
            "canceled"
          ],
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "subscription_data_billing_mode_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "subscription_data_description",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "subscription_data_effective_date",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "subscription_data_proration_discounts",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "subscription_data_trial_period_days",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "subscription_id",
          "type": "varchar",
          "key": "foreign",
          "description": "Subscription created on acceptance.",
          "confidence": "verified"
        },
        {
          "name": "transfer_data_amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "transfer_data_destination_amount_percent",
          "type": "double",
          "confidence": "verified",
          "raw_type": "double",
          "description": ""
        },
        {
          "name": "transfer_data_destination_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "upcoming_line_item_group",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        }
      ],
      "foreign_keys": [
        {
          "columns": [
            "customer_id"
          ],
          "references": {
            "table": "customers",
            "columns": [
              "id"
            ]
          }
        },
        {
          "columns": [
            "invoice_id"
          ],
          "references": {
            "table": "invoices",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        },
        {
          "columns": [
            "subscription_id"
          ],
          "references": {
            "table": "subscriptions",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "radar_data_integration",
      "dataset": "radar",
      "source": "derived",
      "freshness_hours": 48,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Custom data you have sent to Radar for use in rules, joined back to the payments it scored.",
      "grain": "One row per submitted data point.",
      "primary_key": [],
      "columns": [],
      "foreign_keys": [],
      "columns_complete": false,
      "verified_against_account": false
    },
    {
      "name": "radar_rule_attributes",
      "dataset": "radar",
      "source": "derived",
      "freshness_hours": 48,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Snapshot of most Radar rule attribute values as evaluated for a single charge. Useful for backtesting rules against known outcomes.",
      "grain": "One row per charge.",
      "primary_key": [
        "transaction_id"
      ],
      "columns_complete": false,
      "columns": [
        {
          "name": "card_3d_secure_support",
          "type": "varchar",
          "description": "Whether the card supports 3D Secure.",
          "confidence": "documented"
        },
        {
          "name": "cvc_check",
          "type": "varchar",
          "description": "CVC verification result at evaluation time.",
          "confidence": "documented"
        },
        {
          "name": "is_3d_secure_authenticated",
          "type": "boolean",
          "description": "Whether the payment was authenticated with 3D Secure.",
          "confidence": "documented"
        },
        {
          "name": "risk_score",
          "type": "bigint",
          "description": "Radar risk score from 0 to 100.",
          "confidence": "documented"
        },
        {
          "name": "total_charges_per_card_number_all_time",
          "type": "bigint",
          "description": "Lifetime charge count seen for this card number.",
          "confidence": "documented"
        },
        {
          "name": "transaction_id",
          "type": "varchar",
          "key": "primary",
          "description": "The charge these attributes were evaluated for. Joins to charges.id and to disputes.charge_id.",
          "confidence": "documented",
          "doc_sources": [
            "data_query-disputes-and-fraud-data.md"
          ]
        }
      ],
      "foreign_keys": [
        {
          "columns": [
            "transaction_id"
          ],
          "references": {
            "table": "charges",
            "columns": [
              "id"
            ]
          },
          "confidence": "documented"
        }
      ],
      "notes": [
        "The full attribute list mirrors Radar's supported rule attributes and is wider than what is listed here.",
        "Join to disputes on radar_rule_attributes.transaction_id = disputes.charge_id to profile disputed traffic."
      ],
      "verified_against_account": false
    },
    {
      "name": "radar_rules",
      "dataset": "radar",
      "source": "derived",
      "freshness_hours": 24,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Radar for Fraud Teams custom rules, with their action and predicate. Built-in Stripe rules have fixed ids.",
      "grain": "One row per rule.",
      "primary_key": [
        "rule_id"
      ],
      "columns_complete": true,
      "columns": [
        {
          "name": "rule_id",
          "type": "varchar",
          "key": "primary",
          "description": "Rule identifier. Built-in rules use fixed string ids such as allow_if_in_allowlist.",
          "confidence": "verified"
        },
        {
          "name": "action",
          "type": "varchar",
          "description": "What the rule does.",
          "enum": [
            "block",
            "review",
            "allow",
            "request_credentials"
          ],
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "predicate",
          "type": "varchar",
          "description": "The rule expression as written in Radar.",
          "confidence": "verified",
          "raw_type": "varchar"
        }
      ],
      "notes": [
        "Join to rule_decisions on rule_id to find every payment a rule affected \u2014 broader than charges.outcome_rule_id, which misses 3DS rules on PaymentIntents and SetupIntents."
      ],
      "foreign_keys": [],
      "verified_against_account": true
    },
    {
      "name": "rate_card_rates_beta",
      "dataset": "unclassified",
      "source": "api_backed",
      "freshness_hours": null,
      "preview": false,
      "listed_in_stripe_freshness_table": false,
      "description": "",
      "grain": "",
      "primary_key": [
        "id"
      ],
      "foreign_keys": [],
      "notes": [],
      "columns": [
        {
          "name": "id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "created_at",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "custom_pricing_unit_amount_custom_pricing_unit_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "custom_pricing_unit_amount_value",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "locality_zone",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "metadata",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "metered_item_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "object",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "rate_card_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "rate_card_version_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "tiering_mode",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "transform_quantity_divide_by",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "transform_quantity_round",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "unit_amount",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "recoveries",
      "dataset": "billing",
      "source": "derived",
      "freshness_hours": 48,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Smart Retries and dunning outcomes \u2014 revenue recovered after a failed subscription payment.",
      "grain": "One row per recovery attempt or recovered invoice.",
      "primary_key": [
        "id"
      ],
      "columns": [
        {
          "name": "id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "amount_due",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "amount_paid",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "attempt_count",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "initial_failed_amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "initial_payment_decline_reason",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "initial_payment_failed_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "next_payment_attempt",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "on_behalf_of_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "paid_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "recovered_amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "recovered_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "recovery_method",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "reporting_currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "retries_exhausted",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": ""
        },
        {
          "name": "retry_attempt_count",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "source_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "source_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        }
      ],
      "notes": [
        "The table to use for involuntary churn and dunning effectiveness reporting."
      ],
      "foreign_keys": [],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "refunds",
      "dataset": "payments",
      "source": "api_backed",
      "freshness_hours": 3,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "One row per Refund object. Refunds are separate objects from charges; refunding a charge creates a row here and a matching balance transaction.",
      "grain": "One row per refund. A charge may have many partial refunds.",
      "primary_key": [
        "id"
      ],
      "columns_complete": true,
      "columns": [
        {
          "name": "id",
          "type": "varchar",
          "key": "primary",
          "description": "Unique identifier for the object.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-transactions.md",
            "data_write-queries.md"
          ]
        },
        {
          "name": "amount",
          "type": "bigint",
          "description": "Amount, in cents.",
          "confidence": "verified",
          "raw_type": "bigint"
        },
        {
          "name": "balance_transaction_id",
          "type": "varchar",
          "key": "foreign",
          "description": "Balance transaction that describes the impact on your account balance.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-transactions.md"
          ]
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": "The time in epoch format at which updates to the object were processed through the Stripe Data Pipeline. If the object hasn't changed, the time remains unchanged. This field isn't available in Sigma. It's only available for core API tables, including Connect versions, exported through the Stripe Data Pipeline."
        },
        {
          "name": "charge_id",
          "type": "varchar",
          "key": "foreign",
          "description": "ID of the charge that's refunded.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-transactions.md",
            "data_write-queries.md"
          ]
        },
        {
          "name": "created",
          "type": "timestamp",
          "description": "Time at which the object was created. Measured in seconds since the Unix epoch.",
          "confidence": "verified",
          "raw_type": "timestamp"
        },
        {
          "name": "currency",
          "type": "varchar",
          "description": "Three-letter ISO currency code, in lowercase. Must be a supported currency.",
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "failure_balance_transaction_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "After the refund fails, this balance transaction describes the adjustment made on your account balance that reverses the initial balance transaction.",
          "key": "foreign"
        },
        {
          "name": "failure_reason",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "Provides the reason for the refund failure. Possible values are: lost_or_stolen_card, expired_or_canceled_card, charge_for_pending_refund_disputed, insufficient_funds, declined, merchant_request, or unknown."
        },
        {
          "name": "reason",
          "type": "varchar",
          "description": "Reason for the refund, which is either user-provided (duplicate, fraudulent, or requested_by_customer) or generated by Stripe internally (expired_uncaptured_charge).",
          "enum": [
            "duplicate",
            "fraudulent",
            "requested_by_customer",
            "partial_capture",
            "expired_uncaptured_charge"
          ],
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "receipt_number",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "This is the transaction number that appears on email receipts sent for this refund."
        },
        {
          "name": "refund_description",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "An arbitrary string attached to the object. You can use this for displaying to users (available on non-card refunds only)."
        },
        {
          "name": "refund_payment_intent",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "ID of the PaymentIntent that's refunded."
        },
        {
          "name": "refund_transfer_reversal_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "This refers to the transfer reversal object if the accompanying transfer reverses. This is only applicable if the charge was created using the destination parameter.",
          "key": "foreign"
        },
        {
          "name": "source_transfer_reversal_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "The transfer reversal that's associated with the refund. Only present if the charge came from another Stripe account.",
          "key": "foreign"
        },
        {
          "name": "status",
          "type": "varchar",
          "description": "Status of the refund. This can be pending, requires_action, succeeded, failed, or canceled. Learn more about failed refunds.",
          "enum": [
            "pending",
            "requires_action",
            "succeeded",
            "failed",
            "canceled"
          ],
          "confidence": "verified",
          "raw_type": "varchar"
        }
      ],
      "foreign_keys": [
        {
          "columns": [
            "charge_id"
          ],
          "references": {
            "table": "charges",
            "columns": [
              "id"
            ]
          },
          "confidence": "documented"
        },
        {
          "columns": [
            "balance_transaction_id"
          ],
          "references": {
            "table": "balance_transactions",
            "columns": [
              "id"
            ]
          },
          "confidence": "documented"
        }
      ],
      "notes": [
        "reason = 'partial_capture' rows are an artifact of auth-and-capture, not customer refunds. Filter them out of refund-rate metrics."
      ],
      "verified_against_account": true
    },
    {
      "name": "refunds_metadata",
      "dataset": "payments",
      "source": "api_backed",
      "freshness_hours": 3,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Metadata key/value pairs set on refunds. One row per (object, metadata key) pair. Objects with no metadata have no rows.",
      "grain": "One row per (object, metadata key) pair. Objects with no metadata have no rows.",
      "primary_key": [
        "key"
      ],
      "columns": [
        {
          "name": "key",
          "type": "varchar",
          "description": "The metadata key set on the object.",
          "confidence": "verified",
          "key": "primary"
        },
        {
          "name": "refund_id",
          "type": "varchar",
          "key": "foreign",
          "description": "References the id column of the parent object table.",
          "confidence": "verified"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "value",
          "type": "varchar",
          "description": "The metadata value for that key. Always a string, even when it holds a number or boolean.",
          "confidence": "verified",
          "raw_type": "varchar"
        }
      ],
      "columns_complete": true,
      "foreign_keys": [
        {
          "columns": [
            "refund_id"
          ],
          "references": {
            "table": "refunds",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        }
      ],
      "notes": [
        "Values are always strings, even when they hold numbers or booleans.",
        "Pivot to columns with: select refund_id, map_agg(key, value) as md from refunds_metadata group by 1"
      ],
      "derived_from_convention": "metadata_tables",
      "verified_against_account": true
    },
    {
      "name": "revenue_recognition_debits_and_credits",
      "dataset": "other",
      "source": "derived",
      "freshness_hours": 3,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Double-entry debits and credits produced by Stripe Revenue Recognition, for building deferred revenue and recognized revenue schedules.",
      "grain": "One row per accounting entry.",
      "primary_key": [
        "id"
      ],
      "notes": [
        "Pairs with Stripe's Revenue Recognition reports; see docs.stripe.com/revenue-recognition/reports/sigma-and-sdp."
      ],
      "columns": [
        {
          "name": "id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "accounting_period_date",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "adjustment_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "amount",
          "type": "double",
          "confidence": "verified",
          "raw_type": "double",
          "description": ""
        },
        {
          "name": "booked_date",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "charge_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "credit",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "credit_account_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "credit_gl_code",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "credit_note_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "customer_balance_transaction_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "customer_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "debit",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "debit_account_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "debit_gl_code",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "dispute_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "event_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "external_transaction_source",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "invoice_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "invoice_item_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "is_accounting_period_open",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": ""
        },
        {
          "name": "line_item_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "livemode",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": ""
        },
        {
          "name": "manual_journal_entry_model_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "original_accounting_period_date",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "plan_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "presentment_amount",
          "type": "double",
          "confidence": "verified",
          "raw_type": "double",
          "description": ""
        },
        {
          "name": "presentment_currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "price_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "product_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "product_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "refund_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "subscription_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "subscription_item_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "subscription_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        }
      ],
      "foreign_keys": [
        {
          "columns": [
            "charge_id"
          ],
          "references": {
            "table": "charges",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        },
        {
          "columns": [
            "credit_note_id"
          ],
          "references": {
            "table": "credit_notes",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        },
        {
          "columns": [
            "customer_balance_transaction_id"
          ],
          "references": {
            "table": "customer_balance_transactions",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        },
        {
          "columns": [
            "customer_id"
          ],
          "references": {
            "table": "customers",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        },
        {
          "columns": [
            "dispute_id"
          ],
          "references": {
            "table": "disputes",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        },
        {
          "columns": [
            "invoice_id"
          ],
          "references": {
            "table": "invoices",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        },
        {
          "columns": [
            "invoice_item_id"
          ],
          "references": {
            "table": "invoice_items",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        },
        {
          "columns": [
            "price_id"
          ],
          "references": {
            "table": "prices",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        },
        {
          "columns": [
            "product_id"
          ],
          "references": {
            "table": "products",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        },
        {
          "columns": [
            "refund_id"
          ],
          "references": {
            "table": "refunds",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        },
        {
          "columns": [
            "subscription_id"
          ],
          "references": {
            "table": "subscriptions",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        },
        {
          "columns": [
            "subscription_item_id"
          ],
          "references": {
            "table": "subscription_items",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "revenue_recognition_exclusions",
      "dataset": "unclassified",
      "source": "api_backed",
      "freshness_hours": null,
      "preview": false,
      "listed_in_stripe_freshness_table": false,
      "description": "",
      "grain": "",
      "primary_key": [
        "transaction_id"
      ],
      "foreign_keys": [],
      "notes": [],
      "columns": [
        {
          "name": "transaction_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "created_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "deleted_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "revenue_recognition_manual_journal_entries",
      "dataset": "unclassified",
      "source": "api_backed",
      "freshness_hours": null,
      "preview": false,
      "listed_in_stripe_freshness_table": false,
      "description": "",
      "grain": "",
      "primary_key": [
        "id"
      ],
      "foreign_keys": [],
      "notes": [],
      "columns": [
        {
          "name": "id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "accounting_period_date",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "created",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "credit_account",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "credit_account_gl_name",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "debit_account",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "debit_account_gl_name",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "deleted_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "description",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "email",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "livemode",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": ""
        },
        {
          "name": "presentment_amount",
          "type": "double",
          "confidence": "verified",
          "raw_type": "double",
          "description": ""
        },
        {
          "name": "presentment_currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "settlement_amount",
          "type": "double",
          "confidence": "verified",
          "raw_type": "double",
          "description": ""
        },
        {
          "name": "settlement_currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "transaction_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "revenue_recognition_month_summary",
      "dataset": "unclassified",
      "source": "api_backed",
      "freshness_hours": null,
      "preview": false,
      "listed_in_stripe_freshness_table": false,
      "description": "",
      "grain": "",
      "primary_key": [
        "id"
      ],
      "foreign_keys": [
        {
          "columns": [
            "charge_id"
          ],
          "references": {
            "table": "charges",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        },
        {
          "columns": [
            "credit_note_id"
          ],
          "references": {
            "table": "credit_notes",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        },
        {
          "columns": [
            "customer_balance_transaction_id"
          ],
          "references": {
            "table": "customer_balance_transactions",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        },
        {
          "columns": [
            "customer_id"
          ],
          "references": {
            "table": "customers",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        },
        {
          "columns": [
            "dispute_id"
          ],
          "references": {
            "table": "disputes",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        },
        {
          "columns": [
            "invoice_id"
          ],
          "references": {
            "table": "invoices",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        },
        {
          "columns": [
            "invoice_item_id"
          ],
          "references": {
            "table": "invoice_items",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        },
        {
          "columns": [
            "plan_id"
          ],
          "references": {
            "table": "plans",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        },
        {
          "columns": [
            "product_id"
          ],
          "references": {
            "table": "products",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        },
        {
          "columns": [
            "refund_id"
          ],
          "references": {
            "table": "refunds",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        },
        {
          "columns": [
            "subscription_id"
          ],
          "references": {
            "table": "subscriptions",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        },
        {
          "columns": [
            "subscription_item_id"
          ],
          "references": {
            "table": "subscription_items",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        }
      ],
      "notes": [],
      "columns": [
        {
          "name": "id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "accounting_period_date",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "billing_interval",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "billing_interval_count",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "charge_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "credit_note_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "customer_balance_transaction_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "customer_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "dispute_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "external_transaction_source",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "invoice_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "invoice_item_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "line_item_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "livemode",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": ""
        },
        {
          "name": "locality_zone",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "month_summary_entry_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "plan_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "presentment_currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "presentment_net_amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "product_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "refund_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "settlement_currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "settlement_net_amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "subscription_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "subscription_item_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "transaction_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "rule_decisions",
      "dataset": "payments",
      "source": "api_backed",
      "freshness_hours": 3,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Every Radar rule evaluation, including 3DS rules triggered on PaymentIntents and SetupIntents.",
      "grain": "One row per rule decision.",
      "primary_key": [
        "id"
      ],
      "columns_complete": true,
      "columns": [
        {
          "name": "id",
          "type": "varchar",
          "key": "primary",
          "description": "Unique identifier for the decision.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-disputes-and-fraud-data.md"
          ]
        },
        {
          "name": "action",
          "type": "varchar",
          "description": "Action the rule took, e.g. request_credentials.",
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "charge_id",
          "type": "varchar",
          "key": "foreign",
          "description": "Charge the decision applied to, if any.",
          "confidence": "verified"
        },
        {
          "name": "created",
          "type": "timestamp",
          "description": "When the rule was evaluated (UTC).",
          "confidence": "verified",
          "doc_sources": [
            "data_query-disputes-and-fraud-data.md"
          ],
          "raw_type": "timestamp"
        },
        {
          "name": "payment_intent_id",
          "type": "varchar",
          "key": "foreign",
          "description": "PaymentIntent the decision applied to.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-disputes-and-fraud-data.md"
          ]
        },
        {
          "name": "rule_id",
          "type": "varchar",
          "key": "foreign",
          "description": "Rule that produced the decision.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-disputes-and-fraud-data.md"
          ]
        },
        {
          "name": "rule_override_by_allow_rule",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": ""
        },
        {
          "name": "setup_intent_id",
          "type": "varchar",
          "key": "foreign",
          "description": "SetupIntent the decision applied to, if any.",
          "confidence": "verified"
        }
      ],
      "foreign_keys": [
        {
          "columns": [
            "rule_id"
          ],
          "references": {
            "table": "radar_rules",
            "columns": [
              "rule_id"
            ]
          },
          "confidence": "documented"
        },
        {
          "columns": [
            "payment_intent_id"
          ],
          "references": {
            "table": "payment_intents",
            "columns": [
              "id"
            ]
          },
          "confidence": "documented"
        },
        {
          "columns": [
            "charge_id"
          ],
          "references": {
            "table": "charges",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        },
        {
          "columns": [
            "setup_intent_id"
          ],
          "references": {
            "table": "setup_intents",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        }
      ],
      "verified_against_account": true
    },
    {
      "name": "setup_attempts",
      "dataset": "payments",
      "source": "api_backed",
      "freshness_hours": 3,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Individual attempts to confirm a SetupIntent, including failures.",
      "grain": "One row per setup attempt. A SetupIntent can have several.",
      "primary_key": [
        "id"
      ],
      "columns": [
        {
          "name": "id",
          "type": "varchar",
          "key": "primary",
          "description": "Unique identifier for the attempt.",
          "confidence": "verified"
        },
        {
          "name": "application_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "created",
          "type": "timestamp",
          "description": "When the attempt occurred (UTC).",
          "confidence": "verified",
          "raw_type": "timestamp"
        },
        {
          "name": "customer_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "flow_directions",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "on_behalf_of_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "payment_method_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "setup_error_advice_code",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "setup_error_code",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "setup_error_decline_code",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "setup_error_doc_url",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "setup_error_message",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "setup_error_network_advice_code",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "setup_error_network_decline_code",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "setup_error_param",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "setup_error_payment_method_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "setup_error_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "setup_intent_id",
          "type": "varchar",
          "key": "foreign",
          "description": "SetupIntent being confirmed.",
          "confidence": "verified"
        },
        {
          "name": "status",
          "type": "varchar",
          "description": "Outcome of the attempt.",
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "usage",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        }
      ],
      "foreign_keys": [
        {
          "columns": [
            "setup_intent_id"
          ],
          "references": {
            "table": "setup_intents",
            "columns": [
              "id"
            ]
          }
        },
        {
          "columns": [
            "customer_id"
          ],
          "references": {
            "table": "customers",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        },
        {
          "columns": [
            "payment_method_id"
          ],
          "references": {
            "table": "payment_methods",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "setup_intents",
      "dataset": "payments",
      "source": "api_backed",
      "freshness_hours": 3,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Attempts to save a payment method for future use without charging it immediately.",
      "grain": "One row per SetupIntent.",
      "primary_key": [
        "id"
      ],
      "columns": [
        {
          "name": "id",
          "type": "varchar",
          "key": "primary",
          "description": "Unique identifier, prefixed seti_.",
          "confidence": "verified"
        },
        {
          "name": "application_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "cancellation_reason",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "card_request_three_d_secure",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "created",
          "type": "timestamp",
          "description": "When the intent was created (UTC).",
          "confidence": "verified",
          "raw_type": "timestamp"
        },
        {
          "name": "customer_id",
          "type": "varchar",
          "key": "foreign",
          "description": "Customer the method is being saved for.",
          "confidence": "verified"
        },
        {
          "name": "description",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "flow_directions",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "last_setup_error_advice_code",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "last_setup_error_code",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "last_setup_error_decline_code",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "last_setup_error_doc_url",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "last_setup_error_message",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "last_setup_error_network_advice_code",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "last_setup_error_network_decline_code",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "last_setup_error_param",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "last_setup_error_payment_method_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "last_setup_error_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "latest_attempt_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "managed_payments_enabled",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": ""
        },
        {
          "name": "mandate_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "on_behalf_of_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "payment_method_id",
          "type": "varchar",
          "key": "foreign",
          "description": "Payment method being set up.",
          "confidence": "verified"
        },
        {
          "name": "payment_method_types",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "single_use_mandate_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "status",
          "type": "varchar",
          "description": "Intent status.",
          "enum": [
            "requires_payment_method",
            "requires_confirmation",
            "requires_action",
            "processing",
            "canceled",
            "succeeded"
          ],
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "usage",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        }
      ],
      "foreign_keys": [
        {
          "columns": [
            "customer_id"
          ],
          "references": {
            "table": "customers",
            "columns": [
              "id"
            ]
          }
        },
        {
          "columns": [
            "mandate_id"
          ],
          "references": {
            "table": "mandates",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        },
        {
          "columns": [
            "payment_method_id"
          ],
          "references": {
            "table": "payment_methods",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "setup_intents_metadata",
      "dataset": "payments",
      "source": "api_backed",
      "freshness_hours": 3,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Metadata key/value pairs set on setup_intents. One row per (object, metadata key) pair. Objects with no metadata have no rows.",
      "grain": "One row per (object, metadata key) pair. Objects with no metadata have no rows.",
      "primary_key": [
        "key",
        "setup_intent_id"
      ],
      "columns": [
        {
          "name": "key",
          "type": "varchar",
          "description": "The metadata key set on the object.",
          "confidence": "verified",
          "key": "primary"
        },
        {
          "name": "setup_intent_id",
          "type": "varchar",
          "key": "primary",
          "description": "References the id column of the parent object table.",
          "confidence": "verified"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "value",
          "type": "varchar",
          "description": "The metadata value for that key. Always a string, even when it holds a number or boolean.",
          "confidence": "verified",
          "raw_type": "varchar"
        }
      ],
      "columns_complete": true,
      "foreign_keys": [
        {
          "columns": [
            "setup_intent_id"
          ],
          "references": {
            "table": "setup_intents",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        }
      ],
      "notes": [
        "Values are always strings, even when they hold numbers or booleans.",
        "Pivot to columns with: select setup_intent_id, map_agg(key, value) as md from setup_intents_metadata group by 1"
      ],
      "derived_from_convention": "metadata_tables",
      "verified_against_account": true
    },
    {
      "name": "sources",
      "dataset": "payments",
      "source": "api_backed",
      "freshness_hours": 3,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Legacy payment sources, superseded by payment_methods. Present for older integrations.",
      "grain": "One row per source.",
      "primary_key": [
        "id"
      ],
      "columns": [
        {
          "name": "id",
          "type": "varchar",
          "key": "primary",
          "description": "Unique identifier, prefixed src_ (or card_ for legacy cards).",
          "confidence": "verified"
        },
        {
          "name": "amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "client_secret",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "code_verification_attempts_remaining",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "code_verification_status",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "created",
          "type": "timestamp",
          "description": "When the source was created (UTC).",
          "confidence": "verified",
          "raw_type": "timestamp"
        },
        {
          "name": "currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "flow",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "owner_address_city",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "owner_address_country",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "owner_address_line1",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "owner_address_line2",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "owner_address_postal_code",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "owner_address_state",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "owner_email",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "owner_name",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "owner_phone",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "owner_verified_address_city",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "owner_verified_address_country",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "owner_verified_address_line1",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "owner_verified_address_line2",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "owner_verified_address_postal_code",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "owner_verified_address_state",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "owner_verified_email",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "owner_verified_name",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "owner_verified_phone",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "receiver_address",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "receiver_amount_charged",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "receiver_amount_received",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "receiver_amount_returned",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "redirect_failure_reason",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "redirect_return_url",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "redirect_status",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "redirect_url",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "status",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "type",
          "type": "varchar",
          "description": "Source type.",
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "usage",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        }
      ],
      "notes": [
        "Prefer payment_methods for anything built after the Sources API was deprecated."
      ],
      "foreign_keys": [],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "sources_metadata",
      "dataset": "payments",
      "source": "api_backed",
      "freshness_hours": 3,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Metadata key/value pairs set on sources. One row per (object, metadata key) pair. Objects with no metadata have no rows.",
      "grain": "One row per (object, metadata key) pair. Objects with no metadata have no rows.",
      "primary_key": [
        "key"
      ],
      "columns": [
        {
          "name": "key",
          "type": "varchar",
          "description": "The metadata key set on the object.",
          "confidence": "verified",
          "key": "primary"
        },
        {
          "name": "source_id",
          "type": "varchar",
          "key": "foreign",
          "description": "References the id column of the parent object table.",
          "confidence": "verified"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "value",
          "type": "varchar",
          "description": "The metadata value for that key. Always a string, even when it holds a number or boolean.",
          "confidence": "verified",
          "raw_type": "varchar"
        }
      ],
      "columns_complete": true,
      "foreign_keys": [
        {
          "columns": [
            "source_id"
          ],
          "references": {
            "table": "sources",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        }
      ],
      "notes": [
        "Values are always strings, even when they hold numbers or booleans.",
        "Pivot to columns with: select source_id, map_agg(key, value) as md from sources_metadata group by 1"
      ],
      "derived_from_convention": "metadata_tables",
      "verified_against_account": true
    },
    {
      "name": "subscription_item_change_events",
      "dataset": "billing",
      "source": "derived",
      "freshness_hours": 24,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Pre-computed MRR movement events. Stripe's recommended basis for MRR, churn and expansion reporting \u2014 far more reliable than deriving movements from subscription status changes.",
      "grain": "One row per change to a subscription item that moves MRR.",
      "primary_key": [
        "event_timestamp",
        "event_type"
      ],
      "columns_complete": true,
      "columns": [
        {
          "name": "event_timestamp",
          "type": "varchar",
          "confidence": "verified",
          "description": "Time at which the subscription item change event occurred in UTC.",
          "key": "primary"
        },
        {
          "name": "event_type",
          "type": "varchar",
          "description": "The type of event that caused the change.",
          "confidence": "verified",
          "enum": [
            "ACTIVE_START",
            "ACTIVE_END",
            "ACTIVE_UPGRADE",
            "ACTIVE_DOWNGRADE",
            "ACTIVE_QUANTITY_INCREASE",
            "ACTIVE_QUANTITY_DECREASE"
          ],
          "key": "primary"
        },
        {
          "name": "subscription_item_id",
          "type": "varchar",
          "key": "foreign",
          "description": "Subscription item related to this subscription item change event.",
          "confidence": "verified"
        },
        {
          "name": "currency",
          "type": "varchar",
          "description": "Three-letter ISO currency code, in lowercase. Must be a supported currency.",
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "customer_id",
          "type": "varchar",
          "key": "foreign",
          "description": "Customer related to this subscription item change event.",
          "confidence": "verified"
        },
        {
          "name": "local_event_timestamp",
          "type": "timestamp",
          "description": "Time at which the subscription item change event occurred in the merchant\u2019s timezone.",
          "confidence": "verified",
          "raw_type": "timestamp"
        },
        {
          "name": "mrr_change",
          "type": "bigint",
          "description": "The amount that MRR changed in the currency (in minor currency units) on the day of the `local_event_timestamp``.",
          "confidence": "verified",
          "raw_type": "bigint"
        },
        {
          "name": "price_id",
          "type": "varchar",
          "key": "foreign",
          "description": "Price related to this subscription item change event.",
          "confidence": "verified"
        },
        {
          "name": "product_id",
          "type": "varchar",
          "key": "foreign",
          "description": "Product related to this subscription item change event.",
          "confidence": "verified"
        },
        {
          "name": "quantity_change",
          "type": "bigint",
          "description": "The amount that quantity changed on the day of the `local_event_timestamp``.",
          "confidence": "verified",
          "raw_type": "bigint"
        },
        {
          "name": "subscription_id",
          "type": "varchar",
          "key": "foreign",
          "description": "Subscription related to this subscription item change event.",
          "confidence": "verified"
        }
      ],
      "notes": [
        "event_type's enum values were confirmed by `SELECT event_type, COUNT(*) FROM subscription_item_change_events GROUP BY event_type` against a live Sigma account \u2014 aggregate value/count only, no customer data, ids or amounts.",
        "event_type's observed values follow an ACTIVE_<VERB> pattern (start, end, upgrade, downgrade, quantity increase/decrease). Other subscription lifecycle states (e.g. trialing, canceled) may use analogous TRIAL_*/CANCELED_* prefixes not yet seen in any verified account \u2014 unconfirmed, flagged for further verification rather than assumed.",
        "Cumulatively sum mrr_change per customer ordered by local_event_timestamp to reconstruct MRR at any point in time.",
        "subscription_item_change_events_v2_beta has the same columns with 3-hour freshness instead of 24-hour.",
        "Values are per-currency. Convert with exchange_rates_from_usd before summing across currencies."
      ],
      "foreign_keys": [
        {
          "columns": [
            "subscription_item_id"
          ],
          "references": {
            "table": "subscription_items",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        },
        {
          "columns": [
            "customer_id"
          ],
          "references": {
            "table": "customers",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        },
        {
          "columns": [
            "price_id"
          ],
          "references": {
            "table": "prices",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        },
        {
          "columns": [
            "product_id"
          ],
          "references": {
            "table": "products",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        },
        {
          "columns": [
            "subscription_id"
          ],
          "references": {
            "table": "subscriptions",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        }
      ],
      "verified_against_account": true
    },
    {
      "name": "subscription_item_change_events_testmode",
      "dataset": "billing",
      "source": "derived",
      "freshness_hours": 48,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Sandbox/test-mode equivalent of subscription_item_change_events.",
      "grain": "One row per MRR-moving change to a test-mode subscription item.",
      "primary_key": [],
      "columns": [
        {
          "name": "currency",
          "type": "varchar",
          "description": "Currency of mrr_change.",
          "confidence": "documented"
        },
        {
          "name": "customer_id",
          "type": "varchar",
          "key": "foreign",
          "description": "Customer whose MRR changed.",
          "confidence": "documented"
        },
        {
          "name": "event_type",
          "type": "varchar",
          "description": "Kind of change that occurred.",
          "confidence": "verified",
          "enum": [
            "ACTIVE_START",
            "ACTIVE_END",
            "ACTIVE_UPGRADE",
            "ACTIVE_DOWNGRADE",
            "ACTIVE_QUANTITY_INCREASE",
            "ACTIVE_QUANTITY_DECREASE"
          ]
        },
        {
          "name": "local_event_timestamp",
          "type": "timestamp",
          "description": "When the change took effect, in your account's local time.",
          "confidence": "documented"
        },
        {
          "name": "mrr_change",
          "type": "bigint",
          "description": "Signed change in monthly recurring revenue, in minor currency units.",
          "confidence": "documented"
        },
        {
          "name": "price_id",
          "type": "varchar",
          "key": "foreign",
          "description": "Price on the changed item.",
          "confidence": "documented"
        },
        {
          "name": "product_id",
          "type": "varchar",
          "key": "foreign",
          "description": "Product on the changed item.",
          "confidence": "documented"
        },
        {
          "name": "quantity_change",
          "type": "bigint",
          "description": "Signed change in quantity.",
          "confidence": "documented"
        },
        {
          "name": "subscription_id",
          "type": "varchar",
          "key": "foreign",
          "description": "Subscription that changed.",
          "confidence": "documented"
        },
        {
          "name": "subscription_item_id",
          "type": "varchar",
          "key": "foreign",
          "description": "Subscription item that changed.",
          "confidence": "documented"
        }
      ],
      "foreign_keys": [],
      "columns_complete": false,
      "columns_inherited_from": "subscription_item_change_events",
      "verified_against_account": false
    },
    {
      "name": "subscription_item_change_events_v2_beta",
      "dataset": "billing",
      "source": "derived",
      "freshness_hours": 3,
      "preview": true,
      "listed_in_stripe_freshness_table": true,
      "description": "Public preview rebuild of subscription_item_change_events with 3-hour freshness instead of 24-hour. Same columns.",
      "grain": "One row per MRR-moving change to a subscription item.",
      "primary_key": [
        "event_timestamp",
        "event_type"
      ],
      "notes": [
        "Preview table \u2014 Stripe may change it. Prefer subscription_item_change_events unless you need the fresher data."
      ],
      "columns": [
        {
          "name": "event_timestamp",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "event_type",
          "type": "varchar",
          "description": "Kind of change that occurred.",
          "confidence": "verified",
          "enum": [
            "ACTIVE_START",
            "ACTIVE_END",
            "ACTIVE_UPGRADE",
            "ACTIVE_DOWNGRADE",
            "ACTIVE_QUANTITY_INCREASE",
            "ACTIVE_QUANTITY_DECREASE"
          ],
          "key": "primary"
        },
        {
          "name": "subscription_item_id",
          "type": "varchar",
          "key": "foreign",
          "description": "Subscription item that changed.",
          "confidence": "verified"
        },
        {
          "name": "currency",
          "type": "varchar",
          "description": "Currency of mrr_change.",
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "customer_id",
          "type": "varchar",
          "key": "foreign",
          "description": "Customer whose MRR changed.",
          "confidence": "verified"
        },
        {
          "name": "local_event_timestamp",
          "type": "timestamp",
          "description": "When the change took effect, in your account's local time.",
          "confidence": "verified",
          "raw_type": "timestamp"
        },
        {
          "name": "mrr_change",
          "type": "bigint",
          "description": "Signed change in monthly recurring revenue, in minor currency units.",
          "confidence": "verified",
          "raw_type": "bigint"
        },
        {
          "name": "price_id",
          "type": "varchar",
          "key": "foreign",
          "description": "Price on the changed item.",
          "confidence": "verified"
        },
        {
          "name": "product_id",
          "type": "varchar",
          "key": "foreign",
          "description": "Product on the changed item.",
          "confidence": "verified"
        },
        {
          "name": "quantity_change",
          "type": "bigint",
          "description": "Signed change in quantity.",
          "confidence": "verified",
          "raw_type": "bigint"
        },
        {
          "name": "subscription_id",
          "type": "varchar",
          "key": "foreign",
          "description": "Subscription that changed.",
          "confidence": "verified"
        }
      ],
      "foreign_keys": [
        {
          "columns": [
            "subscription_item_id"
          ],
          "references": {
            "table": "subscription_items",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        },
        {
          "columns": [
            "customer_id"
          ],
          "references": {
            "table": "customers",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        },
        {
          "columns": [
            "price_id"
          ],
          "references": {
            "table": "prices",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        },
        {
          "columns": [
            "product_id"
          ],
          "references": {
            "table": "products",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        },
        {
          "columns": [
            "subscription_id"
          ],
          "references": {
            "table": "subscriptions",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        }
      ],
      "columns_complete": true,
      "columns_inherited_from": "subscription_item_change_events",
      "verified_against_account": true
    },
    {
      "name": "subscription_items",
      "dataset": "billing",
      "source": "api_backed",
      "freshness_hours": 3,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Individual priced items on a subscription. A subscription with multiple products has one row per product here.",
      "grain": "One row per subscription item.",
      "primary_key": [
        "id"
      ],
      "columns_complete": true,
      "columns": [
        {
          "name": "id",
          "type": "varchar",
          "key": "primary",
          "description": "Unique identifier for the object.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-billing-data.md"
          ]
        },
        {
          "name": "subscription_id",
          "type": "varchar",
          "key": "foreign",
          "description": "Parent subscription.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-billing-data.md"
          ]
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": "The time in epoch format at which updates to the object were processed through the Stripe Data Pipeline. If the object hasn't changed, the time remains unchanged. This field isn't available in Sigma. It's only available for core API tables, including Connect versions, exported through the Stripe Data Pipeline."
        },
        {
          "name": "billing_thresholds_usage_gte",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": "Usage threshold that triggers the subscription to create an invoice"
        },
        {
          "name": "created",
          "type": "bigint",
          "description": "Time at which the object was created. Measured in seconds since the Unix epoch.",
          "confidence": "verified",
          "raw_type": "bigint"
        },
        {
          "name": "discounts",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The discounts applied to the subscription item. Subscription item discounts are applied before subscription discounts. Use expand[]=discounts to expand each discount."
        },
        {
          "name": "item_current_period_end",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": "The end time of this subscription item's current billing period."
        },
        {
          "name": "item_current_period_start",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": "The start time of this subscription item's current billing period."
        },
        {
          "name": "plan_amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": "The unit amount in cents to be charged, represented as a whole integer if possible. Only set if billing_scheme=per_unit."
        },
        {
          "name": "plan_created",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
        },
        {
          "name": "plan_currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "Three-letter ISO currency code, in lowercase. Must be a supported currency."
        },
        {
          "name": "plan_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "Unique identifier for the object."
        },
        {
          "name": "plan_interval",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The frequency at which a subscription is billed. One of day, week, month or year.",
          "enum": [
            "day",
            "week",
            "month",
            "year"
          ]
        },
        {
          "name": "plan_interval_count",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": "The number of intervals (specified in the interval attribute) between subscription billings. For example, interval=month and interval_count=3 bills every 3 months."
        },
        {
          "name": "plan_nickname",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "A brief description of the plan, hidden from customers."
        },
        {
          "name": "plan_product_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "The product whose pricing this plan determines.",
          "key": "foreign"
        },
        {
          "name": "plan_trial_period_days",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": "Default number of trial days when subscribing a customer to this plan using trial_from_plan=true."
        },
        {
          "name": "price_created",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
        },
        {
          "name": "price_currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "Three-letter ISO currency code, in lowercase. Must be a supported currency."
        },
        {
          "name": "price_id",
          "type": "varchar",
          "key": "foreign",
          "description": "Unique identifier for the object.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-billing-data.md"
          ],
          "raw_type": "varchar"
        },
        {
          "name": "price_nickname",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "A brief description of the price, hidden from customers."
        },
        {
          "name": "price_product_id",
          "type": "varchar",
          "key": "foreign",
          "description": "The ID of the product this price is associated with.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-billing-data.md"
          ]
        },
        {
          "name": "price_recurring_interval",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The frequency at which a subscription is billed. One of day, week, month or year.",
          "enum": [
            "day",
            "week",
            "month",
            "year"
          ]
        },
        {
          "name": "price_recurring_interval_count",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": "The number of intervals (specified in the interval attribute) between subscription billings. For example, interval=month and interval_count=3 bills every 3 months."
        },
        {
          "name": "price_recurring_trial_period_days",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": "Default number of trial days when subscribing a customer to this price using trial_from_plan=true."
        },
        {
          "name": "price_unit_amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": "The unit amount in cents to be charged, represented as a whole integer if possible. Only set if billing_scheme=per_unit."
        },
        {
          "name": "quantity",
          "type": "bigint",
          "description": "The quantity of the plan to which the customer should be subscribed.",
          "confidence": "verified",
          "raw_type": "bigint"
        },
        {
          "name": "subscription",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The subscription this subscription_item belongs to."
        }
      ],
      "foreign_keys": [
        {
          "columns": [
            "subscription_id"
          ],
          "references": {
            "table": "subscriptions",
            "columns": [
              "id"
            ]
          },
          "confidence": "documented"
        },
        {
          "columns": [
            "price_id"
          ],
          "references": {
            "table": "prices",
            "columns": [
              "id"
            ]
          },
          "confidence": "documented"
        },
        {
          "columns": [
            "price_product_id"
          ],
          "references": {
            "table": "products",
            "columns": [
              "id"
            ]
          },
          "confidence": "documented"
        }
      ],
      "notes": [
        "price_product_id lets you join straight to products \u2014 you don't need to hop through prices."
      ],
      "verified_against_account": true
    },
    {
      "name": "subscription_items_metadata",
      "dataset": "billing",
      "source": "api_backed",
      "freshness_hours": 3,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Metadata key/value pairs set on subscription_items. One row per (object, metadata key) pair. Objects with no metadata have no rows.",
      "grain": "One row per (object, metadata key) pair. Objects with no metadata have no rows.",
      "primary_key": [
        "key",
        "subscription_id",
        "subscription_item_id"
      ],
      "columns": [
        {
          "name": "key",
          "type": "varchar",
          "description": "The metadata key set on the object.",
          "confidence": "verified",
          "key": "primary"
        },
        {
          "name": "subscription_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "subscription_item_id",
          "type": "varchar",
          "key": "primary",
          "description": "References the id column of the parent object table.",
          "confidence": "verified"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "value",
          "type": "varchar",
          "description": "The metadata value for that key. Always a string, even when it holds a number or boolean.",
          "confidence": "verified",
          "raw_type": "varchar"
        }
      ],
      "columns_complete": true,
      "foreign_keys": [
        {
          "columns": [
            "subscription_item_id"
          ],
          "references": {
            "table": "subscription_items",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        }
      ],
      "notes": [
        "Values are always strings, even when they hold numbers or booleans.",
        "Pivot to columns with: select subscription_item_id, map_agg(key, value) as md from subscription_items_metadata group by 1"
      ],
      "derived_from_convention": "metadata_tables",
      "verified_against_account": true
    },
    {
      "name": "subscription_schedule_phase_add_invoice_items",
      "dataset": "billing",
      "source": "api_backed",
      "freshness_hours": 3,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "One-off invoice items attached to a subscription schedule phase.",
      "grain": "One row per add-invoice-item in a phase.",
      "primary_key": [
        "phase_id",
        "price",
        "schedule_id"
      ],
      "columns": [
        {
          "name": "phase_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "price",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "schedule_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "period_end_timestamp",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "period_end_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "period_start_timestamp",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "period_start_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "quantity",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        }
      ],
      "foreign_keys": [],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "subscription_schedule_phase_add_invoice_items_metadata",
      "dataset": "unclassified",
      "source": "api_backed",
      "freshness_hours": null,
      "preview": false,
      "listed_in_stripe_freshness_table": false,
      "description": "",
      "grain": "",
      "primary_key": [
        "key",
        "phase_id",
        "price",
        "schedule_id"
      ],
      "foreign_keys": [],
      "notes": [],
      "columns": [
        {
          "name": "key",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "phase_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "price",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "schedule_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "value",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "subscription_schedule_phase_configuration_items",
      "dataset": "billing",
      "source": "api_backed",
      "freshness_hours": 3,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Priced items configured within a subscription schedule phase.",
      "grain": "One row per item in a phase.",
      "primary_key": [
        "phase_id",
        "price",
        "schedule_id"
      ],
      "columns": [
        {
          "name": "phase_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "price",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "schedule_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "billing_thresholds_usage_gte",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "quantity",
          "type": "bigint",
          "description": "Quantity configured for the phase.",
          "confidence": "verified",
          "raw_type": "bigint"
        },
        {
          "name": "trial_offer_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        }
      ],
      "foreign_keys": [],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "subscription_schedule_phase_configuration_items_metadata",
      "dataset": "unclassified",
      "source": "api_backed",
      "freshness_hours": null,
      "preview": false,
      "listed_in_stripe_freshness_table": false,
      "description": "",
      "grain": "",
      "primary_key": [
        "key",
        "phase_id",
        "price",
        "schedule_id"
      ],
      "foreign_keys": [],
      "notes": [],
      "columns": [
        {
          "name": "key",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "phase_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "price",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "schedule_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "value",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "subscription_schedule_phases",
      "dataset": "billing",
      "source": "api_backed",
      "freshness_hours": 3,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Individual phases of a subscription schedule.",
      "grain": "One row per phase.",
      "primary_key": [
        "id"
      ],
      "columns": [
        {
          "name": "id",
          "type": "varchar",
          "key": "primary",
          "description": "Unique identifier for the phase.",
          "confidence": "verified"
        },
        {
          "name": "application_fee_percent",
          "type": "double",
          "confidence": "verified",
          "raw_type": "double",
          "description": ""
        },
        {
          "name": "automatic_tax_enabled",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": ""
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "billing_cycle_anchor",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "billing_thresholds_amount_gte",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "billing_thresholds_reset_billing_cycle_anchor",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": ""
        },
        {
          "name": "collection_method",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "coupon_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "default_payment_method",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "description",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "end_date",
          "type": "timestamp",
          "description": "When the phase ends.",
          "confidence": "verified",
          "raw_type": "timestamp"
        },
        {
          "name": "invoice_settings_days_until_due",
          "type": "double",
          "confidence": "verified",
          "raw_type": "double",
          "description": ""
        },
        {
          "name": "on_behalf_of",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "proration_behavior",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "schedule_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "start_date",
          "type": "timestamp",
          "description": "When the phase begins.",
          "confidence": "verified",
          "raw_type": "timestamp"
        },
        {
          "name": "transfer_data_amount_percent",
          "type": "double",
          "confidence": "verified",
          "raw_type": "double",
          "description": ""
        },
        {
          "name": "transfer_data_destination",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "trial_end",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        }
      ],
      "foreign_keys": [
        {
          "columns": [
            "coupon_id"
          ],
          "references": {
            "table": "coupons",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "subscription_schedule_phases_metadata",
      "dataset": "billing",
      "source": "api_backed",
      "freshness_hours": 3,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Metadata key/value pairs set on subscription_schedule_phases. One row per (object, metadata key) pair. Objects with no metadata have no rows.",
      "grain": "One row per (object, metadata key) pair. Objects with no metadata have no rows.",
      "primary_key": [
        "key",
        "phase_id",
        "schedule_id"
      ],
      "columns": [
        {
          "name": "key",
          "type": "varchar",
          "description": "The metadata key set on the object.",
          "confidence": "verified",
          "key": "primary"
        },
        {
          "name": "phase_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "schedule_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "value",
          "type": "varchar",
          "description": "The metadata value for that key. Always a string, even when it holds a number or boolean.",
          "confidence": "verified",
          "raw_type": "varchar"
        }
      ],
      "columns_complete": true,
      "foreign_keys": [],
      "notes": [
        "Values are always strings, even when they hold numbers or booleans.",
        "Pivot to columns with: select subscription_schedule_phas_id, map_agg(key, value) as md from subscription_schedule_phases_metadata group by 1"
      ],
      "derived_from_convention": "metadata_tables",
      "verified_against_account": true
    },
    {
      "name": "subscription_schedules",
      "dataset": "billing",
      "source": "api_backed",
      "freshness_hours": 3,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Planned sequences of subscription phases, used for scheduled price or term changes.",
      "grain": "One row per schedule.",
      "primary_key": [
        "id"
      ],
      "columns": [
        {
          "name": "id",
          "type": "varchar",
          "key": "primary",
          "description": "Unique identifier, prefixed sub_sched_.",
          "confidence": "verified"
        },
        {
          "name": "application_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "billing_mode_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "canceled_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "completed_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "created",
          "type": "timestamp",
          "description": "When the schedule was created (UTC).",
          "confidence": "verified",
          "raw_type": "timestamp"
        },
        {
          "name": "customer",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "default_settings_application_fee_percent",
          "type": "double",
          "confidence": "verified",
          "raw_type": "double",
          "description": ""
        },
        {
          "name": "default_settings_automatic_tax_enabled",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": ""
        },
        {
          "name": "default_settings_billing_cycle_anchor",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "default_settings_collection_method",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "default_settings_default_payment_method",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "default_settings_default_source",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "default_settings_description",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "default_settings_invoice_settings_days_until_due",
          "type": "double",
          "confidence": "verified",
          "raw_type": "double",
          "description": ""
        },
        {
          "name": "default_settings_on_behalf_of",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "default_settings_transfer_data_amount_percent",
          "type": "double",
          "confidence": "verified",
          "raw_type": "double",
          "description": ""
        },
        {
          "name": "default_settings_transfer_data_destination",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "end_behavior",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "proration_discounts",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "released_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "released_subscription",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "renewal_interval",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "renewal_interval_length",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "subscription",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        }
      ],
      "foreign_keys": [],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "subscription_schedules_metadata",
      "dataset": "billing",
      "source": "api_backed",
      "freshness_hours": 3,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Metadata key/value pairs set on subscription_schedules. One row per (object, metadata key) pair. Objects with no metadata have no rows.",
      "grain": "One row per (object, metadata key) pair. Objects with no metadata have no rows.",
      "primary_key": [
        "key",
        "schedule_id"
      ],
      "columns": [
        {
          "name": "key",
          "type": "varchar",
          "description": "The metadata key set on the object.",
          "confidence": "verified",
          "key": "primary"
        },
        {
          "name": "schedule_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "value",
          "type": "varchar",
          "description": "The metadata value for that key. Always a string, even when it holds a number or boolean.",
          "confidence": "verified",
          "raw_type": "varchar"
        }
      ],
      "columns_complete": true,
      "foreign_keys": [],
      "notes": [
        "Values are always strings, even when they hold numbers or booleans.",
        "Pivot to columns with: select subscription_schedule_id, map_agg(key, value) as md from subscription_schedules_metadata group by 1"
      ],
      "derived_from_convention": "metadata_tables",
      "verified_against_account": true
    },
    {
      "name": "subscriptions",
      "dataset": "billing",
      "source": "api_backed",
      "freshness_hours": 3,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "One row per Subscription object. The primary Billing table alongside invoices.",
      "grain": "One row per subscription, including canceled ones.",
      "primary_key": [
        "id"
      ],
      "columns_complete": true,
      "columns": [
        {
          "name": "id",
          "type": "varchar",
          "key": "primary",
          "description": "Unique identifier for the object.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-billing-data.md"
          ]
        },
        {
          "name": "application_fee_percent",
          "type": "double",
          "confidence": "verified",
          "raw_type": "double",
          "description": "A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the application owner's Stripe account."
        },
        {
          "name": "application_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "ID of the Connect Application that created the subscription."
        },
        {
          "name": "automatic_tax_enabled",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": "Whether Stripe automatically computes tax on this subscription."
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": "The time in epoch format at which updates to the object were processed through the Stripe Data Pipeline. If the object hasn't changed, the time remains unchanged. This field isn't available in Sigma. It's only available for core API tables, including Connect versions, exported through the Stripe Data Pipeline."
        },
        {
          "name": "billing",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "Either charge_automatically, or send_invoice. When charging automatically, Stripe will attempt to pay this subscription at the end of the cycle using the default source attached to the customer. When sending an invoice, Stripe will email your customer an invoice with payment instructions and mark the subscription as active.",
          "enum": [
            "charge_automatically",
            "send_invoice"
          ]
        },
        {
          "name": "billing_cycle_anchor",
          "type": "timestamp",
          "description": "The reference point that aligns future billing cycle dates. It sets the day of week for week intervals, the day of month for month and year intervals, and the month of year for year intervals. The timestamp is in UTC format.",
          "confidence": "verified",
          "raw_type": "timestamp"
        },
        {
          "name": "billing_mode_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "Controls how prorations and invoices for subscriptions are calculated and orchestrated."
        },
        {
          "name": "billing_mode_updated_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": "Details on when the current billing_mode was adopted."
        },
        {
          "name": "billing_thresholds_amount_gte",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": "Monetary threshold that triggers the subscription to create an invoice"
        },
        {
          "name": "billing_thresholds_reset_billing_cycle_anchor",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": "Indicates if the billing_cycle_anchor should be reset when a threshold is reached. If true, billing_cycle_anchor will be updated to the date/time the threshold was last reached; otherwise, the value will remain unchanged. This value may not be true if the subscription contains items with plans that have aggregate_usage=last_ever."
        },
        {
          "name": "cancel_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": "A date in the future at which the subscription will automatically get canceled"
        },
        {
          "name": "cancel_at_period_end",
          "type": "boolean",
          "description": "Whether this subscription will (if status=active) or did (if status=canceled) cancel at the end of the current billing period.",
          "confidence": "verified",
          "raw_type": "boolean"
        },
        {
          "name": "canceled_at",
          "type": "timestamp",
          "description": "If the subscription has been canceled, the date of that cancellation. If the subscription was canceled with cancel_at_period_end, canceled_at will reflect the time of the most recent update request, not the end of the subscription period when the subscription is automatically moved to a canceled state.",
          "confidence": "verified",
          "raw_type": "timestamp"
        },
        {
          "name": "cancellation_details_comment",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "Additional comments about why the user canceled the subscription, if the subscription was canceled explicitly by the user."
        },
        {
          "name": "cancellation_details_feedback",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The customer submitted reason for why they canceled, if the subscription was canceled explicitly by the user."
        },
        {
          "name": "cancellation_details_reason",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "Why this subscription was canceled."
        },
        {
          "name": "cancellation_reason",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "One of the preconfigured cancellation reasons selected by the customer."
        },
        {
          "name": "cancellation_reason_text",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The customer provided reason for cancelling the subscription."
        },
        {
          "name": "created",
          "type": "timestamp",
          "description": "Time at which the object was created. Measured in seconds since the Unix epoch.",
          "confidence": "verified",
          "raw_type": "timestamp"
        },
        {
          "name": "current_period_end",
          "type": "timestamp",
          "description": "End of the current period that the subscription has been invoiced for. At the end of this period, a new invoice will be created. This field is deprecated starting on the 2025-03-31.basil version, please use current_period_end on the items[] field instead",
          "confidence": "verified",
          "raw_type": "timestamp"
        },
        {
          "name": "current_period_start",
          "type": "timestamp",
          "description": "Start of the current period that the subscription has been invoiced for. This field is deprecated starting on the 2025-03-31.basil version, please use current_period_start on the items[] field instead",
          "confidence": "verified",
          "raw_type": "timestamp"
        },
        {
          "name": "customer_id",
          "type": "varchar",
          "key": "foreign",
          "description": "ID of the customer who owns the subscription.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-billing-data.md"
          ]
        },
        {
          "name": "days_until_due",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": "Number of days a customer has to pay invoices generated by this subscription. This value will be null for subscriptions where collection_method=charge_automatically."
        },
        {
          "name": "default_payment_method_id",
          "type": "varchar",
          "key": "foreign",
          "description": "ID of the default payment method for the subscription. It must belong to the customer associated with the subscription. This takes precedence over default_source. If neither are set, invoices will use the customer's invoice_settings.default_payment_method or default_source.",
          "confidence": "verified"
        },
        {
          "name": "default_source_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "ID of the default payment source for the subscription. It must belong to the customer associated with the subscription and be in a chargeable state. If default_payment_method is also set, default_payment_method will take precedence. If neither are set, invoices will use the customer's invoice_settings.default_payment_method or default_source.",
          "key": "foreign"
        },
        {
          "name": "description",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The subscription's description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs."
        },
        {
          "name": "discount_checkout_session",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The Checkout session that this coupon is applied to, if it is applied to a particular session in payment mode. Not present for subscription mode."
        },
        {
          "name": "discount_coupon_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "Unique identifier for the object.",
          "key": "foreign"
        },
        {
          "name": "discount_customer_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "The ID of the customer associated with this discount.",
          "key": "foreign"
        },
        {
          "name": "discount_end",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": "If the coupon has a duration of repeating, the date that this discount will end. If the coupon has a duration of once or forever, this attribute will be null."
        },
        {
          "name": "discount_invoice",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The invoice that the discount's coupon was applied to, if it was applied directly to a particular invoice."
        },
        {
          "name": "discount_invoice_item",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The invoice item id (or invoice line item id for invoice line items of type='subscription') that the discount's coupon was applied to, if it was applied directly to a particular invoice item or invoice line item."
        },
        {
          "name": "discount_promotion_code_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The promotion code applied to create this discount."
        },
        {
          "name": "discount_schedule_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "The subscription schedule that this coupon is applied to, if it is applied to a particular subscription schedule.",
          "key": "foreign"
        },
        {
          "name": "discount_start",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": "Date that the coupon was applied."
        },
        {
          "name": "discount_subscription",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The subscription that this coupon is applied to, if it is applied to a particular subscription."
        },
        {
          "name": "discount_subscription_item",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The subscription item that this coupon is applied to, if it is applied to a particular subscription item."
        },
        {
          "name": "discounts",
          "type": "varchar",
          "description": "The discounts applied to the subscription. Subscription item discounts are applied before subscription discounts. Use expand[]=discounts to expand each discount.",
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "ended_at",
          "type": "timestamp",
          "description": "If the subscription has ended, the date the subscription ended.",
          "confidence": "verified",
          "raw_type": "timestamp"
        },
        {
          "name": "latest_invoice_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "The most recent invoice this subscription has generated over its lifecycle (for example, when it cycles or is updated).",
          "key": "foreign"
        },
        {
          "name": "managed_payments_enabled",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": "Whether Managed Payments is enabled for this subscription."
        },
        {
          "name": "next_pending_invoice_item_invoice",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": "Specifies the approximate timestamp on which any pending invoice items will be billed according to the schedule provided at pending_invoice_item_interval."
        },
        {
          "name": "on_behalf_of_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "The account (if any) the charge was made on behalf of for charges associated with this subscription. See the Connect documentation for details.",
          "key": "foreign"
        },
        {
          "name": "pause_collection_behavior",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The payment collection behavior for this subscription while paused."
        },
        {
          "name": "pause_collection_resumes_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": "The time after which the subscription will resume collecting payments."
        },
        {
          "name": "payment_settings_payment_method_options_acss_debit_mandate_options_transaction_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "Transaction type of the mandate."
        },
        {
          "name": "payment_settings_payment_method_options_acss_debit_verification_method",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "Bank account verification method. The default value is automatic."
        },
        {
          "name": "payment_settings_payment_method_options_bancontact_preferred_language",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "Preferred language of the Bancontact authorization page that the customer is redirected to."
        },
        {
          "name": "payment_settings_payment_method_options_card_mandate_options_amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": "Amount to be charged for future payments, specified in the presentment currency."
        },
        {
          "name": "payment_settings_payment_method_options_card_mandate_options_amount_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "One of fixed or maximum. If fixed, the amount param refers to the exact amount to be charged in future payments. If maximum, the amount charged can be up to the value passed for the amount param.",
          "enum": [
            "fixed",
            "maximum"
          ]
        },
        {
          "name": "payment_settings_payment_method_options_card_mandate_options_description",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "A description of the mandate or subscription that is meant to be displayed to the customer."
        },
        {
          "name": "payment_settings_payment_method_options_card_network",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "Selected network to process this Subscription on. Depends on the available networks of the card attached to the Subscription. Can be only set confirm-time."
        },
        {
          "name": "payment_settings_payment_method_options_card_request_three_d_secure",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and other requirements. However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. Read our guide on manually requesting 3D Secure for more information on how this configuration interacts with Radar and our SCA Engine."
        },
        {
          "name": "payment_settings_payment_method_options_customer_balance_bank_transfer_eu_bank_transfer_country",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The desired country code of the bank account information. Permitted values include: DE, FR, IE, or NL."
        },
        {
          "name": "payment_settings_payment_method_options_customer_balance_bank_transfer_id_bank_transfer_bank",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The bank where the account is held."
        },
        {
          "name": "payment_settings_payment_method_options_customer_balance_bank_transfer_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The bank transfer type that can be used for funding. Permitted values include: eu_bank_transfer, gb_bank_transfer, jp_bank_transfer, mx_bank_transfer, or us_bank_transfer."
        },
        {
          "name": "payment_settings_payment_method_options_customer_balance_funding_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The funding method type to be used when there are not enough funds in the customer balance. Permitted values include: bank_transfer."
        },
        {
          "name": "payment_settings_payment_method_options_us_bank_account_verification_method",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "Bank account verification method. The default value is automatic."
        },
        {
          "name": "payment_settings_save_default_payment_method",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "Configure whether Stripe updates subscription.default_payment_method when payment succeeds. Defaults to off."
        },
        {
          "name": "pending_invoice_item_interval",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "Specifies invoicing frequency. Either day, week, month or year.",
          "enum": [
            "day",
            "week",
            "month",
            "year"
          ]
        },
        {
          "name": "pending_invoice_item_interval_count",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": "The number of intervals between invoices. For example, interval=month and interval_count=3 bills every 3 months. Maximum of one year interval allowed (1 year, 12 months, or 52 weeks)."
        },
        {
          "name": "pending_setup_intent_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "You can use this SetupIntent to collect user authentication when creating a subscription without immediate payment or updating a subscription's payment method, allowing you to optimize for off-session payments. Learn more in the SCA Migration Guide.",
          "key": "foreign"
        },
        {
          "name": "pending_update_billing_cycle_anchor",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": "If the update is applied, determines the date of the first full invoice, and, for plans with month or year intervals, the day of the month for subsequent invoices. The timestamp is in UTC format."
        },
        {
          "name": "pending_update_discount_checkout_session",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The Checkout session that this coupon is applied to, if it is applied to a particular session in payment mode. Not present for subscription mode."
        },
        {
          "name": "pending_update_discount_coupon_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "Unique identifier for the object.",
          "key": "foreign"
        },
        {
          "name": "pending_update_discount_customer_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "The ID of the customer associated with this discount.",
          "key": "foreign"
        },
        {
          "name": "pending_update_discount_end",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": "If the coupon has a duration of repeating, the date that this discount will end. If the coupon has a duration of once or forever, this attribute will be null."
        },
        {
          "name": "pending_update_discount_invoice",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The invoice that the discount's coupon was applied to, if it was applied directly to a particular invoice."
        },
        {
          "name": "pending_update_discount_invoice_item",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The invoice item id (or invoice line item id for invoice line items of type='subscription') that the discount's coupon was applied to, if it was applied directly to a particular invoice item or invoice line item."
        },
        {
          "name": "pending_update_discount_promotion_code_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The promotion code applied to create this discount."
        },
        {
          "name": "pending_update_discount_schedule_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "The subscription schedule that this coupon is applied to, if it is applied to a particular subscription schedule.",
          "key": "foreign"
        },
        {
          "name": "pending_update_discount_start",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": "Date that the coupon was applied."
        },
        {
          "name": "pending_update_discount_subscription",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The subscription that this coupon is applied to, if it is applied to a particular subscription."
        },
        {
          "name": "pending_update_discount_subscription_item",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The subscription item that this coupon is applied to, if it is applied to a particular subscription item."
        },
        {
          "name": "pending_update_expires_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": "The point after which the changes reflected by this update will be discarded and no longer applied."
        },
        {
          "name": "pending_update_trial_end",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": "Unix timestamp representing the end of the trial period the customer will get before being charged for the first time, if the update is applied."
        },
        {
          "name": "pending_update_trial_from_plan",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": "Indicates if a plan's trial_period_days should be applied to the subscription. Setting trial_end per subscription is preferred, and this defaults to false. Setting this flag to true together with trial_end is not allowed. See Using trial periods on subscriptions to learn more."
        },
        {
          "name": "plan_id",
          "type": "varchar",
          "key": "foreign",
          "description": "Reference to the plan the customer is subscribed to. Only set if the subscription contains a single plan.",
          "confidence": "verified"
        },
        {
          "name": "price_id",
          "type": "varchar",
          "key": "foreign",
          "description": "Reference to the price the customer is subscribed to. Only set if the subscription contains a single price.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-billing-data.md"
          ]
        },
        {
          "name": "proration_discounts",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "Controls how invoices and invoice items display proration amounts and discount amounts. itemized means that amounts are gross and discount amounts are accurate; included means that amounts are net and discount amounts are zero. This field is only populated for billing_mode=flexible subscriptions."
        },
        {
          "name": "quantity",
          "type": "bigint",
          "description": "The quantity of the plan to which the customer is subscribed. For example, if your plan is $10/user/month, and your customer has 5 users, you could pass 5 as the quantity to have the customer charged $50 (5 x $10) monthly. Only set if the subscription contains a single plan.",
          "confidence": "verified",
          "raw_type": "bigint"
        },
        {
          "name": "schedule_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "The schedule attached to the subscription",
          "key": "foreign"
        },
        {
          "name": "start",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": "This keeps track of how long the current plan configuration is active. May be different from start_date. The value of start is updated anytime that trial_end is updated (either to now or a different value that was previously set) even if no trial is being ended."
        },
        {
          "name": "start_date",
          "type": "timestamp",
          "description": "The backdated start date or initial created date.",
          "confidence": "verified",
          "raw_type": "timestamp"
        },
        {
          "name": "status",
          "type": "varchar",
          "description": "Possible values are incomplete, incomplete_expired, trialing, active, past_due, canceled, unpaid, or paused.\n\nFor collection_method=charge_automatically a subscription moves into incomplete if the initial payment attempt fails. A subscription in this status can only have metadata and default_source updated. Once the first invoice is paid, the subscription moves into an active status. If the first invoice is not paid within 23 hours, the subscription transitions to incomplete_expired. This is a terminal status, the open invoice will be voided and no further invoices will be generated.\n\nA subscription that is currently in a trial period is trialing and moves to active when the trial period is over.\n\nA subscription can only enter a paused status when a trial ends without a payment method. A paused subscription doesn't generate invoices and can be resumed after your customer adds their payment method. The paused status is different from pausing collection, which still generates invoices and leaves the subscription's status unchanged.\n\nIf subscription collection_method=charge_automatically, it becomes past_due when payment is required but cannot be paid (due to failed payment or awaiting additional user actions). Once Stripe has exhausted all payment retry attempts, the subscription will become canceled or unpaid (depending on your subscriptions settings).\n\nIf subscription collection_method=send_invoice it becomes past_due when its invoice is not paid by the due date, and canceled or unpaid if it is still not paid by an additional deadline after that. Note that when a subscription has a status of unpaid, no subsequent invoices will be attempted (invoices will be created, but then immediately automatically closed). After receiving updated payment information from a customer, you may choose to reopen and pay their closed invoices.",
          "enum": [
            "incomplete",
            "incomplete_expired",
            "trialing",
            "active",
            "past_due",
            "canceled",
            "unpaid",
            "paused"
          ],
          "confidence": "verified",
          "doc_sources": [
            "data_query-billing-data.md"
          ],
          "raw_type": "varchar"
        },
        {
          "name": "status_details",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "Details on the subscription status. JSON object present when status is paused. Contains paused.transitioned_at (Unix timestamp), paused.type, and paused.subscription.type."
        },
        {
          "name": "tax_percent",
          "type": "double",
          "confidence": "verified",
          "raw_type": "double",
          "description": "If provided, each invoice created by this subscription will apply the tax rate, increasing the amount billed to the customer."
        },
        {
          "name": "transfer_data_amount_percent",
          "type": "double",
          "confidence": "verified",
          "raw_type": "double",
          "description": "A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the destination account. By default, the entire amount is transferred to the destination."
        },
        {
          "name": "transfer_data_destination_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "The account where funds from the payment will be transferred to upon payment success.",
          "key": "foreign"
        },
        {
          "name": "trial_end",
          "type": "timestamp",
          "description": "If the subscription has a trial, the end of that trial.",
          "confidence": "verified",
          "raw_type": "timestamp"
        },
        {
          "name": "trial_settings_end_behavior_missing_payment_method",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "Indicates how the subscription should change when the trial ends if the user did not provide a payment method."
        },
        {
          "name": "trial_start",
          "type": "timestamp",
          "description": "If the subscription has a trial, the beginning of that trial.",
          "confidence": "verified",
          "raw_type": "timestamp"
        }
      ],
      "foreign_keys": [
        {
          "columns": [
            "customer_id"
          ],
          "references": {
            "table": "customers",
            "columns": [
              "id"
            ]
          },
          "confidence": "documented"
        },
        {
          "columns": [
            "price_id"
          ],
          "references": {
            "table": "prices",
            "columns": [
              "id"
            ]
          },
          "confidence": "documented"
        },
        {
          "columns": [
            "plan_id"
          ],
          "references": {
            "table": "plans",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        }
      ],
      "notes": [
        "discounts is a comma-separated string, not an array. Unnest it: cross join unnest(split(discounts, ',')) as t(discount_id).",
        "For MRR and churn, use subscription_item_change_events rather than deriving from status transitions."
      ],
      "verified_against_account": true
    },
    {
      "name": "subscriptions_metadata",
      "dataset": "billing",
      "source": "api_backed",
      "freshness_hours": 3,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Metadata key/value pairs set on subscriptions. One row per (object, metadata key) pair. Objects with no metadata have no rows.",
      "grain": "One row per (object, metadata key) pair. Objects with no metadata have no rows.",
      "primary_key": [
        "key"
      ],
      "columns": [
        {
          "name": "key",
          "type": "varchar",
          "description": "The metadata key set on the object.",
          "confidence": "verified",
          "key": "primary"
        },
        {
          "name": "subscription_id",
          "type": "varchar",
          "key": "foreign",
          "description": "References the id column of the parent object table.",
          "confidence": "verified"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "value",
          "type": "varchar",
          "description": "The metadata value for that key. Always a string, even when it holds a number or boolean.",
          "confidence": "verified",
          "raw_type": "varchar"
        }
      ],
      "columns_complete": true,
      "foreign_keys": [
        {
          "columns": [
            "subscription_id"
          ],
          "references": {
            "table": "subscriptions",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        }
      ],
      "notes": [
        "Values are always strings, even when they hold numbers or booleans.",
        "Pivot to columns with: select subscription_id, map_agg(key, value) as md from subscriptions_metadata group by 1"
      ],
      "derived_from_convention": "metadata_tables",
      "verified_against_account": true
    },
    {
      "name": "subscriptions_paid_usage_beta",
      "dataset": "unclassified",
      "source": "api_backed",
      "freshness_hours": null,
      "preview": false,
      "listed_in_stripe_freshness_table": false,
      "description": "",
      "grain": "",
      "primary_key": [
        "billable_item_source_id",
        "start_time"
      ],
      "foreign_keys": [
        {
          "columns": [
            "billing_meter_id"
          ],
          "references": {
            "table": "billing_meters",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        },
        {
          "columns": [
            "customer_id"
          ],
          "references": {
            "table": "customers",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        }
      ],
      "notes": [],
      "columns": [
        {
          "name": "billable_item_source_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "billing_meter_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "customer_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "start_time",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "billable_item_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "gross_amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "price_source_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "price_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "segment",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "summarized_balance_transactions",
      "dataset": "other",
      "source": "derived",
      "freshness_hours": 12,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Pre-aggregated balance transaction totals, grouped by period and reporting category. Much cheaper than aggregating balance_transactions yourself.",
      "grain": "One row per (period, currency, reporting category).",
      "primary_key": [
        "activity_at_time_bucket",
        "bt_count",
        "bt_effective_at_interval_start",
        "currency",
        "gross",
        "net",
        "payout_is_auto",
        "reporting_category"
      ],
      "notes": [
        "Use this for high-level financial summaries; drop to balance_transactions only when you need row-level detail."
      ],
      "columns": [
        {
          "name": "activity_at_time_bucket",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "auto_payout_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "bt_count",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "bt_effective_at_interval_start",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "currency",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "gross",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "net",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "payout_is_auto",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "reporting_category",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "auto_payout_effective_at_interval_start",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "fee",
          "type": "double",
          "confidence": "verified",
          "raw_type": "double",
          "description": ""
        }
      ],
      "foreign_keys": [],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "tax_codes",
      "dataset": "tax",
      "source": "api_backed",
      "freshness_hours": null,
      "preview": false,
      "listed_in_stripe_freshness_table": false,
      "evidence": "https://docs.stripe.com/data/query-tax-data",
      "description": "Product categories Stripe Tax uses to determine tax treatment. Contains all generally available tax codes, not just ones you use.",
      "grain": "One row per tax code.",
      "primary_key": [
        "id"
      ],
      "columns_complete": true,
      "columns": [
        {
          "name": "id",
          "type": "varchar",
          "key": "primary",
          "description": "Tax code identifier, prefixed txcd_.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-tax-data.md"
          ]
        },
        {
          "name": "description",
          "type": "varchar",
          "description": "Longer explanation of what the code covers.",
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "name",
          "type": "varchar",
          "description": "Short name, e.g. 'General - Tangible Goods'.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-tax-data.md"
          ],
          "raw_type": "varchar"
        }
      ],
      "foreign_keys": [],
      "verified_against_account": true
    },
    {
      "name": "tax_form_filing_statuses",
      "dataset": "unclassified",
      "source": "api_backed",
      "freshness_hours": null,
      "preview": false,
      "listed_in_stripe_freshness_table": false,
      "description": "",
      "grain": "",
      "primary_key": [
        "tax_form_id"
      ],
      "foreign_keys": [],
      "notes": [],
      "columns": [
        {
          "name": "tax_form_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "effective_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "jurisdiction_country",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "jurisdiction_level",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "jurisdiction_state",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "value",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "tax_forms",
      "dataset": "tax-reporting",
      "source": "derived",
      "freshness_hours": 24,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Tax forms (such as 1099s) generated for your connected accounts.",
      "grain": "One row per tax form.",
      "primary_key": [
        "id"
      ],
      "columns": [
        {
          "name": "id",
          "type": "varchar",
          "key": "primary",
          "description": "Unique identifier for the form.",
          "confidence": "verified"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "created",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "livemode",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": ""
        },
        {
          "name": "payee_account_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "payee_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "type",
          "type": "varchar",
          "description": "Form type, e.g. 1099-K, 1099-MISC.",
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "us_1099_k_april_volume",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "us_1099_k_august_volume",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "us_1099_k_card_not_present_volume",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "us_1099_k_december_volume",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "us_1099_k_february_volume",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "us_1099_k_federal_income_tax_withheld",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "us_1099_k_january_volume",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "us_1099_k_july_volume",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "us_1099_k_june_volume",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "us_1099_k_march_volume",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "us_1099_k_may_volume",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "us_1099_k_november_volume",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "us_1099_k_october_volume",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "us_1099_k_reporting_year",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "us_1099_k_september_volume",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "us_1099_k_state_income_tax_withheld",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "us_1099_k_transactions_count",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "us_1099_misc_crop_insurance_proceeds",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "us_1099_misc_excess_golden_parachute_payments",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "us_1099_misc_federal_income_tax_withheld",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "us_1099_misc_fish_purchased_for_resale",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "us_1099_misc_fishing_boat_proceeds",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "us_1099_misc_medical_and_health_care_payments",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "us_1099_misc_non_qualified_deferred_compensation",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "us_1099_misc_other_income",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "us_1099_misc_payments_in_lieu_of_dividends_or_interest",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "us_1099_misc_payments_to_attorney",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "us_1099_misc_rents",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "us_1099_misc_reporting_year",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "us_1099_misc_royalties",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "us_1099_misc_section_409a_deferrals",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "us_1099_misc_state_income",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "us_1099_misc_state_tax_withheld",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "us_1099_nec_federal_income_tax_withheld",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "us_1099_nec_nonemployee_compensation",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "us_1099_nec_reporting_year",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "us_1099_nec_state_income",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "us_1099_nec_state_income_tax_withheld",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        }
      ],
      "foreign_keys": [],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "tax_rates",
      "dataset": "billing",
      "source": "api_backed",
      "freshness_hours": 3,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Manually defined tax rates used on invoices and subscriptions. Distinct from Stripe Tax's automatic calculations.",
      "grain": "One row per tax rate.",
      "primary_key": [
        "id"
      ],
      "columns": [
        {
          "name": "id",
          "type": "varchar",
          "key": "primary",
          "description": "Unique identifier, prefixed txr_.",
          "confidence": "verified"
        },
        {
          "name": "active",
          "type": "boolean",
          "description": "Whether the rate can still be applied.",
          "confidence": "verified",
          "raw_type": "boolean"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "country",
          "type": "varchar",
          "description": "Two-letter ISO country the rate applies to.",
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "created",
          "type": "timestamp",
          "description": "When the rate was created (UTC).",
          "confidence": "verified",
          "raw_type": "timestamp"
        },
        {
          "name": "description",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "display_name",
          "type": "varchar",
          "description": "Name shown to customers, e.g. VAT.",
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "effective_percentage",
          "type": "double",
          "confidence": "verified",
          "raw_type": "double",
          "description": ""
        },
        {
          "name": "inclusive",
          "type": "boolean",
          "description": "Whether the rate is included in the price.",
          "confidence": "verified",
          "raw_type": "boolean"
        },
        {
          "name": "jurisdiction",
          "type": "varchar",
          "description": "Jurisdiction label for the rate.",
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "jurisdiction_level",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "percentage",
          "type": "double",
          "description": "Rate as a percentage.",
          "confidence": "verified",
          "raw_type": "double"
        },
        {
          "name": "state",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "tax_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        }
      ],
      "foreign_keys": [],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "tax_rates_metadata",
      "dataset": "billing",
      "source": "api_backed",
      "freshness_hours": 3,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Metadata key/value pairs set on tax_rates. One row per (object, metadata key) pair. Objects with no metadata have no rows.",
      "grain": "One row per (object, metadata key) pair. Objects with no metadata have no rows.",
      "primary_key": [
        "key"
      ],
      "columns": [
        {
          "name": "key",
          "type": "varchar",
          "description": "The metadata key set on the object.",
          "confidence": "verified",
          "key": "primary"
        },
        {
          "name": "tax_rate_id",
          "type": "varchar",
          "key": "foreign",
          "description": "References the id column of the parent object table.",
          "confidence": "verified"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "value",
          "type": "varchar",
          "description": "The metadata value for that key. Always a string, even when it holds a number or boolean.",
          "confidence": "verified",
          "raw_type": "varchar"
        }
      ],
      "columns_complete": true,
      "foreign_keys": [
        {
          "columns": [
            "tax_rate_id"
          ],
          "references": {
            "table": "tax_rates",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        }
      ],
      "notes": [
        "Values are always strings, even when they hold numbers or booleans.",
        "Pivot to columns with: select tax_rate_id, map_agg(key, value) as md from tax_rates_metadata group by 1"
      ],
      "derived_from_convention": "metadata_tables",
      "verified_against_account": true
    },
    {
      "name": "tax_transaction_customer_tax_ids",
      "dataset": "unclassified",
      "source": "api_backed",
      "freshness_hours": null,
      "preview": false,
      "listed_in_stripe_freshness_table": false,
      "description": "",
      "grain": "",
      "primary_key": [
        "type"
      ],
      "foreign_keys": [
        {
          "columns": [
            "tax_transaction_id"
          ],
          "references": {
            "table": "tax_transactions",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        }
      ],
      "notes": [],
      "columns": [
        {
          "name": "tax_transaction_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "type",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "country",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "value",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "tax_transaction_jurisdiction_details",
      "dataset": "tax",
      "source": "derived",
      "freshness_hours": 24,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Per-jurisdiction breakdown of the tax liability for a tax transaction item.",
      "grain": "One row per (tax transaction item, jurisdiction).",
      "primary_key": [
        "tax_transaction_item_id"
      ],
      "columns_complete": true,
      "columns": [
        {
          "name": "tax_transaction_id",
          "type": "varchar",
          "key": "foreign",
          "description": "Parent tax transaction.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-tax-data.md"
          ]
        },
        {
          "name": "tax_transaction_item_id",
          "type": "varchar",
          "key": "primary",
          "description": "The line item or shipping cost this jurisdiction detail applies to.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-tax-data.md"
          ]
        },
        {
          "name": "amount_non_taxable",
          "type": "bigint",
          "description": "Portion of the item amount that is non-taxable in this jurisdiction, in minor units.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-tax-data.md"
          ],
          "raw_type": "bigint"
        },
        {
          "name": "amount_tax",
          "type": "bigint",
          "description": "Tax owed to this jurisdiction, in minor units. Summing across jurisdictions equals the item's amount_tax.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-tax-data.md"
          ],
          "raw_type": "bigint"
        },
        {
          "name": "amount_taxable",
          "type": "bigint",
          "description": "Portion of the item amount that is taxable in this jurisdiction, in minor units.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-tax-data.md"
          ],
          "raw_type": "bigint"
        },
        {
          "name": "currency",
          "type": "varchar",
          "description": "Integration currency for the amount_* columns.",
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "filing_amount_non_taxable",
          "type": "bigint",
          "description": "amount_non_taxable expressed in the filing currency.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-tax-data.md"
          ],
          "raw_type": "bigint"
        },
        {
          "name": "filing_amount_tax",
          "type": "bigint",
          "description": "amount_tax expressed in the filing currency.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-tax-data.md"
          ],
          "raw_type": "bigint"
        },
        {
          "name": "filing_amount_taxable",
          "type": "bigint",
          "description": "amount_taxable expressed in the filing currency.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-tax-data.md"
          ],
          "raw_type": "bigint"
        },
        {
          "name": "filing_currency",
          "type": "varchar",
          "description": "Currency the tax authority requires for filing.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-tax-data.md"
          ],
          "raw_type": "varchar"
        },
        {
          "name": "filing_exchange_rate",
          "type": "double",
          "confidence": "verified",
          "raw_type": "double",
          "description": ""
        },
        {
          "name": "jurisdiction_country",
          "type": "varchar",
          "description": "Two-letter ISO country of the jurisdiction.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-tax-data.md"
          ],
          "raw_type": "varchar"
        },
        {
          "name": "jurisdiction_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "jurisdiction_level",
          "type": "varchar",
          "description": "Level of the jurisdiction.",
          "enum": [
            "country",
            "state",
            "county",
            "city",
            "district"
          ],
          "confidence": "verified",
          "doc_sources": [
            "data_query-tax-data.md"
          ],
          "raw_type": "varchar"
        },
        {
          "name": "jurisdiction_name",
          "type": "varchar",
          "description": "Name of the jurisdiction, e.g. California.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-tax-data.md"
          ],
          "raw_type": "varchar"
        },
        {
          "name": "jurisdiction_state",
          "type": "varchar",
          "description": "State/province code of the jurisdiction.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-tax-data.md"
          ],
          "raw_type": "varchar"
        },
        {
          "name": "tax_rate_percentage",
          "type": "double",
          "description": "Rate applied by this jurisdiction, as a percentage.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-tax-data.md"
          ],
          "raw_type": "double"
        },
        {
          "name": "tax_transaction_item_type",
          "type": "varchar",
          "description": "Whether the item is a line item or a shipping cost.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-tax-data.md"
          ],
          "raw_type": "varchar"
        },
        {
          "name": "tax_type",
          "type": "varchar",
          "description": "Type of tax, e.g. sales_tax, vat, gst.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-tax-data.md"
          ],
          "raw_type": "varchar"
        },
        {
          "name": "tax_type_display_name",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "taxability",
          "type": "varchar",
          "description": "Taxability determination for the jurisdiction.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-tax-data.md"
          ],
          "raw_type": "varchar"
        },
        {
          "name": "taxability_reason",
          "type": "varchar",
          "description": "Why the item was taxed this way, e.g. standard_rated, not_subject_to_tax.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-tax-data.md"
          ],
          "raw_type": "varchar"
        }
      ],
      "notes": [
        "Summing amount_taxable or amount_non_taxable across jurisdictions does NOT equal the item's amount \u2014 jurisdictions overlap. Only amount_tax sums correctly.",
        "US country-level rows are always non-taxable; exclude them to match Stripe's itemized tax export."
      ],
      "foreign_keys": [
        {
          "columns": [
            "tax_transaction_id"
          ],
          "references": {
            "table": "tax_transactions",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        }
      ],
      "verified_against_account": true
    },
    {
      "name": "tax_transaction_line_items",
      "dataset": "tax",
      "source": "derived",
      "freshness_hours": 24,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Line items contributing to the sale of goods for a tax transaction.",
      "grain": "One row per tax line item.",
      "primary_key": [
        "id"
      ],
      "columns_complete": true,
      "columns": [
        {
          "name": "id",
          "type": "varchar",
          "key": "primary",
          "description": "Unique identifier for the tax transaction line item.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-tax-data.md"
          ]
        },
        {
          "name": "amount",
          "type": "bigint",
          "description": "The amount in the smallest currency unit. This includes taxes when tax_behavior is inclusive.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-tax-data.md"
          ],
          "raw_type": "bigint"
        },
        {
          "name": "amount_tax",
          "type": "bigint",
          "description": "The amount of tax calculated for the tax transaction line item, in the smallest currency unit.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-tax-data.md"
          ],
          "raw_type": "bigint"
        },
        {
          "name": "currency",
          "type": "varchar",
          "description": "The three-letter ISO code for the currency in which amount is defined. This is the integration currency, which can differ from both the settlement currency and the tax authority's local filing currency.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-tax-data.md"
          ],
          "raw_type": "varchar"
        },
        {
          "name": "determined_destination_address_city",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The city, district, suburb, town, or village of the customer's address as determined by Stripe Tax using available customer details."
        },
        {
          "name": "determined_destination_address_country",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The country of the customer's address as determined by Stripe Tax using available customer details. This is a two-letter ISO 3166-1 alpha-2 code."
        },
        {
          "name": "determined_destination_address_line1",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The line 1 of the customer's address as determined by Stripe Tax using available customer details."
        },
        {
          "name": "determined_destination_address_line2",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The line 2 of the customer's address as determined by Stripe Tax using available customer details."
        },
        {
          "name": "determined_destination_address_postal_code",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The ZIP or postal code of the customer's address as determined by Stripe Tax using available customer details."
        },
        {
          "name": "determined_destination_address_state",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The state, county, province, or region of the customer's address as determined by Stripe Tax using available customer details. This is a ISO 3166-2 code without the country prefix."
        },
        {
          "name": "determined_origin_address_city",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The city, district, suburb, town, or village of the tax transaction's origin address as determined by Stripe Tax."
        },
        {
          "name": "determined_origin_address_country",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The country of the tax transaction's origin address as determined by Stripe Tax. This is a two-letter ISO 3166-1 alpha-2 code."
        },
        {
          "name": "determined_origin_address_line1",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The line 1 of the tax transaction's origin address as determined by Stripe Tax."
        },
        {
          "name": "determined_origin_address_line2",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The line 2 of the tax transaction's origin address as determined by Stripe Tax."
        },
        {
          "name": "determined_origin_address_postal_code",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The ZIP or postal code of the tax transaction's origin address as determined by Stripe Tax."
        },
        {
          "name": "determined_origin_address_state",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The state, county, province, or region of the tax transaction's origin address as determined by Stripe Tax. This is a ISO 3166-2 code without the country prefix."
        },
        {
          "name": "determined_tax_location_address_city",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The city, district, suburb, town, or village of the tax location address as determined by Stripe Tax."
        },
        {
          "name": "determined_tax_location_address_country",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The country of the tax location address as determined by Stripe Tax. This is a two-letter ISO 3166-1 alpha-2 code."
        },
        {
          "name": "determined_tax_location_address_line1",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The line 1 of the tax location address as determined by Stripe Tax."
        },
        {
          "name": "determined_tax_location_address_line2",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The line 2 of the tax location address as determined by Stripe Tax."
        },
        {
          "name": "determined_tax_location_address_postal_code",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The ZIP or postal code of the tax location address as determined by Stripe Tax."
        },
        {
          "name": "determined_tax_location_address_state",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The state, county, province, or region of the tax location address as determined by Stripe Tax. This is a ISO 3166-2 code without the country prefix."
        },
        {
          "name": "product_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "The ID of the product associated with the tax transaction line item. This will only be set when the tax transaction source_type is external.",
          "key": "foreign"
        },
        {
          "name": "quantity_decimal",
          "type": "varchar",
          "description": "The number of units being purchased or reversed when the tax transaction type is reversal. This value is represented as a decimal string.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-tax-data.md"
          ],
          "raw_type": "varchar"
        },
        {
          "name": "reference",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "A custom identifier for the tax transaction line item. This will only be set when the tax transaction source_type is external."
        },
        {
          "name": "reversal_original_tax_transaction_line_item_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "The ID of the original tax transaction line item that was reversed when the tax transaction type is reversal.",
          "key": "foreign"
        },
        {
          "name": "source_line_item_id",
          "type": "varchar",
          "key": "foreign",
          "description": "The ID of the line item associated with the tax transaction line item (for example, an invoice line item ID when the tax transaction source_type is invoice). This will be equal to reference when tax_transactions source_type is external.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-tax-data.md"
          ],
          "raw_type": "varchar"
        },
        {
          "name": "tax_behavior",
          "type": "varchar",
          "description": "Indicates whether amount includes taxes. Taxes are included in amount when tax_behavior is inclusive and excluded from amount when tax_behavior is exclusive. Possible values are inclusive and exclusive.",
          "enum": [
            "inclusive",
            "exclusive"
          ],
          "confidence": "verified",
          "doc_sources": [
            "data_query-tax-data.md"
          ],
          "raw_type": "varchar"
        },
        {
          "name": "tax_code",
          "type": "varchar",
          "key": "foreign",
          "description": "The product tax code associated with the tax transaction line item.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-tax-data.md"
          ],
          "raw_type": "varchar"
        },
        {
          "name": "tax_transaction_id",
          "type": "varchar",
          "key": "foreign",
          "description": "The ID of the tax transaction associated with the tax transaction line item.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-tax-data.md"
          ]
        }
      ],
      "foreign_keys": [
        {
          "columns": [
            "tax_transaction_id"
          ],
          "references": {
            "table": "tax_transactions",
            "columns": [
              "id"
            ]
          },
          "confidence": "documented"
        },
        {
          "columns": [
            "tax_code"
          ],
          "references": {
            "table": "tax_codes",
            "columns": [
              "id"
            ]
          },
          "confidence": "documented"
        },
        {
          "columns": [
            "product_id"
          ],
          "references": {
            "table": "products",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        }
      ],
      "notes": [
        "Net sales excluding tax = case when tax_behavior = 'inclusive' then amount - amount_tax else amount end."
      ],
      "verified_against_account": true
    },
    {
      "name": "tax_transaction_line_items_metadata",
      "dataset": "tax",
      "source": "derived",
      "freshness_hours": 24,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Metadata key/value pairs set on tax_transaction_line_items. One row per (object, metadata key) pair. Objects with no metadata have no rows.",
      "grain": "One row per (object, metadata key) pair. Objects with no metadata have no rows.",
      "primary_key": [
        "key"
      ],
      "columns": [
        {
          "name": "key",
          "type": "varchar",
          "description": "The metadata key set on the object.",
          "confidence": "verified",
          "key": "primary"
        },
        {
          "name": "tax_transaction_line_item_id",
          "type": "varchar",
          "key": "foreign",
          "description": "References the id column of the parent object table.",
          "confidence": "verified"
        },
        {
          "name": "value",
          "type": "varchar",
          "description": "The metadata value for that key. Always a string, even when it holds a number or boolean.",
          "confidence": "verified",
          "raw_type": "varchar"
        }
      ],
      "columns_complete": true,
      "foreign_keys": [
        {
          "columns": [
            "tax_transaction_line_item_id"
          ],
          "references": {
            "table": "tax_transaction_line_items",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        }
      ],
      "notes": [
        "Values are always strings, even when they hold numbers or booleans.",
        "Pivot to columns with: select tax_transaction_line_item_id, map_agg(key, value) as md from tax_transaction_line_items_metadata group by 1"
      ],
      "derived_from_convention": "metadata_tables",
      "verified_against_account": true
    },
    {
      "name": "tax_transaction_shipping_costs",
      "dataset": "tax",
      "source": "derived",
      "freshness_hours": 24,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Shipping costs contributing to a tax transaction. Structurally parallel to tax_transaction_line_items.",
      "grain": "One row per shipping cost. A tax transaction has at most one.",
      "primary_key": [
        "id"
      ],
      "columns_complete": true,
      "columns": [
        {
          "name": "id",
          "type": "varchar",
          "key": "primary",
          "description": "Unique identifier.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-tax-data.md"
          ]
        },
        {
          "name": "amount",
          "type": "bigint",
          "description": "Gross shipping amount in minor units.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-tax-data.md"
          ],
          "raw_type": "bigint"
        },
        {
          "name": "amount_tax",
          "type": "bigint",
          "description": "Tax liability on shipping, in minor units.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-tax-data.md"
          ],
          "raw_type": "bigint"
        },
        {
          "name": "currency",
          "type": "varchar",
          "description": "Integration currency for the amounts.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-tax-data.md"
          ],
          "raw_type": "varchar"
        },
        {
          "name": "determined_destination_address_city",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "determined_destination_address_country",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "determined_destination_address_line1",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "determined_destination_address_line2",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "determined_destination_address_postal_code",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "determined_destination_address_state",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "determined_origin_address_city",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "determined_origin_address_country",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "determined_origin_address_line1",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "determined_origin_address_line2",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "determined_origin_address_postal_code",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "determined_origin_address_state",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "determined_tax_location_address_city",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "determined_tax_location_address_country",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "determined_tax_location_address_line1",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "determined_tax_location_address_line2",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "determined_tax_location_address_postal_code",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "determined_tax_location_address_state",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "shipping_rate_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "tax_behavior",
          "type": "varchar",
          "description": "Whether amount includes tax.",
          "enum": [
            "inclusive",
            "exclusive"
          ],
          "confidence": "verified",
          "doc_sources": [
            "data_query-tax-data.md"
          ],
          "raw_type": "varchar"
        },
        {
          "name": "tax_code",
          "type": "varchar",
          "key": "foreign",
          "description": "Tax code applied to shipping.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-tax-data.md"
          ],
          "raw_type": "varchar"
        },
        {
          "name": "tax_transaction_id",
          "type": "varchar",
          "key": "foreign",
          "description": "Parent tax transaction.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-tax-data.md"
          ]
        }
      ],
      "foreign_keys": [
        {
          "columns": [
            "tax_transaction_id"
          ],
          "references": {
            "table": "tax_transactions",
            "columns": [
              "id"
            ]
          },
          "confidence": "documented"
        },
        {
          "columns": [
            "tax_code"
          ],
          "references": {
            "table": "tax_codes",
            "columns": [
              "id"
            ]
          },
          "confidence": "documented"
        }
      ],
      "notes": [
        "Shipping costs have no source_line_item_id and no quantity \u2014 union them with line items using literal placeholders."
      ],
      "verified_against_account": true
    },
    {
      "name": "tax_transactions",
      "dataset": "tax",
      "source": "derived",
      "freshness_hours": 24,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Records of assumed or reduced tax liability. The recommended starting point for tax reporting, and the bridge between tax tables and invoices or checkout sessions.",
      "grain": "One row per tax transaction, one-to-one with its source object.",
      "primary_key": [
        "id"
      ],
      "columns_complete": true,
      "columns": [
        {
          "name": "id",
          "type": "varchar",
          "key": "primary",
          "description": "Unique identifier for the tax transaction.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-tax-data.md"
          ]
        },
        {
          "name": "created",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": "The time at which the tax transaction was created. Measured in seconds since the Unix epoch."
        },
        {
          "name": "customer_details_address_city",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The city, district, suburb, town, or village of the customer's address at the time the tax transaction was recorded."
        },
        {
          "name": "customer_details_address_country",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The country of the customer's address at the time the tax transaction was recorded. This is a two-letter ISO 3166-1 alpha-2 code when source_type is external, otherwise it's freeform."
        },
        {
          "name": "customer_details_address_line1",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The line 1 of the customer's address at the time the tax transaction was recorded (for example, street, PO Box, or company name)."
        },
        {
          "name": "customer_details_address_line2",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The line 2 of the customer's address at the time the tax transaction was recorded (for example, apartment, suite, unit, or building)."
        },
        {
          "name": "customer_details_address_postal_code",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The ZIP or postal code of the customer's address at the time the tax transaction was recorded."
        },
        {
          "name": "customer_details_address_source",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The type of customer address applicable to the tax transaction. Possible values are billing and shipping.",
          "enum": [
            "billing",
            "shipping"
          ]
        },
        {
          "name": "customer_details_address_state",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The state, county, province, or region of the customer's address at the time the tax transaction was recorded. This value is freeform."
        },
        {
          "name": "customer_details_ip_address",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The customer's IP address. This will be either an IPv4 or IPv6 address."
        },
        {
          "name": "customer_details_taxability_override",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The taxability override used for taxation. Possible values are customer_exempt, reverse_charge and none.",
          "enum": [
            "customer_exempt",
            "reverse_charge"
          ]
        },
        {
          "name": "customer_id",
          "type": "varchar",
          "key": "foreign",
          "description": "The ID of the customer associated with the tax transaction.",
          "confidence": "verified"
        },
        {
          "name": "posted_at",
          "type": "timestamp",
          "description": "The time at which the tax liability is assumed or reduced. Measured in seconds since the Unix epoch.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-tax-data.md"
          ],
          "raw_type": "timestamp"
        },
        {
          "name": "provider",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The origin of the tax transaction. This will be stripe for Stripe transactions or the platform specified in an import for third-party transactions."
        },
        {
          "name": "reference",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "A custom identifier for the tax transaction. This will only be set when source_type is external."
        },
        {
          "name": "reversal_original_tax_transaction_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "The ID of original tax transaction that was reversed when type is reversal.",
          "key": "foreign"
        },
        {
          "name": "source_id",
          "type": "varchar",
          "key": "foreign",
          "description": "The ID of the object that triggered the creation of the tax transaction. This will be equal to reference when source_type is external.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-tax-data.md"
          ],
          "raw_type": "varchar"
        },
        {
          "name": "source_type",
          "type": "varchar",
          "description": "The type of object that triggered the creation of the tax transaction. Possible values are checkout, credit_note, external, invoice, payment_intent and refund.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-tax-data.md"
          ],
          "raw_type": "varchar",
          "enum": [
            "checkout",
            "credit_note",
            "external",
            "invoice",
            "payment_intent",
            "refund"
          ]
        },
        {
          "name": "tax_date",
          "type": "timestamp",
          "description": "The time at which effective tax rules and rates were applied to the tax transaction. Measured in seconds since the Unix epoch.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-tax-data.md"
          ],
          "raw_type": "timestamp"
        },
        {
          "name": "type",
          "type": "varchar",
          "description": "The type of tax transaction. The transaction reverses an earlier transaction when type is reversal. Possible values are transaction and reversal.",
          "enum": [
            "transaction",
            "reversal"
          ],
          "confidence": "verified",
          "raw_type": "varchar"
        }
      ],
      "notes": [
        "Join to invoices or checkout_sessions on source_id, filtering by source_type first."
      ],
      "foreign_keys": [
        {
          "columns": [
            "customer_id"
          ],
          "references": {
            "table": "customers",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        },
        {
          "columns": [
            "source_id"
          ],
          "references": {
            "table": "sources",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        }
      ],
      "verified_against_account": true
    },
    {
      "name": "tax_transactions_metadata",
      "dataset": "tax",
      "source": "derived",
      "freshness_hours": 24,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Metadata key/value pairs set on tax_transactions. One row per (object, metadata key) pair. Objects with no metadata have no rows.",
      "grain": "One row per (object, metadata key) pair. Objects with no metadata have no rows.",
      "primary_key": [
        "key"
      ],
      "columns": [
        {
          "name": "key",
          "type": "varchar",
          "description": "The metadata key set on the object.",
          "confidence": "verified",
          "key": "primary"
        },
        {
          "name": "tax_transaction_id",
          "type": "varchar",
          "key": "foreign",
          "description": "References the id column of the parent object table.",
          "confidence": "verified"
        },
        {
          "name": "value",
          "type": "varchar",
          "description": "The metadata value for that key. Always a string, even when it holds a number or boolean.",
          "confidence": "verified",
          "raw_type": "varchar"
        }
      ],
      "columns_complete": true,
      "foreign_keys": [
        {
          "columns": [
            "tax_transaction_id"
          ],
          "references": {
            "table": "tax_transactions",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        }
      ],
      "notes": [
        "Values are always strings, even when they hold numbers or booleans.",
        "Pivot to columns with: select tax_transaction_id, map_agg(key, value) as md from tax_transactions_metadata group by 1"
      ],
      "derived_from_convention": "metadata_tables",
      "verified_against_account": true
    },
    {
      "name": "terminal_hardware_order_items",
      "dataset": "terminal",
      "source": "derived",
      "freshness_hours": 24,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Line items on a Terminal hardware order.",
      "grain": "One row per item on an order.",
      "primary_key": [
        "terminal_hardware_order_id",
        "terminal_hardware_sku_id"
      ],
      "columns": [
        {
          "name": "terminal_hardware_order_id",
          "type": "varchar",
          "key": "primary",
          "description": "Parent hardware order.",
          "confidence": "verified"
        },
        {
          "name": "terminal_hardware_sku_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "amount",
          "type": "bigint",
          "description": "Line amount in minor currency units.",
          "confidence": "verified",
          "raw_type": "bigint"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "quantity",
          "type": "bigint",
          "description": "Quantity ordered.",
          "confidence": "verified",
          "raw_type": "bigint"
        },
        {
          "name": "terminal_hardware_sku_amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "terminal_hardware_sku_country",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "terminal_hardware_sku_currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "terminal_hardware_sku_product_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "terminal_hardware_sku_product_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        }
      ],
      "foreign_keys": [
        {
          "columns": [
            "terminal_hardware_order_id"
          ],
          "references": {
            "table": "terminal_hardware_orders",
            "columns": [
              "id"
            ]
          }
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "terminal_hardware_order_metadata",
      "dataset": "terminal",
      "source": "derived",
      "freshness_hours": 24,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Metadata key/value pairs set on terminal_hardware_orders. One row per (object, metadata key) pair. Objects with no metadata have no rows.",
      "grain": "One row per (object, metadata key) pair. Objects with no metadata have no rows.",
      "primary_key": [
        "key",
        "terminal_hardware_order_id"
      ],
      "columns": [
        {
          "name": "key",
          "type": "varchar",
          "description": "The metadata key set on the object.",
          "confidence": "verified",
          "key": "primary"
        },
        {
          "name": "terminal_hardware_order_id",
          "type": "varchar",
          "key": "primary",
          "description": "References the id column of the parent object table.",
          "confidence": "verified"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "value",
          "type": "varchar",
          "description": "The metadata value for that key. Always a string, even when it holds a number or boolean.",
          "confidence": "verified",
          "raw_type": "varchar"
        }
      ],
      "columns_complete": true,
      "foreign_keys": [
        {
          "columns": [
            "terminal_hardware_order_id"
          ],
          "references": {
            "table": "terminal_hardware_orders",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        }
      ],
      "notes": [
        "Values are always strings, even when they hold numbers or booleans.",
        "Pivot to columns with: select terminal_hardware_order_id, map_agg(key, value) as md from terminal_hardware_order_metadata group by 1"
      ],
      "derived_from_convention": "metadata_tables",
      "verified_against_account": true
    },
    {
      "name": "terminal_hardware_order_shipment_tracking",
      "dataset": "terminal",
      "source": "derived",
      "freshness_hours": 24,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Shipment tracking information for Terminal hardware orders.",
      "grain": "One row per shipment tracking record.",
      "primary_key": [
        "carrier",
        "terminal_hardware_order_id",
        "tracking_number"
      ],
      "columns": [
        {
          "name": "carrier",
          "type": "varchar",
          "description": "Shipping carrier.",
          "confidence": "verified",
          "key": "primary"
        },
        {
          "name": "terminal_hardware_order_id",
          "type": "varchar",
          "key": "primary",
          "description": "Parent hardware order.",
          "confidence": "verified"
        },
        {
          "name": "tracking_number",
          "type": "varchar",
          "description": "Carrier tracking number.",
          "confidence": "verified",
          "key": "primary"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        }
      ],
      "foreign_keys": [],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "terminal_hardware_order_tax_amounts",
      "dataset": "terminal",
      "source": "derived",
      "freshness_hours": 24,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Tax applied to a Terminal hardware order.",
      "grain": "One row per (order, tax component).",
      "primary_key": [
        "rate_display_name",
        "rate_jurisdiction",
        "terminal_hardware_order_id"
      ],
      "columns": [
        {
          "name": "rate_display_name",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "rate_jurisdiction",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "terminal_hardware_order_id",
          "type": "varchar",
          "key": "primary",
          "description": "Parent hardware order.",
          "confidence": "verified"
        },
        {
          "name": "amount",
          "type": "bigint",
          "description": "Tax amount in minor currency units.",
          "confidence": "verified",
          "raw_type": "bigint"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "inclusive",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": ""
        },
        {
          "name": "rate_percentage",
          "type": "double",
          "confidence": "verified",
          "raw_type": "double",
          "description": ""
        }
      ],
      "foreign_keys": [],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "terminal_hardware_orders",
      "dataset": "terminal",
      "source": "derived",
      "freshness_hours": 24,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Orders you placed for Terminal reader hardware.",
      "grain": "One row per hardware order.",
      "primary_key": [
        "id"
      ],
      "columns": [
        {
          "name": "id",
          "type": "varchar",
          "key": "primary",
          "description": "Unique identifier for the order.",
          "confidence": "verified"
        },
        {
          "name": "amount",
          "type": "bigint",
          "description": "Order total in minor currency units.",
          "confidence": "verified",
          "raw_type": "bigint"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "created",
          "type": "timestamp",
          "description": "When the order was placed (UTC).",
          "confidence": "verified",
          "raw_type": "timestamp"
        },
        {
          "name": "currency",
          "type": "varchar",
          "description": "Three-letter ISO currency code, lowercase.",
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "livemode",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": ""
        },
        {
          "name": "payment_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "po_number",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "shipping_address_city",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "shipping_address_country",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "shipping_address_line1",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "shipping_address_line2",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "shipping_address_postal_code",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "shipping_address_state",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "shipping_amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "shipping_company",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "shipping_currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "shipping_email",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "shipping_method_name",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "shipping_name",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "shipping_phone",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "status",
          "type": "varchar",
          "description": "Order status.",
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "tax",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "updated",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        }
      ],
      "foreign_keys": [],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "terminal_locations",
      "dataset": "terminal",
      "source": "derived",
      "freshness_hours": 120,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Physical locations where you operate Terminal card readers.",
      "grain": "One row per location.",
      "primary_key": [
        "id"
      ],
      "columns": [
        {
          "name": "address_city",
          "type": "varchar",
          "description": "City of the location.",
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "address_country",
          "type": "varchar",
          "description": "Two-letter ISO country of the location.",
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "address_kana_city",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "address_kana_country",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "address_kana_line1",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "address_kana_line2",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "address_kana_postal_code",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "address_kana_state",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "address_kana_town",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "address_kanji_city",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "address_kanji_country",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "address_kanji_line1",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "address_kanji_line2",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "address_kanji_postal_code",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "address_kanji_state",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "address_kanji_town",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "address_line1",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "address_line2",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "address_postal_code",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "address_state",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "id",
          "type": "varchar",
          "key": "primary",
          "description": "Unique identifier, prefixed tml_.",
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "livemode",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": ""
        },
        {
          "name": "metadata",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "name",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "name_kana",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "name_kanji",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "phone",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "zone_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        }
      ],
      "foreign_keys": [],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "terminal_readers",
      "dataset": "terminal",
      "source": "derived",
      "freshness_hours": 120,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Terminal card reader devices registered to your account.",
      "grain": "One row per reader.",
      "primary_key": [
        "id"
      ],
      "columns": [
        {
          "name": "device_type",
          "type": "varchar",
          "description": "Reader hardware model.",
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "id",
          "type": "varchar",
          "key": "primary",
          "description": "Unique identifier, prefixed tmr_.",
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "label",
          "type": "varchar",
          "description": "Reader label.",
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "livemode",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": ""
        },
        {
          "name": "location_id",
          "type": "varchar",
          "key": "foreign",
          "description": "Location the reader is assigned to.",
          "confidence": "verified"
        },
        {
          "name": "metadata",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "serial_number",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        }
      ],
      "foreign_keys": [
        {
          "columns": [
            "location_id"
          ],
          "references": {
            "table": "terminal_locations",
            "columns": [
              "id"
            ]
          }
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "topups",
      "dataset": "unclassified",
      "source": "api_backed",
      "freshness_hours": null,
      "preview": false,
      "listed_in_stripe_freshness_table": false,
      "description": "",
      "grain": "",
      "primary_key": [
        "id"
      ],
      "foreign_keys": [],
      "notes": [],
      "columns": [
        {
          "name": "id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "balance_transaction",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "created",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "description",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "failure_code",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "failure_message",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "initiated_by",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "statement_descriptor",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "status",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "transfer_group",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "topups_metadata",
      "dataset": "unclassified",
      "source": "api_backed",
      "freshness_hours": null,
      "preview": false,
      "listed_in_stripe_freshness_table": false,
      "description": "",
      "grain": "",
      "primary_key": [
        "key",
        "topup_id"
      ],
      "foreign_keys": [],
      "notes": [],
      "columns": [
        {
          "name": "key",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "topup_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "value",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "transfer_reversals",
      "dataset": "transfers",
      "source": "derived",
      "freshness_hours": 24,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Reversals of manually created transfers or payouts. Automatic payouts cannot be reversed.",
      "grain": "One row per reversal.",
      "primary_key": [
        "id"
      ],
      "columns": [
        {
          "name": "id",
          "type": "varchar",
          "key": "primary",
          "description": "Unique identifier, prefixed trr_.",
          "confidence": "verified"
        },
        {
          "name": "amount",
          "type": "bigint",
          "description": "Reversed amount in minor currency units.",
          "confidence": "verified",
          "raw_type": "bigint"
        },
        {
          "name": "balance_transaction_id",
          "type": "varchar",
          "key": "foreign",
          "description": "Balance transaction recording the reversal.",
          "confidence": "verified"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "created",
          "type": "timestamp",
          "description": "When the reversal was created (UTC).",
          "confidence": "verified",
          "raw_type": "timestamp"
        },
        {
          "name": "currency",
          "type": "varchar",
          "description": "Three-letter ISO currency code, lowercase.",
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "destination_payment_refund_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "source_refund_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "transfer_id",
          "type": "varchar",
          "key": "foreign",
          "description": "Transfer being reversed.",
          "confidence": "verified"
        }
      ],
      "foreign_keys": [
        {
          "columns": [
            "transfer_id"
          ],
          "references": {
            "table": "transfers",
            "columns": [
              "id"
            ]
          }
        },
        {
          "columns": [
            "balance_transaction_id"
          ],
          "references": {
            "table": "balance_transactions",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "transfer_reversals_metadata",
      "dataset": "transfers",
      "source": "derived",
      "freshness_hours": 24,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Metadata key/value pairs set on transfer_reversals. One row per (object, metadata key) pair. Objects with no metadata have no rows.",
      "grain": "One row per (object, metadata key) pair. Objects with no metadata have no rows.",
      "primary_key": [
        "key"
      ],
      "columns": [
        {
          "name": "key",
          "type": "varchar",
          "description": "The metadata key set on the object.",
          "confidence": "verified",
          "key": "primary"
        },
        {
          "name": "transfer_reversal_id",
          "type": "varchar",
          "key": "foreign",
          "description": "References the id column of the parent object table.",
          "confidence": "verified"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "value",
          "type": "varchar",
          "description": "The metadata value for that key. Always a string, even when it holds a number or boolean.",
          "confidence": "verified",
          "raw_type": "varchar"
        }
      ],
      "columns_complete": true,
      "foreign_keys": [
        {
          "columns": [
            "transfer_reversal_id"
          ],
          "references": {
            "table": "transfer_reversals",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        }
      ],
      "notes": [
        "Values are always strings, even when they hold numbers or booleans.",
        "Pivot to columns with: select transfer_reversal_id, map_agg(key, value) as md from transfer_reversals_metadata group by 1"
      ],
      "derived_from_convention": "metadata_tables",
      "verified_against_account": true
    },
    {
      "name": "transfers",
      "dataset": "transfers",
      "source": "derived",
      "freshness_hours": 24,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Payouts from your Stripe balance to your bank account, and \u2014 for Connect platforms \u2014 transfers of funds to connected accounts.",
      "grain": "One row per payout or transfer.",
      "primary_key": [
        "id"
      ],
      "columns_complete": true,
      "columns": [
        {
          "name": "id",
          "type": "varchar",
          "key": "primary",
          "description": "Unique identifier for the object.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-connect-data.md",
            "data_query-transactions.md"
          ]
        },
        {
          "name": "amount",
          "type": "bigint",
          "description": "Amount (in cents) to be transferred to your bank account.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-connect-data.md"
          ],
          "raw_type": "bigint"
        },
        {
          "name": "amount_reversed",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": "Amount in cents reversed (can be less than the amount attribute on the transfer if a partial reversal was issued). This field applies to Connect transfer reversals only and differs from the reversed_by and original_payout fields, which link payout reversals."
        },
        {
          "name": "application_fee_amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": "The amount of the application fee (if any) requested for the payout."
        },
        {
          "name": "application_fee_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "The application fee (if any). See the Connect documentation for details.",
          "key": "foreign"
        },
        {
          "name": "automatic",
          "type": "boolean",
          "description": "Returns true if the payout was created by an automated payout schedule, and false if it was requested manually.",
          "confidence": "verified",
          "raw_type": "boolean"
        },
        {
          "name": "balance_transaction_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "Balance transaction that describes the impact of this transfer on your account balance.",
          "key": "foreign"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
        },
        {
          "name": "created",
          "type": "timestamp",
          "description": "Time at which the object was created. Measured in seconds since the Unix epoch.",
          "confidence": "verified",
          "raw_type": "timestamp"
        },
        {
          "name": "currency",
          "type": "varchar",
          "description": "Three-letter ISO currency code, in lowercase. Must be a supported currency.",
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "date",
          "type": "timestamp",
          "description": "Date the transfer is scheduled to arrive in the bank. This factors in delays like weekends or bank holidays.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-transactions.md"
          ],
          "raw_type": "timestamp"
        },
        {
          "name": "description",
          "type": "varchar",
          "description": "Free-text description.",
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "destination_id",
          "type": "varchar",
          "key": "foreign",
          "description": "ID of the bank account, card, or Stripe account the transfer was sent to.",
          "confidence": "verified",
          "doc_sources": [
            "data_query-connect-data.md"
          ]
        },
        {
          "name": "destination_payment_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "If the destination is a Stripe account, this will be the ID of the payment that the destination account received for the transfer.",
          "key": "foreign"
        },
        {
          "name": "failure_code",
          "type": "varchar",
          "description": "Error code explaining reason for transfer failure if available. See Types of transfer failures for a list of failure codes.",
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "failure_message",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "Message to user further explaining reason for transfer failure if available."
        },
        {
          "name": "kind",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "original_payout",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "If the payout reverses another, this is the ID of the original payout. This field links a reversing payout back to the payout it reversed and differs from the reversed Boolean and amount_reversed fields, which apply to Connect transfer reversals only."
        },
        {
          "name": "payout_method",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "ID of the v2 FinancialAccount the funds were sent to."
        },
        {
          "name": "reversed",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": "Whether the transfer has been fully reversed. If the transfer is only partially reversed, this attribute will still be false. This field applies to Connect transfer reversals only and differs from the reversed_by and original_payout fields, which link payout reversals."
        },
        {
          "name": "reversed_by",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "If the payout reverses, this is the ID of the payout that reverses this payout. This field links payout reversals to their originals and differs from the reversed Boolean and amount_reversed fields, which apply to Connect transfer reversals only."
        },
        {
          "name": "source_transaction_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "ID of the charge (or other transaction) that was used to fund the transfer. If null, the transfer was funded from the available balance.",
          "key": "foreign"
        },
        {
          "name": "source_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "The source balance this transfer came from. One of card, fpx, or bank_account.",
          "enum": [
            "card",
            "fpx",
            "bank_account"
          ]
        },
        {
          "name": "statement_descriptor",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "Extra information about a transfer to be displayed on the user's bank statement."
        },
        {
          "name": "status",
          "type": "varchar",
          "description": "Payout status.",
          "enum": [
            "paid",
            "pending",
            "in_transit",
            "canceled",
            "failed"
          ],
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "trace_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "trace_id_status",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "transfer_group",
          "type": "varchar",
          "description": "A string that identifies this transaction as part of a group. See the Connect documentation for details.",
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "transfer_instruction",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": "Can be card, bank_account, or stripe_account.",
          "enum": [
            "card",
            "bank_account",
            "stripe_account"
          ]
        }
      ],
      "notes": [
        "Reconcile a payout to its components with: balance_transactions.automatic_transfer_id = transfers.id.",
        "Manual payouts cannot be reconciled to specific balance transactions \u2014 the amount is arbitrary."
      ],
      "foreign_keys": [
        {
          "columns": [
            "application_fee_id"
          ],
          "references": {
            "table": "application_fees",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        },
        {
          "columns": [
            "balance_transaction_id"
          ],
          "references": {
            "table": "balance_transactions",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        }
      ],
      "verified_against_account": true
    },
    {
      "name": "transfers_metadata",
      "dataset": "transfers",
      "source": "derived",
      "freshness_hours": 24,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Metadata key/value pairs set on transfers. One row per (object, metadata key) pair. Objects with no metadata have no rows.",
      "grain": "One row per (object, metadata key) pair. Objects with no metadata have no rows.",
      "primary_key": [
        "key"
      ],
      "columns": [
        {
          "name": "key",
          "type": "varchar",
          "description": "The metadata key set on the object.",
          "confidence": "verified",
          "key": "primary"
        },
        {
          "name": "transfer_id",
          "type": "varchar",
          "key": "foreign",
          "description": "References the id column of the parent object table.",
          "confidence": "verified"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "value",
          "type": "varchar",
          "description": "The metadata value for that key. Always a string, even when it holds a number or boolean.",
          "confidence": "verified",
          "raw_type": "varchar"
        }
      ],
      "columns_complete": true,
      "foreign_keys": [
        {
          "columns": [
            "transfer_id"
          ],
          "references": {
            "table": "transfers",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        }
      ],
      "notes": [
        "Values are always strings, even when they hold numbers or booleans.",
        "Pivot to columns with: select transfer_id, map_agg(key, value) as md from transfers_metadata group by 1"
      ],
      "derived_from_convention": "metadata_tables",
      "verified_against_account": true
    },
    {
      "name": "treasury_credit_reversals",
      "dataset": "unclassified",
      "source": "api_backed",
      "freshness_hours": null,
      "preview": false,
      "listed_in_stripe_freshness_table": false,
      "description": "",
      "grain": "",
      "primary_key": [
        "id"
      ],
      "foreign_keys": [],
      "notes": [],
      "columns": [
        {
          "name": "id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "created",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "financial_account_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "network",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "received_credit_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "status",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "status_transitions_posted_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "transaction_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "treasury_credit_reversals_metadata",
      "dataset": "unclassified",
      "source": "api_backed",
      "freshness_hours": null,
      "preview": false,
      "listed_in_stripe_freshness_table": false,
      "description": "",
      "grain": "",
      "primary_key": [
        "credit_reversal_id",
        "key"
      ],
      "foreign_keys": [],
      "notes": [],
      "columns": [
        {
          "name": "credit_reversal_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "key",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "value",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "treasury_debit_reversals",
      "dataset": "unclassified",
      "source": "api_backed",
      "freshness_hours": null,
      "preview": false,
      "listed_in_stripe_freshness_table": false,
      "description": "",
      "grain": "",
      "primary_key": [
        "id"
      ],
      "foreign_keys": [],
      "notes": [],
      "columns": [
        {
          "name": "id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "created",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "financial_account_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "linked_flows_issuing_dispute_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "network",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "received_debit_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "status",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "status_transitions_completed_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "transaction_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "treasury_debit_reversals_metadata",
      "dataset": "unclassified",
      "source": "api_backed",
      "freshness_hours": null,
      "preview": false,
      "listed_in_stripe_freshness_table": false,
      "description": "",
      "grain": "",
      "primary_key": [
        "debit_reversal_id",
        "key"
      ],
      "foreign_keys": [],
      "notes": [],
      "columns": [
        {
          "name": "debit_reversal_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "key",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "value",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "treasury_financial_accounts",
      "dataset": "treasury",
      "source": "derived",
      "freshness_hours": 24,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Treasury financial accounts that store funds for your platform's users.",
      "grain": "One row per financial account.",
      "primary_key": [
        "id"
      ],
      "columns": [
        {
          "name": "id",
          "type": "varchar",
          "key": "primary",
          "description": "Unique identifier, prefixed fa_.",
          "confidence": "verified"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "country",
          "type": "varchar",
          "description": "Two-letter ISO country of the account.",
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "created",
          "type": "timestamp",
          "description": "When the account was created (UTC).",
          "confidence": "verified",
          "raw_type": "timestamp"
        },
        {
          "name": "status",
          "type": "varchar",
          "description": "Account status.",
          "enum": [
            "open",
            "closed"
          ],
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "status_details_closed_reasons",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        }
      ],
      "foreign_keys": [],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "treasury_financial_accounts_metadata",
      "dataset": "treasury",
      "source": "derived",
      "freshness_hours": 24,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Metadata key/value pairs set on treasury_financial_accounts. One row per (object, metadata key) pair. Objects with no metadata have no rows.",
      "grain": "One row per (object, metadata key) pair. Objects with no metadata have no rows.",
      "primary_key": [
        "financial_account_id",
        "key"
      ],
      "columns": [
        {
          "name": "financial_account_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "key",
          "type": "varchar",
          "description": "The metadata key set on the object.",
          "confidence": "verified",
          "key": "primary"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "value",
          "type": "varchar",
          "description": "The metadata value for that key. Always a string, even when it holds a number or boolean.",
          "confidence": "verified",
          "raw_type": "varchar"
        }
      ],
      "columns_complete": true,
      "foreign_keys": [],
      "notes": [
        "Values are always strings, even when they hold numbers or booleans.",
        "Pivot to columns with: select treasury_financial_account_id, map_agg(key, value) as md from treasury_financial_accounts_metadata group by 1"
      ],
      "derived_from_convention": "metadata_tables",
      "verified_against_account": true
    },
    {
      "name": "treasury_inbound_transfers",
      "dataset": "treasury",
      "source": "derived",
      "freshness_hours": 24,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Money pulled into a Treasury financial account from an external bank account.",
      "grain": "One row per inbound transfer.",
      "primary_key": [
        "id"
      ],
      "columns": [
        {
          "name": "id",
          "type": "varchar",
          "key": "primary",
          "description": "Unique identifier for the transfer.",
          "confidence": "verified"
        },
        {
          "name": "amount",
          "type": "bigint",
          "description": "Amount in minor currency units.",
          "confidence": "verified",
          "raw_type": "bigint"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "cancelable",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": ""
        },
        {
          "name": "created",
          "type": "timestamp",
          "description": "When the transfer was created (UTC).",
          "confidence": "verified",
          "raw_type": "timestamp"
        },
        {
          "name": "currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "description",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "failure_details_code",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "financial_account_id",
          "type": "varchar",
          "key": "foreign",
          "description": "Destination financial account.",
          "confidence": "verified"
        },
        {
          "name": "linked_flows_received_debit_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "origin_payment_method_details_us_bank_account_network",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "origin_payment_method_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "returned",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": ""
        },
        {
          "name": "statement_descriptor",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "status",
          "type": "varchar",
          "description": "Transfer status.",
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "status_transitions_canceled_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "status_transitions_failed_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "status_transitions_succeeded_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "transaction_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        }
      ],
      "foreign_keys": [],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "treasury_inbound_transfers_metadata",
      "dataset": "treasury",
      "source": "derived",
      "freshness_hours": 24,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Metadata key/value pairs set on treasury_inbound_transfers. One row per (object, metadata key) pair. Objects with no metadata have no rows.",
      "grain": "One row per (object, metadata key) pair. Objects with no metadata have no rows.",
      "primary_key": [
        "inbound_transfer_id",
        "key"
      ],
      "columns": [
        {
          "name": "inbound_transfer_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "key",
          "type": "varchar",
          "description": "The metadata key set on the object.",
          "confidence": "verified",
          "key": "primary"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "value",
          "type": "varchar",
          "description": "The metadata value for that key. Always a string, even when it holds a number or boolean.",
          "confidence": "verified",
          "raw_type": "varchar"
        }
      ],
      "columns_complete": true,
      "foreign_keys": [],
      "notes": [
        "Values are always strings, even when they hold numbers or booleans.",
        "Pivot to columns with: select treasury_inbound_transfer_id, map_agg(key, value) as md from treasury_inbound_transfers_metadata group by 1"
      ],
      "derived_from_convention": "metadata_tables",
      "verified_against_account": true
    },
    {
      "name": "treasury_outbound_payments",
      "dataset": "treasury",
      "source": "derived",
      "freshness_hours": 24,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Money sent from a Treasury financial account to a third party.",
      "grain": "One row per outbound payment.",
      "primary_key": [
        "id"
      ],
      "columns": [
        {
          "name": "id",
          "type": "varchar",
          "key": "primary",
          "description": "Unique identifier for the payment.",
          "confidence": "verified"
        },
        {
          "name": "amount",
          "type": "bigint",
          "description": "Amount in minor currency units.",
          "confidence": "verified",
          "raw_type": "bigint"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "cancelable",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": ""
        },
        {
          "name": "created",
          "type": "timestamp",
          "description": "When the payment was created (UTC).",
          "confidence": "verified",
          "raw_type": "timestamp"
        },
        {
          "name": "currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "customer_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "description",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "destination_payment_method_details_financial_account_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "destination_payment_method_details_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "destination_payment_method_details_us_bank_account_network",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "destination_payment_method_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "end_user_details_ip_address",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "end_user_details_present",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": ""
        },
        {
          "name": "expected_arrival_date",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "financial_account_id",
          "type": "varchar",
          "key": "foreign",
          "description": "Source financial account.",
          "confidence": "verified"
        },
        {
          "name": "returned_details_code",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "returned_details_transaction_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "statement_descriptor",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "status",
          "type": "varchar",
          "description": "Payment status.",
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "status_transitions_canceled_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "status_transitions_failed_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "status_transitions_posted_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "status_transitions_returned_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "tracking_details_ach_trace_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "tracking_details_us_domestic_wire_imad",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "tracking_details_us_domestic_wire_omad",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "transaction_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        }
      ],
      "foreign_keys": [
        {
          "columns": [
            "customer_id"
          ],
          "references": {
            "table": "customers",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "treasury_outbound_payments_metadata",
      "dataset": "treasury",
      "source": "derived",
      "freshness_hours": 24,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Metadata key/value pairs set on treasury_outbound_payments. One row per (object, metadata key) pair. Objects with no metadata have no rows.",
      "grain": "One row per (object, metadata key) pair. Objects with no metadata have no rows.",
      "primary_key": [
        "key",
        "outbound_payment_id"
      ],
      "columns": [
        {
          "name": "key",
          "type": "varchar",
          "description": "The metadata key set on the object.",
          "confidence": "verified",
          "key": "primary"
        },
        {
          "name": "outbound_payment_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "value",
          "type": "varchar",
          "description": "The metadata value for that key. Always a string, even when it holds a number or boolean.",
          "confidence": "verified",
          "raw_type": "varchar"
        }
      ],
      "columns_complete": true,
      "foreign_keys": [],
      "notes": [
        "Values are always strings, even when they hold numbers or booleans.",
        "Pivot to columns with: select treasury_outbound_payment_id, map_agg(key, value) as md from treasury_outbound_payments_metadata group by 1"
      ],
      "derived_from_convention": "metadata_tables",
      "verified_against_account": true
    },
    {
      "name": "treasury_outbound_transfers",
      "dataset": "treasury",
      "source": "derived",
      "freshness_hours": 24,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Money sent from a Treasury financial account to an external bank account you own.",
      "grain": "One row per outbound transfer.",
      "primary_key": [
        "id"
      ],
      "columns": [
        {
          "name": "id",
          "type": "varchar",
          "key": "primary",
          "description": "Unique identifier for the transfer.",
          "confidence": "verified"
        },
        {
          "name": "amount",
          "type": "bigint",
          "description": "Amount in minor currency units.",
          "confidence": "verified",
          "raw_type": "bigint"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "cancelable",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": ""
        },
        {
          "name": "created",
          "type": "timestamp",
          "description": "When the transfer was created (UTC).",
          "confidence": "verified",
          "raw_type": "timestamp"
        },
        {
          "name": "currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "description",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "destination_payment_method_details_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "destination_payment_method_details_us_bank_account_ach_submission",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "destination_payment_method_details_us_bank_account_network",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "destination_payment_method_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "expected_arrival_date",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "financial_account_id",
          "type": "varchar",
          "key": "foreign",
          "description": "Source financial account.",
          "confidence": "verified"
        },
        {
          "name": "returned_details_code",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "returned_details_transaction_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "statement_descriptor",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "status",
          "type": "varchar",
          "description": "Transfer status.",
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "status_transitions_canceled_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "status_transitions_failed_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "status_transitions_posted_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "status_transitions_returned_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "tracking_details_ach_trace_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "tracking_details_us_domestic_wire_imad",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "tracking_details_us_domestic_wire_omad",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "transaction_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        }
      ],
      "foreign_keys": [],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "treasury_outbound_transfers_metadata",
      "dataset": "treasury",
      "source": "derived",
      "freshness_hours": 24,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Metadata key/value pairs set on treasury_outbound_transfers. One row per (object, metadata key) pair. Objects with no metadata have no rows.",
      "grain": "One row per (object, metadata key) pair. Objects with no metadata have no rows.",
      "primary_key": [
        "key",
        "outbound_transfer_id"
      ],
      "columns": [
        {
          "name": "key",
          "type": "varchar",
          "description": "The metadata key set on the object.",
          "confidence": "verified",
          "key": "primary"
        },
        {
          "name": "outbound_transfer_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "value",
          "type": "varchar",
          "description": "The metadata value for that key. Always a string, even when it holds a number or boolean.",
          "confidence": "verified",
          "raw_type": "varchar"
        }
      ],
      "columns_complete": true,
      "foreign_keys": [],
      "notes": [
        "Values are always strings, even when they hold numbers or booleans.",
        "Pivot to columns with: select treasury_outbound_transfer_id, map_agg(key, value) as md from treasury_outbound_transfers_metadata group by 1"
      ],
      "derived_from_convention": "metadata_tables",
      "verified_against_account": true
    },
    {
      "name": "treasury_received_credits",
      "dataset": "unclassified",
      "source": "api_backed",
      "freshness_hours": null,
      "preview": false,
      "listed_in_stripe_freshness_table": false,
      "description": "",
      "grain": "",
      "primary_key": [
        "id"
      ],
      "foreign_keys": [],
      "notes": [],
      "columns": [
        {
          "name": "id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "created",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "description",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "failure_code",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "financial_account_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "initiating_payment_method_details_financial_account_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "initiating_payment_method_details_issuing_card_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "initiating_payment_method_details_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "initiating_payment_method_details_us_bank_account_last_4",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "initiating_payment_method_details_us_bank_account_routing_number",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "linked_flows_credit_reversal_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "linked_flows_issuing_authorization_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "linked_flows_issuing_transaction_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "linked_flows_source_flow_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "linked_flows_source_flow_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "network",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "reversal_details_deadline",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "reversal_details_restricted_reason",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "status",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "transaction_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "treasury_received_debits",
      "dataset": "unclassified",
      "source": "api_backed",
      "freshness_hours": null,
      "preview": false,
      "listed_in_stripe_freshness_table": false,
      "description": "",
      "grain": "",
      "primary_key": [
        "id"
      ],
      "foreign_keys": [],
      "notes": [],
      "columns": [
        {
          "name": "id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "amount",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "created",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "description",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "failure_code",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "financial_account_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "initiating_payment_method_details_financial_account_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "initiating_payment_method_details_issuing_card_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "initiating_payment_method_details_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "initiating_payment_method_details_us_bank_account_last_4",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "initiating_payment_method_details_us_bank_account_routing_number",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "linked_flows_debit_reversal_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "linked_flows_inbound_transfer_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "linked_flows_issuing_authorization_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "linked_flows_issuing_transaction_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "linked_flows_payout_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "network",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "reversal_details_deadline",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "reversal_details_restricted_reason",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "status",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "transaction_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "treasury_transaction_entries",
      "dataset": "treasury",
      "source": "derived",
      "freshness_hours": 24,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Individual ledger entries making up a Treasury transaction.",
      "grain": "One row per entry.",
      "primary_key": [
        "id"
      ],
      "columns": [
        {
          "name": "id",
          "type": "varchar",
          "key": "primary",
          "description": "Unique identifier for the entry.",
          "confidence": "verified"
        },
        {
          "name": "balance_impact_cash",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "balance_impact_inbound_pending",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "balance_impact_outbound_pending",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "created",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "currency",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "effective_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "financial_account_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "flow_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "flow_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "transaction_id",
          "type": "varchar",
          "key": "foreign",
          "description": "Parent Treasury transaction.",
          "confidence": "verified"
        },
        {
          "name": "type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        }
      ],
      "foreign_keys": [
        {
          "columns": [
            "transaction_id"
          ],
          "references": {
            "table": "treasury_transactions",
            "columns": [
              "id"
            ]
          }
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "treasury_transactions",
      "dataset": "treasury",
      "source": "derived",
      "freshness_hours": 24,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Ledger of all money movement on Treasury financial accounts.",
      "grain": "One row per Treasury transaction.",
      "primary_key": [
        "id"
      ],
      "columns": [
        {
          "name": "id",
          "type": "varchar",
          "key": "primary",
          "description": "Unique identifier for the transaction.",
          "confidence": "verified"
        },
        {
          "name": "amount",
          "type": "bigint",
          "description": "Signed amount in minor currency units.",
          "confidence": "verified",
          "raw_type": "bigint"
        },
        {
          "name": "balance_impact_cash",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "balance_impact_inbound_pending",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "balance_impact_outbound_pending",
          "type": "bigint",
          "confidence": "verified",
          "raw_type": "bigint",
          "description": ""
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "created",
          "type": "timestamp",
          "description": "When the transaction occurred (UTC).",
          "confidence": "verified",
          "raw_type": "timestamp"
        },
        {
          "name": "currency",
          "type": "varchar",
          "description": "Three-letter ISO currency code, lowercase.",
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "description",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "financial_account_id",
          "type": "varchar",
          "key": "foreign",
          "description": "Financial account affected.",
          "confidence": "verified"
        },
        {
          "name": "flow_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "flow_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "status",
          "type": "varchar",
          "description": "Transaction status.",
          "confidence": "verified",
          "raw_type": "varchar"
        },
        {
          "name": "status_transitions_posted_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "status_transitions_void_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        }
      ],
      "foreign_keys": [
        {
          "columns": [
            "financial_account_id"
          ],
          "references": {
            "table": "treasury_financial_accounts",
            "columns": [
              "id"
            ]
          }
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "usage_records",
      "dataset": "billing",
      "source": "api_backed",
      "freshness_hours": 3,
      "preview": false,
      "listed_in_stripe_freshness_table": true,
      "description": "Reported usage quantities for metered subscription items. Legacy path; newer integrations use billing meters.",
      "grain": "One row per usage report.",
      "primary_key": [
        "id"
      ],
      "columns": [
        {
          "name": "id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "quantity",
          "type": "bigint",
          "description": "Reported usage quantity.",
          "confidence": "verified",
          "raw_type": "bigint"
        },
        {
          "name": "subscription_item",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "timestamp",
          "type": "timestamp",
          "description": "When the usage occurred.",
          "confidence": "verified",
          "raw_type": "timestamp"
        }
      ],
      "foreign_keys": [],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "verification_reports",
      "dataset": "unclassified",
      "source": "api_backed",
      "freshness_hours": null,
      "preview": false,
      "listed_in_stripe_freshness_table": false,
      "description": "",
      "grain": "",
      "primary_key": [
        "id"
      ],
      "foreign_keys": [
        {
          "columns": [
            "verification_session_id"
          ],
          "references": {
            "table": "verification_sessions",
            "columns": [
              "id"
            ]
          },
          "confidence": "conventional"
        }
      ],
      "notes": [],
      "columns": [
        {
          "name": "id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "address_error_code",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "address_status",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "client_reference_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "created",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "document_error_code",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "document_error_reason",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "document_files",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "document_issuing_country",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "document_status",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "document_type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "email_error_code",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "email_error_reason",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "email_status",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "id_number_error_code",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "id_number_error_reason",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "id_number_status",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "matching_error_code",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "matching_status",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "options_document_allowed_types",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "options_document_require_id_number",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": ""
        },
        {
          "name": "options_document_require_live_capture",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": ""
        },
        {
          "name": "options_document_require_matching_selfie",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": ""
        },
        {
          "name": "options_email_require_verification",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": ""
        },
        {
          "name": "options_phone_require_verification",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": ""
        },
        {
          "name": "phone_error_code",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "phone_error_reason",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "phone_otp_error_code",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "phone_otp_status",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "phone_records_error_code",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "phone_records_status",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "phone_status",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "selfie_document_file",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "selfie_error_code",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "selfie_error_reason",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "selfie_file",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "selfie_status",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "tax_id_error_code",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "tax_id_status",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "verification_flow_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "verification_session_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    },
    {
      "name": "verification_sessions",
      "dataset": "unclassified",
      "source": "api_backed",
      "freshness_hours": null,
      "preview": false,
      "listed_in_stripe_freshness_table": false,
      "description": "",
      "grain": "",
      "primary_key": [
        "id"
      ],
      "foreign_keys": [],
      "notes": [],
      "columns": [
        {
          "name": "id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "primary"
        },
        {
          "name": "batch_timestamp",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "client_reference_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "created",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "last_verification_report_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "options_document_allowed_types",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "options_document_require_id_number",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": ""
        },
        {
          "name": "options_document_require_live_capture",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": ""
        },
        {
          "name": "options_document_require_matching_selfie",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": ""
        },
        {
          "name": "options_email_require_verification",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": ""
        },
        {
          "name": "options_matching_dob",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "options_matching_name",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "options_phone_require_verification",
          "type": "boolean",
          "confidence": "verified",
          "raw_type": "boolean",
          "description": ""
        },
        {
          "name": "provided_details_email",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "provided_details_phone",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "redaction_status",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "related_customer_account_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "related_customer_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "related_person_account_id",
          "type": "varchar",
          "confidence": "verified",
          "description": "",
          "key": "foreign"
        },
        {
          "name": "related_person_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "started_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "status",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "submitted_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "type",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "verification_flow_id",
          "type": "varchar",
          "confidence": "verified",
          "raw_type": "varchar",
          "description": ""
        },
        {
          "name": "verified_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        },
        {
          "name": "visited_at",
          "type": "timestamp",
          "confidence": "verified",
          "raw_type": "timestamp",
          "description": ""
        }
      ],
      "columns_complete": true,
      "verified_against_account": true
    }
  ]
}
