{
  "openapi": "3.1.0",
  "info": {
    "title": "Stockonomy figure check",
    "version": "1.0.0",
    "description": "Compares a stated figure with the SEC filing it came from. A verdict read from a filing names its accession. A verdict is a comparison with a filing and makes no statement that a number is correct or sound. The API host is the one this site's pages call; it is shown in the examples on /developers."
  },
  "paths": {
    "/v1/resolve": {
      "post": {
        "operationId": "resolve",
        "summary": "Check up to 20 claims about one ticker; writes a receipt on the key owner's hash chain",
        "security": [
          {
            "ApiKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "ticker",
                  "claims"
                ],
                "properties": {
                  "ticker": {
                    "type": "string",
                    "examples": [
                      "AAPL"
                    ]
                  },
                  "claims": {
                    "type": "array",
                    "minItems": 1,
                    "maxItems": 20,
                    "items": {
                      "oneOf": [
                        {
                          "type": "object",
                          "required": [
                            "type",
                            "concept",
                            "value"
                          ],
                          "properties": {
                            "type": {
                              "const": "figure"
                            },
                            "concept": {
                              "type": "string",
                              "description": "One of the line items, or segment_revenue with member. Others are answered refused.",
                              "examples": [
                                "buybacks",
                                "capex",
                                "cost_of_revenue"
                              ]
                            },
                            "value": {
                              "type": "number",
                              "description": "US dollars (shares for diluted_shares), at most 1e15"
                            },
                            "fiscal_year": {
                              "type": "integer",
                              "minimum": 1990,
                              "maximum": 2100
                            },
                            "period": {
                              "enum": [
                                "year",
                                "quarter",
                                "six_months",
                                "nine_months"
                              ]
                            },
                            "period_end": {
                              "type": "string",
                              "format": "date"
                            },
                            "rounded_to": {
                              "type": "number",
                              "minimum": 1,
                              "maximum": 1000000000000.0
                            },
                            "member": {
                              "type": "string"
                            },
                            "as_of": {
                              "type": "string",
                              "format": "date"
                            }
                          },
                          "additionalProperties": true
                        },
                        {
                          "type": "object",
                          "required": [
                            "type",
                            "concept",
                            "fiscal_year",
                            "value"
                          ],
                          "properties": {
                            "type": {
                              "enum": [
                                "growth",
                                "margin"
                              ]
                            },
                            "concept": {
                              "type": "string",
                              "description": "Growth takes any listed line item. Margin takes a dollar flow other than revenue. Neither takes segment_revenue, a member or a period; both name fiscal_year."
                            },
                            "fiscal_year": {
                              "type": "integer",
                              "minimum": 1990,
                              "maximum": 2100
                            },
                            "value": {
                              "type": "number",
                              "description": "A percentage"
                            },
                            "period_end": {
                              "type": "string",
                              "format": "date"
                            },
                            "prior_period_end": {
                              "type": "string",
                              "format": "date"
                            },
                            "as_of": {
                              "type": "string",
                              "format": "date"
                            }
                          },
                          "additionalProperties": true
                        },
                        {
                          "type": "object",
                          "required": [
                            "type",
                            "since_year"
                          ],
                          "properties": {
                            "type": {
                              "enum": [
                                "no_restatement",
                                "no_auditor_change",
                                "no_bankruptcy",
                                "no_delisting_notice",
                                "no_late_filing"
                              ]
                            },
                            "since_year": {
                              "type": "integer",
                              "minimum": 1990,
                              "maximum": 2100,
                              "description": "Events are read for the last 7 calendar years only; an earlier since_year is answered refused."
                            },
                            "as_of": {
                              "type": "string",
                              "format": "date"
                            }
                          },
                          "additionalProperties": true
                        }
                      ]
                    }
                  },
                  "reference": {
                    "type": "string",
                    "maxLength": 80,
                    "description": "Your own tag for the receipt, such as an adviser seat or a document id. Kept on the receipt and listed by GET /check/receipts?reference= for a signed-in session."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "A receipt and one verdict per claim, in order",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "receipt": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "verdicts": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "verdict": {
                            "enum": [
                              "matches_filing",
                              "first_filed_differently",
                              "contradicted",
                              "not_on_file",
                              "refused",
                              "absent_in_read"
                            ]
                          },
                          "statement": {
                            "type": "string",
                            "description": "Names the filing the verdict was read from"
                          },
                          "accession": {
                            "type": [
                              "string",
                              "null"
                            ]
                          }
                        },
                        "required": [
                          "verdict"
                        ],
                        "additionalProperties": true
                      }
                    }
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "description": "Missing, malformed, unknown or revoked key",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "detail": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "422": {
            "description": "The body failed validation; detail says why",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "detail": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "429": {
            "description": "An allowance ran out; Retry-After says when",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "detail": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "502": {
            "description": "An upstream read failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "detail": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "503": {
            "description": "A source or the key store is unavailable; no receipt was written",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "detail": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          }
        }
      }
    },
    "/check/public": {
      "get": {
        "operationId": "publicCheck",
        "summary": "Free, logged-out check of one figure; writes no receipt",
        "security": [],
        "parameters": [
          {
            "name": "ticker",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "concept",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "value",
            "in": "query",
            "required": true,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "fiscal_year",
            "in": "query",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "period_end",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "period",
            "in": "query",
            "schema": {
              "enum": [
                "year",
                "quarter",
                "six_months",
                "nine_months"
              ]
            }
          },
          {
            "name": "rounded_to",
            "in": "query",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "member",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "One verdict, the accessions read, and a reproducibility id",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "ticker": {
                      "type": "string"
                    },
                    "engine_version": {
                      "type": "string"
                    },
                    "as_of": {
                      "type": "string",
                      "format": "date"
                    },
                    "accessions": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "verdicts": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "verdict": {
                            "enum": [
                              "matches_filing",
                              "first_filed_differently",
                              "contradicted",
                              "not_on_file",
                              "refused",
                              "absent_in_read"
                            ]
                          },
                          "statement": {
                            "type": "string",
                            "description": "Names the filing the verdict was read from"
                          },
                          "accession": {
                            "type": [
                              "string",
                              "null"
                            ]
                          }
                        },
                        "required": [
                          "verdict"
                        ],
                        "additionalProperties": true
                      }
                    }
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "422": {
            "description": "The claim failed validation",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "detail": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "429": {
            "description": "This address used its free checks, or is calling faster than the per-minute and per-day limits.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "detail": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "502": {
            "description": "An upstream read failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "detail": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "503": {
            "description": "A source is unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "detail": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          }
        }
      }
    },
    "/v1/pit": {
      "get": {
        "operationId": "pit",
        "summary": "What the filings dated on or before a date showed for one filer; history and recast views; JSON or CSV",
        "security": [
          {
            "ApiKey": []
          }
        ],
        "parameters": [
          {
            "name": "ticker",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cik",
            "in": "query",
            "description": "Instead of ticker",
            "schema": {
              "type": "integer",
              "minimum": 1
            }
          },
          {
            "name": "as_of",
            "in": "query",
            "description": "A date (the whole day) or an ISO timestamp such as 2020-02-01T21:00:00Z (UTC unless it carries an offset): only filings EDGAR had accepted by then. Filings with no acceptance time on record count from the end of their filing day. Default today.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "period_type",
            "in": "query",
            "schema": {
              "enum": [
                "annual",
                "quarter",
                "instant",
                "ttm"
              ]
            },
            "description": "ttm: sum of the four newest standalone quarters known on as_of (flow items); not with history or recast"
          },
          {
            "name": "concept",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "accounts_payable",
                "accrued_liabilities",
                "accumulated_oci",
                "acquisitions",
                "additional_paid_in_capital",
                "amortization_of_intangibles",
                "asset_impairment",
                "basic_shares",
                "buyback_authorized",
                "buyback_remaining",
                "buybacks",
                "capex",
                "cash",
                "cash_change",
                "change_inventory",
                "change_payables",
                "change_receivables",
                "commercial_paper",
                "common_stock_value",
                "comprehensive_income",
                "cost_of_revenue",
                "current_assets",
                "current_liabilities",
                "debt_due_after_year5",
                "debt_due_year1",
                "debt_due_year2",
                "debt_due_year3",
                "debt_due_year4",
                "debt_due_year5",
                "debt_issued",
                "debt_repaid",
                "deferred_income_tax_expense",
                "deferred_revenue",
                "deferred_revenue_noncurrent",
                "deferred_tax_assets",
                "deferred_tax_liabilities",
                "depreciation_amortization",
                "diluted_shares",
                "dividends_declared",
                "dividends_paid",
                "dividends_per_share",
                "eps_basic",
                "eps_diluted",
                "finance_lease_liability",
                "financing_cash_flow",
                "fx_effect_on_cash",
                "general_admin_expense",
                "goodwill",
                "goodwill_impairment",
                "gross_profit",
                "income_discontinued",
                "income_tax",
                "income_taxes_paid",
                "intangibles",
                "intangibles_purchased",
                "interest_and_dividend_income",
                "interest_expense",
                "interest_income",
                "interest_paid",
                "inventory",
                "investing_cash_flow",
                "investments_purchased",
                "investments_sold",
                "liabilities_and_equity",
                "long_term_debt",
                "long_term_investments",
                "net_income",
                "net_income_to_common",
                "net_interest_income",
                "net_investment_income",
                "noncontrolling_income",
                "noncontrolling_interest",
                "noninterest_expense",
                "noninterest_income",
                "operating_cash_flow",
                "operating_expenses",
                "operating_income",
                "operating_lease_liability",
                "operating_lease_liability_current",
                "operating_lease_liability_noncurrent",
                "operating_lease_rou_asset",
                "other_assets_noncurrent",
                "other_liabilities_noncurrent",
                "other_nonoperating",
                "policyholder_benefits",
                "ppe_net",
                "preferred_stock",
                "premiums_earned",
                "pretax_income",
                "pretax_income_domestic",
                "pretax_income_foreign",
                "provision_for_credit_losses",
                "rd_expense",
                "real_estate_net",
                "receivables",
                "remaining_performance_obligation",
                "restructuring_charges",
                "retained_earnings",
                "revenue",
                "selling_marketing_expense",
                "sga_expense",
                "share_withholding_payments",
                "shareholders_equity",
                "shares_issued",
                "shares_outstanding",
                "shares_repurchased",
                "short_term_borrowings",
                "short_term_debt",
                "short_term_investments",
                "stock_based_compensation",
                "stock_issued",
                "temporary_equity",
                "total_assets",
                "total_costs",
                "total_liabilities",
                "treasury_stock",
                "allowance_for_credit_losses",
                "claims_reserves",
                "deferred_acquisition_costs",
                "deposits",
                "future_policy_benefits",
                "loans_gross",
                "loans_net",
                "property_count",
                "public_float",
                "restaurant_count",
                "store_count",
                "free_cash_flow",
                "ebitda",
                "gross_margin",
                "operating_margin",
                "net_margin",
                "current_ratio",
                "working_capital",
                "effective_tax_rate",
                "book_value_per_share",
                "liabilities_to_equity",
                "long_term_debt_to_equity",
                "cash_ratio",
                "interest_coverage",
                "cash_conversion",
                "payout_ratio",
                "rd_intensity",
                "sga_ratio",
                "ocf_margin",
                "capex_intensity",
                "sbc_intensity",
                "liabilities_to_assets",
                "revenue_per_share",
                "goodwill_to_assets",
                "intangibles_to_assets",
                "capex_to_da",
                "buybacks_to_ocf",
                "dividends_to_ocf",
                "opex_ratio",
                "benefits_to_premiums",
                "loans_to_deposits",
                "allowance_to_loans",
                "return_on_equity",
                "return_on_assets",
                "return_on_invested_capital",
                "asset_turnover"
              ]
            },
            "description": "One line item: accounts_payable, accrued_liabilities, accumulated_oci, acquisitions, additional_paid_in_capital, amortization_of_intangibles, asset_impairment, basic_shares, buyback_authorized, buyback_remaining, buybacks, capex, cash, cash_change, change_inventory, change_payables, change_receivables, commercial_paper, common_stock_value, comprehensive_income, cost_of_revenue, current_assets, current_liabilities, debt_due_after_year5, debt_due_year1, debt_due_year2, debt_due_year3, debt_due_year4, debt_due_year5, debt_issued, debt_repaid, deferred_income_tax_expense, deferred_revenue, deferred_revenue_noncurrent, deferred_tax_assets, deferred_tax_liabilities, depreciation_amortization, diluted_shares, dividends_declared, dividends_paid, dividends_per_share, eps_basic, eps_diluted, finance_lease_liability, financing_cash_flow, fx_effect_on_cash, general_admin_expense, goodwill, goodwill_impairment, gross_profit, income_discontinued, income_tax, income_taxes_paid, intangibles, intangibles_purchased, interest_and_dividend_income, interest_expense, interest_income, interest_paid, inventory, investing_cash_flow, investments_purchased, investments_sold, liabilities_and_equity, long_term_debt, long_term_investments, net_income, net_income_to_common, net_interest_income, net_investment_income, noncontrolling_income, noncontrolling_interest, noninterest_expense, noninterest_income, operating_cash_flow, operating_expenses, operating_income, operating_lease_liability, operating_lease_liability_current, operating_lease_liability_noncurrent, operating_lease_rou_asset, other_assets_noncurrent, other_liabilities_noncurrent, other_nonoperating, policyholder_benefits, ppe_net, preferred_stock, premiums_earned, pretax_income, pretax_income_domestic, pretax_income_foreign, provision_for_credit_losses, rd_expense, real_estate_net, receivables, remaining_performance_obligation, restructuring_charges, retained_earnings, revenue, selling_marketing_expense, sga_expense, share_withholding_payments, shareholders_equity, shares_issued, shares_outstanding, shares_repurchased, short_term_borrowings, short_term_debt, short_term_investments, stock_based_compensation, stock_issued, temporary_equity, total_assets, total_costs, total_liabilities, treasury_stock, allowance_for_credit_losses, claims_reserves, deferred_acquisition_costs, deposits, future_policy_benefits, loans_gross, loans_net, property_count, public_float, restaurant_count, store_count (read from the filings). Derived, in single-figure views only: free_cash_flow, ebitda, gross_margin, operating_margin, net_margin, current_ratio, working_capital, effective_tax_rate, book_value_per_share, liabilities_to_equity, long_term_debt_to_equity, cash_ratio, interest_coverage, cash_conversion, payout_ratio, rd_intensity, sga_ratio, ocf_margin, capex_intensity, sbc_intensity, liabilities_to_assets, revenue_per_share, goodwill_to_assets, intangibles_to_assets, capex_to_da, buybacks_to_ocf, dividends_to_ocf, opex_ratio, benefits_to_premiums, loans_to_deposits, allowance_to_loans, return_on_equity, return_on_assets, return_on_invested_capital, asset_turnover. Each field's definition, unit, period type, XBRL tags in priority order and formula are on /developers and in components.schemas.PitFields."
          },
          {
            "name": "history",
            "in": "query",
            "description": "Every value the SEC showed, each with the date it first appeared, its accession (accn) and an accepted column: the instant EDGAR accepted that filing",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "recast",
            "in": "query",
            "description": "Only figures whose value changed (implies history)",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "format",
            "in": "query",
            "schema": {
              "enum": [
                "json",
                "csv"
              ],
              "default": "json"
            }
          },
          {
            "name": "original",
            "in": "query",
            "description": "Each period's first-filed value instead of the newest; not with history or recast",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "name",
            "in": "query",
            "description": "A filer's registered name, for a delisted filer that has no ticker. One match is used; several are returned as candidates (HTTP 300, each with cik, name, ticker) to pick a cik from.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "tickers",
            "in": "query",
            "description": "Up to 50 comma-separated tickers in one request, instead of ticker or cik. Each row is led by cik and ticker, missing names the tickers not in the dataset, and the request counts against the rate limits once per ticker.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "fields",
            "in": "query",
            "description": "Comma-separated line items to keep, instead of concept; names are in components.schemas.PitFields",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "period_end",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date"
            },
            "description": "Only the period ending on this date; with history, every revision of it filed on or before as_of: what was known, and when, about one period"
          }
        ],
        "responses": {
          "200": {
            "description": "Rows, or a CSV file",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "cik": {
                      "type": "integer"
                    },
                    "as_of": {
                      "type": "string",
                      "description": "The date (or, when the request sent a timestamp, the timestamp) the answer is for. A date later than data_through is answered as data_through, and as_of_requested holds the date asked. A request with no as_of gets today's date."
                    },
                    "as_of_requested": {
                      "type": "string",
                      "description": "Only when the request sent an as_of later than data_through: the date it asked for. Such an answer is provisional: the same request returns different rows once data_through advances, so do not store it as the answer for that date."
                    },
                    "data_through": {
                      "type": "string",
                      "format": "date",
                      "description": "The latest filing date in the table (the build's latest_filed)."
                    },
                    "note": {
                      "type": "string",
                      "description": "Only when as_of was clamped, or rows is empty: why. With format=csv the same facts are the response headers X-Data-Through, X-As-Of-Requested, X-Note and X-First-Filed."
                    },
                    "coverage": {
                      "type": "object",
                      "description": "Only when rows is empty.",
                      "properties": {
                        "first_filed": {
                          "description": "The filing date of the filer's first row in the table (with tickers: a map of ticker to that date).",
                          "oneOf": [
                            {
                              "type": "string",
                              "format": "date"
                            },
                            {
                              "type": "object"
                            }
                          ]
                        }
                      }
                    },
                    "history": {
                      "type": "boolean"
                    },
                    "columns": {
                      "description": "Column names, in row order. The last, `quality`, is pass, fail:<check>[;<check>] or null; see components.schemas.PitQuality.",
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "array"
                      }
                    }
                  }
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Missing or unknown key"
          },
          "404": {
            "description": "Filer not in the dataset"
          },
          "422": {
            "description": "Bad parameter"
          },
          "429": {
            "description": "Rate limit"
          },
          "503": {
            "description": "Dataset not built yet"
          }
        }
      }
    },
    "/v1/pit/changes": {
      "get": {
        "operationId": "pitChanges",
        "summary": "The daily update: every row filed after a date, across all filers",
        "security": [
          {
            "ApiKey": []
          }
        ],
        "parameters": [
          {
            "name": "since",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date"
            },
            "description": "The latest_filed of the table you last pulled (from /public/pit/coverage)"
          },
          {
            "name": "format",
            "in": "query",
            "schema": {
              "enum": [
                "json",
                "csv",
                "parquet"
              ],
              "default": "json"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Rows with the /v1/pit columns plus restated (true when an earlier filing already stated that line item for that period); through is the date to send next time; the JSON also carries events (event_columns): the restatement filings filed after since"
          },
          "401": {
            "description": "Missing or unknown key"
          },
          "410": {
            "description": "since is older than the retained daily files; download /v1/pit/export"
          },
          "422": {
            "description": "since is not a date"
          },
          "429": {
            "description": "Rate limit"
          },
          "503": {
            "description": "Dataset not built yet"
          }
        }
      }
    },
    "/v1/pit/export": {
      "get": {
        "operationId": "pitExport",
        "summary": "The full table as of the last daily build, sent as the file itself (200); size and sha256 of each file are in exports of /public/pit/coverage",
        "security": [
          {
            "ApiKey": []
          }
        ],
        "parameters": [
          {
            "name": "format",
            "in": "query",
            "schema": {
              "enum": [
                "parquet",
                "csv"
              ],
              "default": "parquet"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The file itself, in every case but the 302 below: save the body, and check it against the sha256 in /public/pit/coverage"
          },
          "302": {
            "description": "Only where the dataset store has download links and no S3 credentials, for an export stored as one object: a one-hour signed link, to download without the key"
          },
          "401": {
            "description": "Missing or unknown key"
          },
          "402": {
            "description": "The key's account is not on the data plan"
          },
          "429": {
            "description": "Rate limit"
          },
          "503": {
            "description": "Dataset not built yet"
          }
        }
      }
    },
    "/public/pit/filer": {
      "get": {
        "operationId": "pitFiler",
        "summary": "Whether the point-in-time table covers a filer, and the span it covers",
        "security": [],
        "parameters": [
          {
            "name": "ticker",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Row count and filing-date span",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "integer"
                    },
                    "first_filed": {
                      "type": "string"
                    },
                    "last_filed": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Filer not in the dataset"
          },
          "422": {
            "description": "Bad parameter"
          }
        }
      }
    },
    "/public/recasts": {
      "get": {
        "operationId": "publicRecasts",
        "summary": "Annual figures whose first-filed and latest values differ by more than 2%, with both accessions",
        "security": [],
        "parameters": [
          {
            "name": "ticker",
            "in": "query",
            "description": "Narrow to one filer, or to a peer group of up to 10 comma-separated tickers (one list, one CSV; an unknown ticker is a 404 that names it); a filer outside the backtest sample is read from the point-in-time table",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "years",
            "in": "query",
            "description": "How far back a fiscal period may end, in years (older periods read more of the table)",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 15,
              "default": 5
            }
          },
          {
            "name": "unconfirmed",
            "in": "query",
            "description": "Also return figures first filed under another XBRL tag than the latest filing's (marked unconfirmed): the filings alone cannot say whether that is a restatement or a different line",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "periods",
            "in": "query",
            "description": "annual figures (default), the quarters a 10-Q states, or all; quarters appear after the next daily build",
            "schema": {
              "enum": [
                "annual",
                "quarterly",
                "all"
              ],
              "default": "annual"
            }
          },
          {
            "name": "format",
            "in": "query",
            "schema": {
              "enum": [
                "json",
                "csv"
              ],
              "default": "json"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Rows, or a CSV file",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "ticker": {
                        "type": "string"
                      },
                      "concept": {
                        "type": "string"
                      },
                      "fiscal_year": {
                        "type": "integer"
                      },
                      "period_end": {
                        "type": "string"
                      },
                      "first": {
                        "type": "object",
                        "properties": {
                          "value": {
                            "type": "number"
                          },
                          "accn": {
                            "type": "string"
                          },
                          "filed": {
                            "type": "string"
                          },
                          "tag": {
                            "type": "string",
                            "description": "The XBRL element this filing used for the line; the concept above is the standardised line it is read under"
                          }
                        }
                      },
                      "latest": {
                        "type": "object",
                        "properties": {
                          "value": {
                            "type": "number"
                          },
                          "accn": {
                            "type": "string"
                          },
                          "filed": {
                            "type": "string"
                          },
                          "tag": {
                            "type": "string",
                            "description": "The XBRL element this filing used for the line; the concept above is the standardised line it is read under"
                          }
                        }
                      },
                      "cause": {
                        "type": "string",
                        "description": "With ticker: what made the latest value: non_reliance, amendment, error_correction, split, discontinued_operations, accounting_change, reclassification, whole_statements (total assets and equity each changed by a factor of two or more) or unexplained"
                      },
                      "why": {
                        "type": "string",
                        "description": "With ticker: one plain line on the cause"
                      }
                    }
                  }
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/pit/restatements": {
      "get": {
        "operationId": "pitRestatements",
        "summary": "Restatement events across the market or for one filer: 8-K Item 4.02 notices, revising amendments and recasts, filterable",
        "security": [
          {
            "ApiKey": []
          }
        ],
        "parameters": [
          {
            "name": "ticker",
            "in": "query",
            "description": "One filer; leave out for the whole market",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cik",
            "in": "query",
            "description": "One filer by CIK",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "kind",
            "in": "query",
            "description": "Comma-separated: non_reliance (8-K Item 4.02), amendment (10-K / 10-Q amended), recast (an ordinary 10-K / 10-Q reports a figure for an earlier period more than 2% away from what the filing before it reported under the same tag; basis says what the filing reports)",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cause",
            "in": "query",
            "description": "Comma-separated: error_correction (any event whose filing text says it corrects an error in earlier statements; read from the filing text and set once the filing has been read), for recasts split, discontinued_operations, accounting_change, reclassification, unexplained (net income, equity or total assets changed; cause unstated). A recast is not a claim of error: most are standards adopted retrospectively",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "since",
            "in": "query",
            "description": "Filed after this date",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "until",
            "in": "query",
            "description": "Filed on or before this date",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "sic",
            "in": "query",
            "description": "SEC SIC code prefix: 2 digits is a division, 4 an exact industry",
            "schema": {
              "type": "string",
              "pattern": "^\\d{1,4}$"
            }
          },
          {
            "name": "industry",
            "in": "query",
            "description": "Part of the SEC's industry description, any case",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "min_change_pct",
            "in": "query",
            "description": "Only events whose largest revision moved a figure by at least this many percent",
            "schema": {
              "type": "number",
              "minimum": 0
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Events per page",
            "schema": {
              "type": "integer",
              "default": 500,
              "maximum": 5000
            }
          },
          {
            "name": "offset",
            "in": "query",
            "description": "Events to skip",
            "schema": {
              "type": "integer",
              "default": 0
            }
          },
          {
            "name": "format",
            "in": "query",
            "schema": {
              "enum": [
                "json",
                "csv"
              ],
              "default": "json"
            },
            "description": "csv is one row per event without line items"
          }
        ],
        "responses": {
          "200": {
            "description": "Events newest first with the filer's sic and industry, and total matches; or a CSV file",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "cik": {
                      "type": "integer"
                    },
                    "since": {
                      "type": "string"
                    },
                    "events": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "cik": {
                            "type": "integer"
                          },
                          "ticker": {
                            "type": "string"
                          },
                          "kind": {
                            "type": "string",
                            "enum": [
                              "non_reliance",
                              "amendment",
                              "recast"
                            ]
                          },
                          "form": {
                            "type": "string"
                          },
                          "filed": {
                            "type": "string",
                            "format": "date"
                          },
                          "accn": {
                            "type": "string"
                          },
                          "report_date": {
                            "type": "string",
                            "format": "date"
                          },
                          "periods": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "format": "date"
                            },
                            "description": "Period ends of the revisions linked to the filing"
                          },
                          "years_named": {
                            "type": "array",
                            "items": {
                              "type": "integer"
                            },
                            "description": "Fiscal years an 8-K names as not to be relied on; absent until its text is read"
                          },
                          "n_items": {
                            "type": "integer"
                          },
                          "items": {
                            "type": "array",
                            "items": {
                              "type": "array"
                            },
                            "description": "The largest revised line items: concept, period_type, period_end, first-filed value, preceding value, revised value, revising accession, form and filing date"
                          },
                          "sic": {
                            "type": "string"
                          },
                          "industry": {
                            "type": "string"
                          },
                          "max_pct": {
                            "type": "number",
                            "description": "Largest relative change among the linked revisions, as a fraction"
                          },
                          "basis": {
                            "type": "string",
                            "description": "The reason a recast gives"
                          }
                        }
                      }
                    },
                    "total": {
                      "type": "integer"
                    },
                    "offset": {
                      "type": "integer"
                    },
                    "limit": {
                      "type": "integer"
                    }
                  }
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Missing or unknown key"
          },
          "404": {
            "description": "Filer not in the dataset"
          },
          "422": {
            "description": "Bad parameter"
          },
          "429": {
            "description": "Rate limit"
          },
          "503": {
            "description": "Dataset not built yet"
          }
        }
      }
    },
    "/v1/pit/snapshot": {
      "get": {
        "operationId": "pitSnapshot",
        "summary": "Every filer's as_of in one Parquet or CSV file, a stable URL per date",
        "description": "Per (filer, line item, period) the newest row filed on or before as_of, with the columns of /v1/pit/export. fields keeps only those line items. A date after the last build gives the last build's (X-As-Of names it). The first request for a date and field set answers 202 with Retry-After while the file is built from the export; after that it is the file itself (200), and If-None-Match with the ETag answers 304 until the next build. To keep a copy current: this once, then /v1/pit/changes?format=parquet each day.",
        "security": [
          {
            "ApiKey": []
          }
        ],
        "parameters": [
          {
            "name": "as_of",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "fields",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Comma-separated line items to keep (names from the data dictionary); every line item when omitted. Derived figures are computed from these, so ask for their legs."
          },
          {
            "name": "format",
            "in": "query",
            "schema": {
              "enum": [
                "parquet",
                "csv"
              ],
              "default": "parquet"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The file itself: save the body"
          },
          "202": {
            "description": "Being built; ask again after Retry-After seconds"
          },
          "302": {
            "description": "Only where the dataset store has download links and no S3 credentials: a one-hour link to the file"
          },
          "304": {
            "description": "Unchanged since the ETag you sent"
          },
          "401": {
            "description": "Missing or unknown key"
          },
          "422": {
            "description": "as_of is not a date, or a line item is unknown or derived"
          },
          "429": {
            "description": "Rate limit"
          },
          "503": {
            "description": "Dataset not built yet"
          }
        }
      }
    },
    "/public/pit/coverage": {
      "get": {
        "operationId": "pitCoverage",
        "summary": "The build record: row and filer counts, build date, latest filing date and the committed accuracy measurement with its run date",
        "security": [],
        "parameters": [],
        "responses": {
          "200": {
            "description": "The manifest of the current build"
          },
          "404": {
            "description": "Not built yet"
          }
        }
      }
    },
    "/public/pit/recast-feed": {
      "get": {
        "operationId": "pitRecastFeed",
        "summary": "Figures a later filing changed in the last days: old and new value, percentage change, both filings",
        "security": [],
        "parameters": [
          {
            "name": "days",
            "in": "query",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The feed, newest first"
          }
        }
      }
    },
    "/public/pit/restatements": {
      "get": {
        "operationId": "pitPublicRestatements",
        "summary": "The restatement events /recast/filings shows, without line items",
        "security": [],
        "parameters": [
          {
            "name": "ticker",
            "in": "query",
            "description": "One filer; leave out for the whole market",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "kind",
            "in": "query",
            "description": "Comma-separated: non_reliance (8-K Item 4.02), amendment (10-K / 10-Q amended), recast (an ordinary 10-K / 10-Q reports a figure for an earlier period more than 2% away from what the filing before it reported under the same tag; basis says what the filing reports)",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cause",
            "in": "query",
            "description": "Comma-separated: error_correction (any event whose filing text says it corrects an error in earlier statements; read from the filing text and set once the filing has been read), for recasts split, discontinued_operations, accounting_change, reclassification, unexplained (net income, equity or total assets changed; cause unstated). A recast is not a claim of error: most are standards adopted retrospectively",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "since",
            "in": "query",
            "description": "Filed after this date",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "until",
            "in": "query",
            "description": "Filed on or before this date",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "sic",
            "in": "query",
            "description": "SEC SIC code prefix: 2 digits is a division, 4 an exact industry",
            "schema": {
              "type": "string",
              "pattern": "^\\d{1,4}$"
            }
          },
          {
            "name": "industry",
            "in": "query",
            "description": "Part of the SEC's industry description, any case",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "min_change_pct",
            "in": "query",
            "description": "Only events whose largest revision moved a figure by at least this many percent",
            "schema": {
              "type": "number",
              "minimum": 0
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Events per page",
            "schema": {
              "type": "integer",
              "default": 500,
              "maximum": 5000
            }
          },
          {
            "name": "offset",
            "in": "query",
            "description": "Events to skip",
            "schema": {
              "type": "integer",
              "default": 0
            }
          },
          {
            "name": "format",
            "in": "query",
            "schema": {
              "enum": [
                "json",
                "csv"
              ],
              "default": "json"
            },
            "description": "csv is one row per event without line items"
          }
        ],
        "responses": {
          "200": {
            "description": "Events"
          }
        }
      }
    },
    "/v1/pit/record": {
      "get": {
        "operationId": "pitRecord",
        "summary": "A self-contained filing record for one filer and date, with a content hash",
        "security": [
          {
            "ApiKey": []
          }
        ],
        "parameters": [
          {
            "name": "ticker",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cik",
            "in": "query",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "as_of",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "YYYY-MM-DD"
          },
          {
            "name": "fields",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Comma-separated line items to keep"
          }
        ],
        "responses": {
          "200": {
            "description": "The record"
          },
          "422": {
            "description": "Bad parameter"
          }
        }
      }
    },
    "/v1/pit/webhook": {
      "put": {
        "operationId": "pitWebhookSet",
        "summary": "POST each day's new restatement events to an https url, signed; returns the secret once",
        "description": "Part of the data plan: a key without it gets 402. Reading or removing your own hook needs no plan.",
        "security": [
          {
            "ApiKey": []
          }
        ],
        "parameters": [
          {
            "name": "url",
            "in": "query",
            "schema": {
              "type": "string",
              "maxLength": 500
            },
            "required": false,
            "deprecated": true,
            "description": "Deprecated: proxies and access logs record query strings, and a receiver URL is a secret. Send the JSON body."
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "url"
                ],
                "properties": {
                  "url": {
                    "type": "string",
                    "maxLength": 500
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "url and secret"
          },
          "402": {
            "description": "The data plan is required to register a webhook"
          },
          "422": {
            "description": "Url refused"
          }
        }
      },
      "get": {
        "operationId": "pitWebhookGet",
        "summary": "The registered webhook url, or null",
        "security": [
          {
            "ApiKey": []
          }
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "The webhook"
          }
        }
      },
      "delete": {
        "operationId": "pitWebhookDelete",
        "summary": "Remove the webhook",
        "security": [
          {
            "ApiKey": []
          }
        ],
        "parameters": [],
        "responses": {
          "204": {
            "description": "Removed"
          }
        }
      }
    },
    "/public/pit/recast-snapshot": {
      "get": {
        "operationId": "pitRecastSnapshot",
        "summary": "The last build's coverage, feed and /recast figures in one object (the page fallback while the API is down)",
        "security": [],
        "responses": {
          "200": {
            "description": "The published snapshot",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "No build has published one yet"
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "ApiKey": {
        "type": "apiKey",
        "in": "header",
        "name": "X-Api-Key",
        "description": "Made in Settings, API keys. Format stk_live_ plus 64 hex (a key made before 2026-10-24 starts sk_live_ and still works). GET /v1/pit also accepts the key demo, with no sign-up, for the tickers AAPL, MSFT, AMZN, TSLA, GOOGL and NVDA."
      }
    },
    "schemas": {
      "PitFields": {
        "type": "object",
        "description": "The data dictionary: one property per line item a /v1/pit row can carry.",
        "properties": {
          "accounts_payable": {
            "description": "Trade payables due within a year.",
            "x-unit": "USD",
            "x-period-type": "instant",
            "x-xbrl-tags": [
              "us-gaap:AccountsPayableCurrent",
              "ifrs-full:TradeAndOtherCurrentPayables"
            ]
          },
          "accrued_liabilities": {
            "description": "Expenses incurred and not yet paid, due within a year.",
            "x-unit": "USD",
            "x-period-type": "instant",
            "x-xbrl-tags": [
              "us-gaap:AccruedLiabilitiesCurrent"
            ]
          },
          "accumulated_oci": {
            "description": "Cumulative gains and losses booked straight to equity.",
            "x-unit": "USD",
            "x-period-type": "instant",
            "x-xbrl-tags": [
              "us-gaap:AccumulatedOtherComprehensiveIncomeLossNetOfTax"
            ]
          },
          "acquisitions": {
            "description": "Cash paid for businesses acquired, net of the cash they held.",
            "x-unit": "USD",
            "x-period-type": "duration",
            "x-xbrl-tags": [
              "us-gaap:PaymentsToAcquireBusinessesNetOfCashAcquired"
            ]
          },
          "additional_paid_in_capital": {
            "description": "Capital paid in by shareholders above the par value of shares.",
            "x-unit": "USD",
            "x-period-type": "instant",
            "x-xbrl-tags": [
              "us-gaap:AdditionalPaidInCapital",
              "us-gaap:AdditionalPaidInCapitalCommonStock"
            ]
          },
          "amortization_of_intangibles": {
            "description": "Amortization of acquired intangible assets for the period.",
            "x-unit": "USD",
            "x-period-type": "duration",
            "x-xbrl-tags": [
              "us-gaap:AmortizationOfIntangibleAssets"
            ]
          },
          "asset_impairment": {
            "description": "Write-downs of long-lived assets charged in the period (goodwill impairment is its own line).",
            "x-unit": "USD",
            "x-period-type": "duration",
            "x-xbrl-tags": [
              "us-gaap:AssetImpairmentCharges"
            ]
          },
          "basic_shares": {
            "description": "Weighted-average basic shares over the period.",
            "x-unit": "shares",
            "x-period-type": "duration",
            "x-xbrl-tags": [
              "us-gaap:WeightedAverageNumberOfSharesOutstandingBasic",
              "ifrs-full:WeightedAverageShares"
            ]
          },
          "buyback_authorized": {
            "description": "Size of the board's share repurchase authorization as the equity note states it (a program's size, not cash spent).",
            "x-unit": "USD",
            "x-period-type": "instant",
            "x-xbrl-tags": [
              "us-gaap:StockRepurchaseProgramAuthorizedAmount1",
              "us-gaap:StockRepurchaseProgramAuthorizedAmount"
            ]
          },
          "buyback_remaining": {
            "description": "Amount still available under the share repurchase authorization at the date.",
            "x-unit": "USD",
            "x-period-type": "instant",
            "x-xbrl-tags": [
              "us-gaap:StockRepurchaseProgramRemainingAuthorizedRepurchaseAmount1",
              "us-gaap:StockRepurchaseProgramRemainingAuthorizedRepurchaseAmount"
            ]
          },
          "buybacks": {
            "description": "Cash paid to repurchase the filer's own shares.",
            "x-unit": "USD",
            "x-period-type": "duration",
            "x-xbrl-tags": [
              "us-gaap:PaymentsForRepurchaseOfCommonStock",
              "ifrs-full:PaymentsToAcquireOrRedeemEntitysShares"
            ]
          },
          "capex": {
            "description": "Cash paid for property and equipment.",
            "x-unit": "USD",
            "x-period-type": "duration",
            "x-xbrl-tags": [
              "us-gaap:PaymentsToAcquirePropertyPlantAndEquipment",
              "us-gaap:PaymentsToAcquireProductiveAssets",
              "us-gaap:PaymentsToAcquireOtherProductiveAssets",
              "us-gaap:PaymentsForCapitalImprovements",
              "us-gaap:PaymentsToAcquireOtherPropertyPlantAndEquipment",
              "ifrs-full:PurchaseOfPropertyPlantAndEquipment",
              "ifrs-full:PurchaseOfPropertyPlantAndEquipmentClassifiedAsInvestingActivities",
              "us-gaap:PaymentsForLeasingCostsCommissionsAndTenantImprovements",
              "us-gaap:PaymentsForConstructionInProcess",
              "us-gaap:PaymentsToExploreAndDevelopOilAndGasProperties"
            ]
          },
          "cash": {
            "description": "Cash and cash equivalents at the balance-sheet date.",
            "x-unit": "USD",
            "x-period-type": "instant",
            "x-xbrl-tags": [
              "us-gaap:CashAndCashEquivalentsAtCarryingValue",
              "us-gaap:CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents",
              "ifrs-full:CashAndCashEquivalents"
            ]
          },
          "cash_change": {
            "description": "Net increase or decrease in cash for the period, restricted cash included, as the cash-flow statement states it.",
            "x-unit": "USD",
            "x-period-type": "duration",
            "x-xbrl-tags": [
              "us-gaap:CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect",
              "us-gaap:CashAndCashEquivalentsPeriodIncreaseDecrease"
            ]
          },
          "change_inventory": {
            "description": "Cash-flow adjustment for the change in inventory (a positive number is an increase in inventory, which used cash).",
            "x-unit": "USD",
            "x-period-type": "duration",
            "x-xbrl-tags": [
              "us-gaap:IncreaseDecreaseInInventories"
            ]
          },
          "change_payables": {
            "description": "Cash-flow adjustment for the change in accounts payable (a positive number is an increase in payables, which provided cash).",
            "x-unit": "USD",
            "x-period-type": "duration",
            "x-xbrl-tags": [
              "us-gaap:IncreaseDecreaseInAccountsPayable"
            ]
          },
          "change_receivables": {
            "description": "Cash-flow adjustment for the change in receivables (a positive number is an increase in receivables, which used cash).",
            "x-unit": "USD",
            "x-period-type": "duration",
            "x-xbrl-tags": [
              "us-gaap:IncreaseDecreaseInAccountsReceivable"
            ]
          },
          "commercial_paper": {
            "description": "Short-term unsecured notes outstanding at the balance-sheet date.",
            "x-unit": "USD",
            "x-period-type": "instant",
            "x-xbrl-tags": [
              "us-gaap:CommercialPaper"
            ]
          },
          "common_stock_value": {
            "description": "Par value of common shares issued, as carried on the balance sheet.",
            "x-unit": "USD",
            "x-period-type": "instant",
            "x-xbrl-tags": [
              "us-gaap:CommonStockValue",
              "us-gaap:CommonStockValueOutstanding"
            ]
          },
          "comprehensive_income": {
            "description": "Net income plus gains and losses booked straight to equity (currency, pension, securities).",
            "x-unit": "USD",
            "x-period-type": "duration",
            "x-xbrl-tags": [
              "us-gaap:ComprehensiveIncomeNetOfTax"
            ]
          },
          "cost_of_revenue": {
            "description": "Direct cost of the goods and services sold in the period.",
            "x-unit": "USD",
            "x-period-type": "duration",
            "x-xbrl-tags": [
              "us-gaap:CostOfRevenue",
              "us-gaap:CostOfGoodsAndServicesSold",
              "us-gaap:CostOfGoodsSold",
              "ifrs-full:CostOfSales"
            ]
          },
          "current_assets": {
            "description": "Assets expected to turn to cash within a year.",
            "x-unit": "USD",
            "x-period-type": "instant",
            "x-xbrl-tags": [
              "us-gaap:AssetsCurrent",
              "ifrs-full:CurrentAssets"
            ]
          },
          "current_liabilities": {
            "description": "Obligations due within a year.",
            "x-unit": "USD",
            "x-period-type": "instant",
            "x-xbrl-tags": [
              "us-gaap:LiabilitiesCurrent",
              "ifrs-full:CurrentLiabilities"
            ]
          },
          "debt_due_after_year5": {
            "description": "Debt principal due more than five years after the balance-sheet date, from the debt note's maturity table.",
            "x-unit": "USD",
            "x-period-type": "instant",
            "x-xbrl-tags": [
              "us-gaap:LongTermDebtMaturitiesRepaymentsOfPrincipalAfterYearFive"
            ]
          },
          "debt_due_year1": {
            "description": "Debt principal due in the twelve months after the balance-sheet date, from the maturity table in the debt note.",
            "x-unit": "USD",
            "x-period-type": "instant",
            "x-xbrl-tags": [
              "us-gaap:LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths"
            ]
          },
          "debt_due_year2": {
            "description": "Debt principal due in the second year after the balance-sheet date, from the debt note's maturity table.",
            "x-unit": "USD",
            "x-period-type": "instant",
            "x-xbrl-tags": [
              "us-gaap:LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo"
            ]
          },
          "debt_due_year3": {
            "description": "Debt principal due in the third year after the balance-sheet date, from the debt note's maturity table.",
            "x-unit": "USD",
            "x-period-type": "instant",
            "x-xbrl-tags": [
              "us-gaap:LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree"
            ]
          },
          "debt_due_year4": {
            "description": "Debt principal due in the fourth year after the balance-sheet date, from the debt note's maturity table.",
            "x-unit": "USD",
            "x-period-type": "instant",
            "x-xbrl-tags": [
              "us-gaap:LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour"
            ]
          },
          "debt_due_year5": {
            "description": "Debt principal due in the fifth year after the balance-sheet date, from the debt note's maturity table.",
            "x-unit": "USD",
            "x-period-type": "instant",
            "x-xbrl-tags": [
              "us-gaap:LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFive"
            ]
          },
          "debt_issued": {
            "description": "Cash received from issuing debt.",
            "x-unit": "USD",
            "x-period-type": "duration",
            "x-xbrl-tags": [
              "us-gaap:ProceedsFromIssuanceOfLongTermDebt",
              "us-gaap:ProceedsFromIssuanceOfDebt"
            ]
          },
          "debt_repaid": {
            "description": "Cash paid to repay debt.",
            "x-unit": "USD",
            "x-period-type": "duration",
            "x-xbrl-tags": [
              "us-gaap:RepaymentsOfLongTermDebt",
              "us-gaap:RepaymentsOfDebt"
            ]
          },
          "deferred_income_tax_expense": {
            "description": "The deferred part of income tax expense (benefit), a non-cash add-back in the cash-flow statement.",
            "x-unit": "USD",
            "x-period-type": "duration",
            "x-xbrl-tags": [
              "us-gaap:DeferredIncomeTaxExpenseBenefit"
            ]
          },
          "deferred_revenue": {
            "description": "Customer payments received for service or product not yet delivered, due within a year.",
            "x-unit": "USD",
            "x-period-type": "instant",
            "x-xbrl-tags": [
              "us-gaap:ContractWithCustomerLiabilityCurrent",
              "us-gaap:DeferredRevenueCurrent"
            ]
          },
          "deferred_revenue_noncurrent": {
            "description": "Customer payments received for service or product not yet delivered, due after a year.",
            "x-unit": "USD",
            "x-period-type": "instant",
            "x-xbrl-tags": [
              "us-gaap:ContractWithCustomerLiabilityNoncurrent",
              "us-gaap:DeferredRevenueNoncurrent"
            ]
          },
          "deferred_tax_assets": {
            "description": "Income tax the filer expects to recover later.",
            "x-unit": "USD",
            "x-period-type": "instant",
            "x-xbrl-tags": [
              "us-gaap:DeferredIncomeTaxAssetsNet"
            ]
          },
          "deferred_tax_liabilities": {
            "description": "Income tax the filer will owe later on income already booked.",
            "x-unit": "USD",
            "x-period-type": "instant",
            "x-xbrl-tags": [
              "us-gaap:DeferredIncomeTaxLiabilitiesNet"
            ]
          },
          "depreciation_amortization": {
            "description": "Depreciation and amortization added back in the cash-flow statement; on one filing date the widest scope the filer tagged is used, and plant depreciation alone is excluded because it would understate EBITDA.",
            "x-unit": "USD",
            "x-period-type": "duration",
            "x-xbrl-tags": [
              "us-gaap:DepreciationDepletionAndAmortization",
              "us-gaap:DepreciationAndAmortization",
              "us-gaap:DepreciationAmortizationAndAccretionNet",
              "us-gaap:OtherDepreciationAndAmortization",
              "ifrs-full:DepreciationAndAmortisationExpense"
            ]
          },
          "diluted_shares": {
            "description": "Weighted-average diluted shares over the period.",
            "x-unit": "shares",
            "x-period-type": "duration",
            "x-xbrl-tags": [
              "us-gaap:WeightedAverageNumberOfDilutedSharesOutstanding",
              "ifrs-full:AdjustedWeightedAverageShares"
            ]
          },
          "dividends_declared": {
            "description": "Total common dividends declared in the period (the amount, not the cash paid).",
            "x-unit": "USD",
            "x-period-type": "duration",
            "x-xbrl-tags": [
              "us-gaap:DividendsCommonStockCash",
              "us-gaap:DividendsCommonStock"
            ]
          },
          "dividends_paid": {
            "description": "Cash paid as common dividends.",
            "x-unit": "USD",
            "x-period-type": "duration",
            "x-xbrl-tags": [
              "us-gaap:PaymentsOfDividendsCommonStock",
              "us-gaap:PaymentsOfDividends",
              "ifrs-full:DividendsPaidClassifiedAsFinancingActivities"
            ]
          },
          "dividends_per_share": {
            "description": "Common dividends declared (or paid) per share.",
            "x-unit": "USD/shares",
            "x-period-type": "duration",
            "x-xbrl-tags": [
              "us-gaap:CommonStockDividendsPerShareDeclared",
              "us-gaap:CommonStockDividendsPerShareCashPaid"
            ]
          },
          "eps_basic": {
            "description": "Net income per share on the basic weighted-average share count.",
            "x-unit": "USD/shares",
            "x-period-type": "duration",
            "x-xbrl-tags": [
              "us-gaap:EarningsPerShareBasic",
              "ifrs-full:BasicEarningsLossPerShare",
              "ifrs-full:BasicEarningsLossPerShareFromContinuingOperations"
            ]
          },
          "eps_diluted": {
            "description": "Net income per share on the diluted weighted-average share count.",
            "x-unit": "USD/shares",
            "x-period-type": "duration",
            "x-xbrl-tags": [
              "us-gaap:EarningsPerShareDiluted",
              "ifrs-full:DilutedEarningsLossPerShare",
              "ifrs-full:DilutedEarningsLossPerShareFromContinuingOperations"
            ]
          },
          "finance_lease_liability": {
            "description": "Finance-lease obligation on the balance sheet.",
            "x-unit": "USD",
            "x-period-type": "instant",
            "x-xbrl-tags": [
              "us-gaap:FinanceLeaseLiability"
            ]
          },
          "financing_cash_flow": {
            "description": "Net cash from financing activities.",
            "x-unit": "USD",
            "x-period-type": "duration",
            "x-xbrl-tags": [
              "us-gaap:NetCashProvidedByUsedInFinancingActivities",
              "ifrs-full:CashFlowsFromUsedInFinancingActivities"
            ]
          },
          "fx_effect_on_cash": {
            "description": "Effect of exchange-rate changes on cash for the period.",
            "x-unit": "USD",
            "x-period-type": "duration",
            "x-xbrl-tags": [
              "us-gaap:EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents",
              "us-gaap:EffectOfExchangeRateOnCashAndCashEquivalents"
            ]
          },
          "general_admin_expense": {
            "description": "General and administrative expense, for filers that report it apart from selling and marketing.",
            "x-unit": "USD",
            "x-period-type": "duration",
            "x-xbrl-tags": [
              "us-gaap:GeneralAndAdministrativeExpense"
            ]
          },
          "goodwill": {
            "description": "Goodwill from acquisitions.",
            "x-unit": "USD",
            "x-period-type": "instant",
            "x-xbrl-tags": [
              "us-gaap:Goodwill",
              "ifrs-full:Goodwill"
            ]
          },
          "goodwill_impairment": {
            "description": "Write-down of goodwill charged in the period; only filers that took a charge tag it.",
            "x-unit": "USD",
            "x-period-type": "duration",
            "x-xbrl-tags": [
              "us-gaap:GoodwillImpairmentLoss"
            ]
          },
          "gross_profit": {
            "description": "Revenue less cost of revenue, as the filer reports it.",
            "x-unit": "USD",
            "x-period-type": "duration",
            "x-xbrl-tags": [
              "us-gaap:GrossProfit",
              "ifrs-full:GrossProfit"
            ]
          },
          "income_discontinued": {
            "description": "After-tax result of operations the filer has discontinued or sold.",
            "x-unit": "USD",
            "x-period-type": "duration",
            "x-xbrl-tags": [
              "us-gaap:IncomeLossFromDiscontinuedOperationsNetOfTax"
            ]
          },
          "income_tax": {
            "description": "Income tax expense (benefit) for the period.",
            "x-unit": "USD",
            "x-period-type": "duration",
            "x-xbrl-tags": [
              "us-gaap:IncomeTaxExpenseBenefit",
              "ifrs-full:IncomeTaxExpenseContinuingOperations"
            ]
          },
          "income_taxes_paid": {
            "description": "Cash paid for income tax in the period (a cash-flow disclosure, not the expense).",
            "x-unit": "USD",
            "x-period-type": "duration",
            "x-xbrl-tags": [
              "us-gaap:IncomeTaxesPaidNet",
              "us-gaap:IncomeTaxesPaid"
            ]
          },
          "intangibles": {
            "description": "Intangible assets other than goodwill, net of amortization.",
            "x-unit": "USD",
            "x-period-type": "instant",
            "x-xbrl-tags": [
              "us-gaap:IntangibleAssetsNetExcludingGoodwill",
              "ifrs-full:IntangibleAssetsOtherThanGoodwill"
            ]
          },
          "intangibles_purchased": {
            "description": "Cash paid to acquire intangible assets (software, licences, patents).",
            "x-unit": "USD",
            "x-period-type": "duration",
            "x-xbrl-tags": [
              "us-gaap:PaymentsToAcquireIntangibleAssets"
            ]
          },
          "interest_and_dividend_income": {
            "description": "Interest and dividends earned on loans, securities and other assets, before interest expense (the gross line, not net_interest_income).",
            "x-unit": "USD",
            "x-period-type": "duration",
            "x-xbrl-tags": [
              "us-gaap:InterestAndDividendIncomeOperating"
            ]
          },
          "interest_expense": {
            "description": "Interest cost on debt for the period.",
            "x-unit": "USD",
            "x-period-type": "duration",
            "x-xbrl-tags": [
              "us-gaap:InterestExpense",
              "us-gaap:InterestExpenseNonoperating",
              "us-gaap:InterestExpenseOperating",
              "us-gaap:InterestAndDebtExpense",
              "us-gaap:InterestExpenseDebt",
              "us-gaap:InterestExpenseBorrowings",
              "ifrs-full:FinanceCosts",
              "ifrs-full:InterestExpense"
            ]
          },
          "interest_income": {
            "description": "Interest and investment income earned in the period.",
            "x-unit": "USD",
            "x-period-type": "duration",
            "x-xbrl-tags": [
              "us-gaap:InvestmentIncomeInterest",
              "us-gaap:InterestIncomeOther"
            ]
          },
          "interest_paid": {
            "description": "Cash paid for interest in the period (a cash-flow disclosure, not the expense).",
            "x-unit": "USD",
            "x-period-type": "duration",
            "x-xbrl-tags": [
              "us-gaap:InterestPaidNet",
              "us-gaap:InterestPaid"
            ]
          },
          "inventory": {
            "description": "Net inventory.",
            "x-unit": "USD",
            "x-period-type": "instant",
            "x-xbrl-tags": [
              "us-gaap:InventoryNet",
              "ifrs-full:Inventories"
            ]
          },
          "investing_cash_flow": {
            "description": "Net cash from investing activities (negative when cash was spent).",
            "x-unit": "USD",
            "x-period-type": "duration",
            "x-xbrl-tags": [
              "us-gaap:NetCashProvidedByUsedInInvestingActivities",
              "ifrs-full:CashFlowsFromUsedInInvestingActivities"
            ]
          },
          "investments_purchased": {
            "description": "Cash paid to buy investments (marketable securities, deposits).",
            "x-unit": "USD",
            "x-period-type": "duration",
            "x-xbrl-tags": [
              "us-gaap:PaymentsToAcquireInvestments"
            ]
          },
          "investments_sold": {
            "description": "Cash received from selling, or from the maturity of, investments.",
            "x-unit": "USD",
            "x-period-type": "duration",
            "x-xbrl-tags": [
              "us-gaap:ProceedsFromSaleMaturityAndCollectionsOfInvestments"
            ]
          },
          "liabilities_and_equity": {
            "description": "Total liabilities and equity as the filer tags it: the balance sheet's own total, which total assets must equal.",
            "x-unit": "USD",
            "x-period-type": "instant",
            "x-xbrl-tags": [
              "us-gaap:LiabilitiesAndStockholdersEquity"
            ]
          },
          "long_term_debt": {
            "description": "Debt due after a year (the noncurrent portion).",
            "x-unit": "USD",
            "x-period-type": "instant",
            "x-xbrl-tags": [
              "us-gaap:LongTermDebtNoncurrent",
              "ifrs-full:NoncurrentBorrowings"
            ]
          },
          "long_term_investments": {
            "description": "Investments held for longer than a year.",
            "x-unit": "USD",
            "x-period-type": "instant",
            "x-xbrl-tags": [
              "us-gaap:LongTermInvestments",
              "us-gaap:MarketableSecuritiesNoncurrent",
              "us-gaap:AvailableForSaleSecuritiesDebtSecuritiesNoncurrent"
            ]
          },
          "net_income": {
            "description": "Profit after all expenses, interest and tax, attributable to the filer.",
            "x-unit": "USD",
            "x-period-type": "duration",
            "x-xbrl-tags": [
              "us-gaap:NetIncomeLoss",
              "us-gaap:NetIncome",
              "us-gaap:ProfitLoss",
              "us-gaap:NetIncomeLossAvailableToCommonStockholdersBasic",
              "ifrs-full:ProfitLossAttributableToOwnersOfParent",
              "ifrs-full:ProfitLoss"
            ]
          },
          "net_income_to_common": {
            "description": "Net income available to common stockholders on the diluted basis, after preferred dividends and similar claims.",
            "x-unit": "USD",
            "x-period-type": "duration",
            "x-xbrl-tags": [
              "us-gaap:NetIncomeLossAvailableToCommonStockholdersDiluted"
            ]
          },
          "net_interest_income": {
            "description": "Interest earned less interest paid, on the filer's own net interest income line: a lender's spread income, and for any other filer its small interest income (expense), net.",
            "x-unit": "USD",
            "x-period-type": "duration",
            "x-xbrl-tags": [
              "us-gaap:InterestIncomeExpenseNet"
            ]
          },
          "net_investment_income": {
            "description": "Income from the insurer's investment portfolio in the period, after investment expenses.",
            "x-unit": "USD",
            "x-period-type": "duration",
            "x-xbrl-tags": [
              "us-gaap:NetInvestmentIncome"
            ]
          },
          "noncontrolling_income": {
            "description": "The share of net income that belongs to minority holders of subsidiaries.",
            "x-unit": "USD",
            "x-period-type": "duration",
            "x-xbrl-tags": [
              "us-gaap:NetIncomeLossAttributableToNoncontrollingInterest"
            ]
          },
          "noncontrolling_interest": {
            "description": "Equity in subsidiaries held by outside owners, at the balance-sheet date.",
            "x-unit": "USD",
            "x-period-type": "instant",
            "x-xbrl-tags": [
              "us-gaap:MinorityInterest"
            ]
          },
          "noninterest_expense": {
            "description": "Compensation, occupancy, technology and other operating costs apart from interest, as the lender states them.",
            "x-unit": "USD",
            "x-period-type": "duration",
            "x-xbrl-tags": [
              "us-gaap:NoninterestExpense"
            ]
          },
          "noninterest_income": {
            "description": "Fee, trading, servicing and other income apart from interest, as the lender states it.",
            "x-unit": "USD",
            "x-period-type": "duration",
            "x-xbrl-tags": [
              "us-gaap:NoninterestIncome"
            ]
          },
          "operating_cash_flow": {
            "description": "Net cash from operating activities.",
            "x-unit": "USD",
            "x-period-type": "duration",
            "x-xbrl-tags": [
              "us-gaap:NetCashProvidedByUsedInOperatingActivities",
              "us-gaap:NetCashProvidedByUsedInOperatingActivitiesContinuingOperations",
              "ifrs-full:CashFlowsFromUsedInOperatingActivities",
              "ifrs-full:CashFlowsFromUsedInOperatingActivitiesContinuingOperations"
            ]
          },
          "operating_expenses": {
            "description": "Total operating expenses as the filer states them (selling, administrative, research and other operating costs).",
            "x-unit": "USD",
            "x-period-type": "duration",
            "x-xbrl-tags": [
              "us-gaap:OperatingExpenses"
            ]
          },
          "operating_income": {
            "description": "Profit from operations before interest and income tax.",
            "x-unit": "USD",
            "x-period-type": "duration",
            "x-xbrl-tags": [
              "us-gaap:OperatingIncomeLoss",
              "ifrs-full:ProfitLossFromOperatingActivities"
            ]
          },
          "operating_lease_liability": {
            "description": "Total operating-lease obligation on the balance sheet.",
            "x-unit": "USD",
            "x-period-type": "instant",
            "x-xbrl-tags": [
              "us-gaap:OperatingLeaseLiability"
            ]
          },
          "operating_lease_liability_current": {
            "description": "Operating-lease obligation due within a year.",
            "x-unit": "USD",
            "x-period-type": "instant",
            "x-xbrl-tags": [
              "us-gaap:OperatingLeaseLiabilityCurrent"
            ]
          },
          "operating_lease_liability_noncurrent": {
            "description": "Operating-lease obligation due after a year.",
            "x-unit": "USD",
            "x-period-type": "instant",
            "x-xbrl-tags": [
              "us-gaap:OperatingLeaseLiabilityNoncurrent"
            ]
          },
          "operating_lease_rou_asset": {
            "description": "Right-of-use asset recognized for operating leases, at the balance-sheet date.",
            "x-unit": "USD",
            "x-period-type": "instant",
            "x-xbrl-tags": [
              "us-gaap:OperatingLeaseRightOfUseAsset"
            ]
          },
          "other_assets_noncurrent": {
            "description": "Other long-term assets not shown on a line of their own.",
            "x-unit": "USD",
            "x-period-type": "instant",
            "x-xbrl-tags": [
              "us-gaap:OtherAssetsNoncurrent"
            ]
          },
          "other_liabilities_noncurrent": {
            "description": "Other long-term liabilities not shown on a line of their own.",
            "x-unit": "USD",
            "x-period-type": "instant",
            "x-xbrl-tags": [
              "us-gaap:OtherLiabilitiesNoncurrent"
            ]
          },
          "other_nonoperating": {
            "description": "Income or expense outside operations, net.",
            "x-unit": "USD",
            "x-period-type": "duration",
            "x-xbrl-tags": [
              "us-gaap:NonoperatingIncomeExpense"
            ]
          },
          "policyholder_benefits": {
            "description": "Claims, benefits and losses incurred in the period, net of reinsurance: the numerator of a loss ratio (a health plan's medical costs).",
            "x-unit": "USD",
            "x-period-type": "duration",
            "x-xbrl-tags": [
              "us-gaap:PolicyholderBenefitsAndClaimsIncurredNet"
            ]
          },
          "ppe_net": {
            "description": "Property, plant and equipment, net of depreciation.",
            "x-unit": "USD",
            "x-period-type": "instant",
            "x-xbrl-tags": [
              "us-gaap:PropertyPlantAndEquipmentNet",
              "ifrs-full:PropertyPlantAndEquipment"
            ]
          },
          "preferred_stock": {
            "description": "Carrying value of preferred stock.",
            "x-unit": "USD",
            "x-period-type": "instant",
            "x-xbrl-tags": [
              "us-gaap:PreferredStockValue"
            ]
          },
          "premiums_earned": {
            "description": "Insurance premiums earned in the period, net of reinsurance (a health plan's premium revenue).",
            "x-unit": "USD",
            "x-period-type": "duration",
            "x-xbrl-tags": [
              "us-gaap:PremiumsEarnedNet"
            ]
          },
          "pretax_income": {
            "description": "Profit from continuing operations before income tax.",
            "x-unit": "USD",
            "x-period-type": "duration",
            "x-xbrl-tags": [
              "us-gaap:IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest",
              "us-gaap:IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments",
              "ifrs-full:ProfitLossBeforeTax"
            ]
          },
          "pretax_income_domestic": {
            "description": "Pretax profit from continuing operations earned in the filer's home country.",
            "x-unit": "USD",
            "x-period-type": "duration",
            "x-xbrl-tags": [
              "us-gaap:IncomeLossFromContinuingOperationsBeforeIncomeTaxesDomestic"
            ]
          },
          "pretax_income_foreign": {
            "description": "Pretax profit from continuing operations earned outside the filer's home country.",
            "x-unit": "USD",
            "x-period-type": "duration",
            "x-xbrl-tags": [
              "us-gaap:IncomeLossFromContinuingOperationsBeforeIncomeTaxesForeign"
            ]
          },
          "provision_for_credit_losses": {
            "description": "Expense booked in the period to build the allowance for credit losses (negative for a release), on the lender's own provision line; a filer that files it under another tag is read from that tag only if listed here.",
            "x-unit": "USD",
            "x-period-type": "duration",
            "x-xbrl-tags": [
              "us-gaap:ProvisionForLoanLeaseAndOtherLosses",
              "us-gaap:ProvisionForLoanLossesExpensed"
            ]
          },
          "rd_expense": {
            "description": "Research and development expense; on one filing date the widest scope the filer tagged is used.",
            "x-unit": "USD",
            "x-period-type": "duration",
            "x-xbrl-tags": [
              "us-gaap:ResearchAndDevelopmentExpense",
              "us-gaap:ResearchAndDevelopmentExpenseExcludingAcquiredInProcessCost",
              "us-gaap:ResearchAndDevelopmentExpenseSoftwareExcludingAcquiredInProcessCost",
              "ifrs-full:ResearchAndDevelopmentExpense"
            ]
          },
          "real_estate_net": {
            "description": "Real estate held for investment, net of accumulated depreciation, at the balance-sheet date.",
            "x-unit": "USD",
            "x-period-type": "instant",
            "x-xbrl-tags": [
              "us-gaap:RealEstateInvestmentPropertyNet"
            ]
          },
          "receivables": {
            "description": "Net trade receivables due within a year.",
            "x-unit": "USD",
            "x-period-type": "instant",
            "x-xbrl-tags": [
              "us-gaap:AccountsReceivableNetCurrent",
              "ifrs-full:TradeAndOtherCurrentReceivables"
            ]
          },
          "remaining_performance_obligation": {
            "description": "Contracted revenue not yet recognized (backlog), as the revenue note states it at the date; only filers that disclose it carry it.",
            "x-unit": "USD",
            "x-period-type": "instant",
            "x-xbrl-tags": [
              "us-gaap:RevenueRemainingPerformanceObligation"
            ]
          },
          "restructuring_charges": {
            "description": "Cost of restructuring programs charged in the period (severance, closures); only filers with a program tag it.",
            "x-unit": "USD",
            "x-period-type": "duration",
            "x-xbrl-tags": [
              "us-gaap:RestructuringCharges"
            ]
          },
          "retained_earnings": {
            "description": "Cumulative earnings kept in the business (negative for an accumulated deficit).",
            "x-unit": "USD",
            "x-period-type": "instant",
            "x-xbrl-tags": [
              "us-gaap:RetainedEarningsAccumulatedDeficit",
              "ifrs-full:RetainedEarnings"
            ]
          },
          "revenue": {
            "description": "Total revenue from sales and services for the period.",
            "x-unit": "USD",
            "x-period-type": "duration",
            "x-xbrl-tags": [
              "us-gaap:Revenues",
              "us-gaap:RegulatedAndUnregulatedOperatingRevenue",
              "us-gaap:RevenueFromContractWithCustomerExcludingAssessedTax",
              "us-gaap:SalesRevenueNet",
              "us-gaap:RevenueFromContractWithCustomerIncludingAssessedTax",
              "us-gaap:SalesRevenueGoodsNet",
              "us-gaap:RevenuesNetOfInterestExpense",
              "ifrs-full:Revenue",
              "ifrs-full:RevenueFromContractsWithCustomers",
              "ifrs-full:RevenueFromSaleOfGoods",
              "ifrs-full:RevenueAndOperatingIncome",
              "us-gaap:OperatingLeaseLeaseIncome",
              "us-gaap:GrossInvestmentIncomeOperating"
            ]
          },
          "selling_marketing_expense": {
            "description": "Selling and marketing expense, for filers that report it apart from general and administrative.",
            "x-unit": "USD",
            "x-period-type": "duration",
            "x-xbrl-tags": [
              "us-gaap:SellingAndMarketingExpense"
            ]
          },
          "sga_expense": {
            "description": "Selling, general and administrative expense.",
            "x-unit": "USD",
            "x-period-type": "duration",
            "x-xbrl-tags": [
              "us-gaap:SellingGeneralAndAdministrativeExpense"
            ]
          },
          "share_withholding_payments": {
            "description": "Cash paid to tax authorities for employees' taxes on shares withheld at vesting (it shrinks the share count like a buyback).",
            "x-unit": "USD",
            "x-period-type": "duration",
            "x-xbrl-tags": [
              "us-gaap:PaymentsRelatedToTaxWithholdingForShareBasedCompensation"
            ]
          },
          "shareholders_equity": {
            "description": "Total shareholders' equity at the balance-sheet date.",
            "x-unit": "USD",
            "x-period-type": "instant",
            "x-xbrl-tags": [
              "us-gaap:StockholdersEquity",
              "us-gaap:StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest",
              "ifrs-full:EquityAttributableToOwnersOfParent",
              "ifrs-full:Equity"
            ]
          },
          "shares_issued": {
            "description": "Common shares issued at the balance-sheet date, treasury shares included (a count of shares).",
            "x-unit": "shares",
            "x-period-type": "instant",
            "x-xbrl-tags": [
              "us-gaap:CommonStockSharesIssued"
            ]
          },
          "shares_outstanding": {
            "description": "Common shares outstanding at the balance-sheet date.",
            "x-unit": "shares",
            "x-period-type": "instant",
            "x-xbrl-tags": [
              "us-gaap:CommonStockSharesOutstanding"
            ]
          },
          "shares_repurchased": {
            "description": "Number of shares bought back in the period (a count of shares, left out of derived Q4 and TTM sums).",
            "x-unit": "shares",
            "x-period-type": "duration",
            "x-xbrl-tags": [
              "us-gaap:StockRepurchasedAndRetiredDuringPeriodShares",
              "us-gaap:TreasuryStockSharesAcquired"
            ]
          },
          "short_term_borrowings": {
            "description": "Short-term borrowings (bank loans, notes) outstanding at the balance-sheet date.",
            "x-unit": "USD",
            "x-period-type": "instant",
            "x-xbrl-tags": [
              "us-gaap:ShortTermBorrowings"
            ]
          },
          "short_term_debt": {
            "description": "Debt due within a year.",
            "x-unit": "USD",
            "x-period-type": "instant",
            "x-xbrl-tags": [
              "us-gaap:DebtCurrent",
              "us-gaap:LongTermDebtCurrent",
              "ifrs-full:CurrentBorrowings"
            ]
          },
          "short_term_investments": {
            "description": "Marketable securities and short-term investments held beside cash.",
            "x-unit": "USD",
            "x-period-type": "instant",
            "x-xbrl-tags": [
              "us-gaap:ShortTermInvestments",
              "us-gaap:MarketableSecuritiesCurrent",
              "us-gaap:AvailableForSaleSecuritiesDebtSecuritiesCurrent"
            ]
          },
          "stock_based_compensation": {
            "description": "Non-cash share-based compensation expense.",
            "x-unit": "USD",
            "x-period-type": "duration",
            "x-xbrl-tags": [
              "us-gaap:ShareBasedCompensation",
              "ifrs-full:ShareBasedPaymentsExpense"
            ]
          },
          "stock_issued": {
            "description": "Cash received from issuing shares, including the exercise of options.",
            "x-unit": "USD",
            "x-period-type": "duration",
            "x-xbrl-tags": [
              "us-gaap:ProceedsFromIssuanceOfCommonStock",
              "us-gaap:ProceedsFromStockOptionsExercised"
            ]
          },
          "temporary_equity": {
            "description": "Redeemable (mezzanine) equity that sits between liabilities and shareholders' equity, at the balance-sheet date.",
            "x-unit": "USD",
            "x-period-type": "instant",
            "x-xbrl-tags": [
              "us-gaap:TemporaryEquityCarryingAmountIncludingPortionAttributableToNoncontrollingInterests",
              "us-gaap:TemporaryEquityCarryingAmountAttributableToParent",
              "us-gaap:RedeemableNoncontrollingInterestEquityCarryingAmount"
            ]
          },
          "total_assets": {
            "description": "Everything the filer owns, at the balance-sheet date.",
            "x-unit": "USD",
            "x-period-type": "instant",
            "x-xbrl-tags": [
              "us-gaap:Assets",
              "ifrs-full:Assets"
            ]
          },
          "total_costs": {
            "description": "Total costs and expenses as the filer states them: cost of revenue plus operating expenses, for filers that show one combined line.",
            "x-unit": "USD",
            "x-period-type": "duration",
            "x-xbrl-tags": [
              "us-gaap:CostsAndExpenses"
            ]
          },
          "total_liabilities": {
            "description": "Everything the filer owes, at the balance-sheet date.",
            "x-unit": "USD",
            "x-period-type": "instant",
            "x-xbrl-tags": [
              "us-gaap:Liabilities",
              "ifrs-full:Liabilities"
            ]
          },
          "treasury_stock": {
            "description": "Cost of the filer's own shares it holds in treasury (shown as a deduction from equity).",
            "x-unit": "USD",
            "x-period-type": "instant",
            "x-xbrl-tags": [
              "us-gaap:TreasuryStockValue",
              "us-gaap:TreasuryStockCommonValue"
            ]
          },
          "allowance_for_credit_losses": {
            "description": "Allowance held against loan and financing-receivable losses at the balance-sheet date; stored as filed, so a filer that tags it as a negative contra-asset reads negative.",
            "x-unit": "USD",
            "x-period-type": "instant",
            "x-xbrl-tags": [
              "us-gaap:FinancingReceivableAllowanceForCreditLossExcludingAccruedInterest",
              "us-gaap:LoansAndLeasesReceivableAllowance"
            ]
          },
          "claims_reserves": {
            "description": "Reserve for claims reported and not yet paid, plus claim adjustment expense, at the balance-sheet date.",
            "x-unit": "USD",
            "x-period-type": "instant",
            "x-xbrl-tags": [
              "us-gaap:LiabilityForClaimsAndClaimsAdjustmentExpense"
            ]
          },
          "deferred_acquisition_costs": {
            "description": "Costs of writing policies (commissions, underwriting) carried as an asset and expensed over the policies' lives, at the balance-sheet date.",
            "x-unit": "USD",
            "x-period-type": "instant",
            "x-xbrl-tags": [
              "us-gaap:DeferredPolicyAcquisitionCosts"
            ]
          },
          "deposits": {
            "description": "Total deposits held at the balance-sheet date.",
            "x-unit": "USD",
            "x-period-type": "instant",
            "x-xbrl-tags": [
              "us-gaap:Deposits"
            ]
          },
          "future_policy_benefits": {
            "description": "Reserve for benefits owed on life, annuity and other long-duration contracts, at the balance-sheet date.",
            "x-unit": "USD",
            "x-period-type": "instant",
            "x-xbrl-tags": [
              "us-gaap:LiabilityForFuturePolicyBenefits"
            ]
          },
          "loans_gross": {
            "description": "Loans and leases held for investment before the allowance for credit losses (net of deferred fees), at the balance-sheet date: a lender's loan book, or any filer's financing receivables.",
            "x-unit": "USD",
            "x-period-type": "instant",
            "x-xbrl-tags": [
              "us-gaap:LoansAndLeasesReceivableNetOfDeferredIncome",
              "us-gaap:LoansAndLeasesReceivableGrossCarryingAmount",
              "us-gaap:FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss"
            ]
          },
          "loans_net": {
            "description": "Loans and leases net of the allowance for credit losses, at the balance-sheet date, as the filer's balance sheet tags them. A filer that also carries loans held for sale or at fair value in this line (JPM, 2020-2022) can read above loans_gross.",
            "x-unit": "USD",
            "x-period-type": "instant",
            "x-xbrl-tags": [
              "us-gaap:LoansAndLeasesReceivableNetReportedAmount",
              "us-gaap:FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss"
            ]
          },
          "property_count": {
            "description": "Number of real estate properties the filer reports at the date, under the standard NumberOfRealEstateProperties tag.",
            "x-unit": "count",
            "x-period-type": "instant",
            "x-xbrl-tags": [
              "us-gaap:NumberOfRealEstateProperties"
            ]
          },
          "public_float": {
            "description": "Market value of shares held by non-affiliates, from the 10-K cover page; dated the last business day of the second fiscal quarter, not the fiscal year-end.",
            "x-unit": "USD",
            "x-period-type": "instant",
            "x-xbrl-tags": [
              "dei:EntityPublicFloat"
            ]
          },
          "restaurant_count": {
            "description": "Number of restaurants the filer reports at the date, under the standard NumberOfRestaurants tag.",
            "x-unit": "count",
            "x-period-type": "instant",
            "x-xbrl-tags": [
              "us-gaap:NumberOfRestaurants"
            ]
          },
          "store_count": {
            "description": "Number of stores the filer reports at the date, under the standard NumberOfStores tag.",
            "x-unit": "count",
            "x-period-type": "instant",
            "x-xbrl-tags": [
              "us-gaap:NumberOfStores"
            ]
          },
          "free_cash_flow": {
            "description": "Cash left after capital spending; a filer's capex sign is ignored.",
            "x-unit": "USD",
            "x-period-type": "derived",
            "x-formula": "operating_cash_flow - abs(capex)"
          },
          "ebitda": {
            "description": "Operating profit before depreciation and amortization.",
            "x-unit": "USD",
            "x-period-type": "derived",
            "x-formula": "operating_income + depreciation_amortization"
          },
          "gross_margin": {
            "description": "Share of revenue left after the direct cost of sales (0.25 is 25%).",
            "x-unit": "ratio",
            "x-period-type": "derived",
            "x-formula": "gross_profit / revenue"
          },
          "operating_margin": {
            "description": "Share of revenue left as operating profit.",
            "x-unit": "ratio",
            "x-period-type": "derived",
            "x-formula": "operating_income / revenue"
          },
          "net_margin": {
            "description": "Share of revenue left as net income.",
            "x-unit": "ratio",
            "x-period-type": "derived",
            "x-formula": "net_income / revenue"
          },
          "current_ratio": {
            "description": "Short-term assets per dollar of short-term obligations.",
            "x-unit": "ratio",
            "x-period-type": "derived",
            "x-formula": "current_assets / current_liabilities"
          },
          "working_capital": {
            "description": "Short-term assets left after short-term obligations.",
            "x-unit": "USD",
            "x-period-type": "derived",
            "x-formula": "current_assets - current_liabilities"
          },
          "effective_tax_rate": {
            "description": "Income tax expense per dollar of pretax profit (0.21 is 21%), struck only on positive pretax profit.",
            "x-unit": "ratio",
            "x-period-type": "derived",
            "x-formula": "income_tax / pretax_income"
          },
          "book_value_per_share": {
            "description": "Shareholders' equity per common share outstanding.",
            "x-unit": "USD/shares",
            "x-period-type": "derived",
            "x-formula": "shareholders_equity / shares_outstanding"
          },
          "liabilities_to_equity": {
            "description": "Total obligations per dollar of shareholders' equity. Returned only for a positive denominator.",
            "x-unit": "ratio",
            "x-period-type": "derived",
            "x-formula": "total_liabilities / shareholders_equity"
          },
          "long_term_debt_to_equity": {
            "description": "Long-term borrowings per dollar of shareholders' equity. Returned only for a positive denominator.",
            "x-unit": "ratio",
            "x-period-type": "derived",
            "x-formula": "long_term_debt / shareholders_equity"
          },
          "cash_ratio": {
            "description": "Cash per dollar of short-term obligations. Unrestricted cash only: computed only where the filer's cash line excludes restricted cash. Returned only for a positive denominator.",
            "x-unit": "ratio",
            "x-period-type": "derived",
            "x-formula": "cash / current_liabilities"
          },
          "interest_coverage": {
            "description": "Operating profit per dollar of interest expense. Returned only for a positive denominator.",
            "x-unit": "times",
            "x-period-type": "derived",
            "x-formula": "operating_income / interest_expense"
          },
          "cash_conversion": {
            "description": "Operating cash flow per dollar of net income. Returned only for a positive denominator.",
            "x-unit": "ratio",
            "x-period-type": "derived",
            "x-formula": "operating_cash_flow / net_income"
          },
          "payout_ratio": {
            "description": "Cash dividends paid per dollar of net income. Returned only for a positive denominator.",
            "x-unit": "ratio",
            "x-period-type": "derived",
            "x-formula": "dividends_paid / net_income"
          },
          "rd_intensity": {
            "description": "Share of revenue spent on research and development. Returned only for a positive denominator.",
            "x-unit": "ratio",
            "x-period-type": "derived",
            "x-formula": "rd_expense / revenue"
          },
          "sga_ratio": {
            "description": "Share of revenue spent on selling, general and administrative costs. Returned only for a positive denominator.",
            "x-unit": "ratio",
            "x-period-type": "derived",
            "x-formula": "sga_expense / revenue"
          },
          "ocf_margin": {
            "description": "Operating cash flow per dollar of revenue. Returned only for a positive denominator.",
            "x-unit": "ratio",
            "x-period-type": "derived",
            "x-formula": "operating_cash_flow / revenue"
          },
          "capex_intensity": {
            "description": "Capital spending per dollar of revenue; a filer's capex sign is ignored. Returned only for a positive denominator.",
            "x-unit": "ratio",
            "x-period-type": "derived",
            "x-formula": "abs(capex) / revenue"
          },
          "sbc_intensity": {
            "description": "Share-based compensation per dollar of revenue. Returned only for a positive denominator.",
            "x-unit": "ratio",
            "x-period-type": "derived",
            "x-formula": "stock_based_compensation / revenue"
          },
          "liabilities_to_assets": {
            "description": "Total obligations per dollar of total assets. Returned only for a positive denominator.",
            "x-unit": "ratio",
            "x-period-type": "derived",
            "x-formula": "total_liabilities / total_assets"
          },
          "revenue_per_share": {
            "description": "Revenue per diluted weighted-average share. Returned only for a positive share count.",
            "x-unit": "USD/shares",
            "x-period-type": "derived",
            "x-formula": "revenue / diluted_shares"
          },
          "goodwill_to_assets": {
            "description": "Share of total assets that is goodwill, the premium paid above the fair value of net assets acquired. Returned only for a positive denominator.",
            "x-unit": "ratio",
            "x-period-type": "derived",
            "x-formula": "goodwill / total_assets"
          },
          "intangibles_to_assets": {
            "description": "Share of total assets held as intangibles other than goodwill. Returned only for a positive denominator.",
            "x-unit": "ratio",
            "x-period-type": "derived",
            "x-formula": "intangibles / total_assets"
          },
          "capex_to_da": {
            "description": "Capital spending per dollar of the filer's total depreciation and amortization, which for an acquirer includes amortization of acquired intangibles, so for an acquirer the denominator overstates plant wear and the ratio reads lower than capex against plant alone would. A filer's capex sign is ignored. Returned only for a positive denominator.",
            "x-unit": "times",
            "x-period-type": "derived",
            "x-formula": "abs(capex) / depreciation_amortization"
          },
          "buybacks_to_ocf": {
            "description": "Cash spent repurchasing shares per dollar of operating cash flow; a filer's sign is ignored. Returned only for a positive denominator.",
            "x-unit": "ratio",
            "x-period-type": "derived",
            "x-formula": "abs(buybacks) / operating_cash_flow"
          },
          "dividends_to_ocf": {
            "description": "Cash dividends paid per dollar of operating cash flow; a filer's sign is ignored, and where the filer reports only total dividends paid, preferred dividends are included. Returned only for a positive denominator.",
            "x-unit": "ratio",
            "x-period-type": "derived",
            "x-formula": "abs(dividends_paid) / operating_cash_flow"
          },
          "opex_ratio": {
            "description": "Share of revenue spent on operating expenses as the filer reports that line; some filers include cost of revenue in it, and most banks and insurers use other expense lines. Returned only for a positive denominator.",
            "x-unit": "ratio",
            "x-period-type": "derived",
            "x-formula": "operating_expenses / revenue"
          },
          "benefits_to_premiums": {
            "description": "Claims and benefits incurred per dollar of premiums earned: a property insurer's loss ratio, a health plan's medical care ratio. Returned only for a positive denominator.",
            "x-unit": "ratio",
            "x-period-type": "derived",
            "x-formula": "policyholder_benefits / premiums_earned"
          },
          "loans_to_deposits": {
            "description": "Loans held per dollar of deposits, a lender's funding gap. Returned only for a positive denominator.",
            "x-unit": "ratio",
            "x-period-type": "derived",
            "x-formula": "loans_gross / deposits"
          },
          "allowance_to_loans": {
            "description": "Allowance held per dollar of loans before it: the reserve cover of a loan book; a filer's allowance sign is ignored. Returned only for a positive denominator.",
            "x-unit": "ratio",
            "x-period-type": "derived",
            "x-formula": "abs(allowance_for_credit_losses) / loans_gross"
          },
          "return_on_equity": {
            "description": "Annual periods only. Net income per dollar of average (opening and closing) shareholders' equity. A first year uses its closing balance alone, and its form says derived (year-end).",
            "x-unit": "ratio",
            "x-period-type": "derived",
            "x-formula": "net_income / average(opening, closing) shareholders_equity"
          },
          "return_on_assets": {
            "description": "Annual periods only. Net income per dollar of average (opening and closing) total assets. A first year uses its closing balance alone, and its form says derived (year-end).",
            "x-unit": "ratio",
            "x-period-type": "derived",
            "x-formula": "net_income / average(opening, closing) total_assets"
          },
          "return_on_invested_capital": {
            "description": "Annual periods only. After-tax operating profit per dollar of operating capital, struck on the average (opening and closing) base. A first year uses its closing balance alone, and its form says derived (year-end).",
            "x-unit": "ratio",
            "x-period-type": "derived",
            "x-formula": "nopat / average(opening, closing) invested_capital; nopat = operating_income x (1 - tax rate), the filed effective rate clamped to 10-35% (21% when pretax_income is missing or not positive); invested_capital = total_assets - cash - current_liabilities + short_term_debt (xbrl_series.invested_capital for the fallbacks)"
          },
          "asset_turnover": {
            "description": "Annual periods only. Revenue per dollar of average (opening and closing) total assets. A first year uses its closing balance alone, and its form says derived (year-end).",
            "x-unit": "times",
            "x-period-type": "derived",
            "x-formula": "revenue / average(opening, closing) total_assets"
          }
        }
      },
      "PitQuality": {
        "type": "object",
        "description": "The `quality` column, last in a /v1/pit row (as-of and history views; not /v1/pit/changes or the export): the accounting identities a period's figures were tested against.",
        "properties": {
          "values": {
            "type": "object",
            "description": "What each value of the column says.",
            "properties": {
              "pass": {
                "description": "Every identity this line item enters and that could be run held on the period's figures."
              },
              "fail:<check>[;<check>]": {
                "description": "The period's figures broke the named identities; the figure itself may be right and a sibling line item wrong, so look at the whole period before using it."
              },
              "null": {
                "description": "Unchecked: the line item enters a check only when the period carries the other figures the check needs (builds before the identity legs were added carry fewer), and a check stands down when a figure was computed from the others, carries a continuing-operations tag, leaves its exchange effect untagged or belongs to a multi-class filer, or the period's figures are in more than one currency. Read it as unchecked, and treat only pass as a pass."
              }
            }
          },
          "checks": {
            "type": "object",
            "description": "The identities named after `fail:`, with the line items each ties together.",
            "properties": {
              "balance_sheet": {
                "description": "Total assets equal liabilities plus equity: the filer's own liabilities-and-equity total, or total liabilities with temporary equity and equity (including the noncontrolling interest, whether tagged in the equity total or on its own line). A mismatch means a balance came from the wrong column, date or scale.",
                "x-line-items": [
                  "liabilities_and_equity",
                  "noncontrolling_interest",
                  "shareholders_equity",
                  "temporary_equity",
                  "total_assets",
                  "total_liabilities"
                ]
              },
              "eps_net_income": {
                "description": "Diluted EPS times diluted shares is the net income available to common holders (within the cent EPS is rounded to). A mismatch means the per-share figure, the share count or the income belongs to another period, share class or scale.",
                "x-line-items": [
                  "diluted_shares",
                  "eps_diluted",
                  "net_income",
                  "net_income_to_common"
                ]
              },
              "cash_flow": {
                "description": "Operating, investing and financing cash flow plus the exchange-rate effect equal the period's change in cash, restricted cash included. A mismatch means a section was read from another period or scale, or with the wrong sign.",
                "x-line-items": [
                  "cash_change",
                  "financing_cash_flow",
                  "fx_effect_on_cash",
                  "investing_cash_flow",
                  "operating_cash_flow"
                ]
              },
              "gross_profit": {
                "description": "Where the filer tagged revenue, cost of revenue and gross profit, gross profit is revenue less cost of revenue. A mismatch means the three were stated on different scopes.",
                "x-line-items": [
                  "cost_of_revenue",
                  "gross_profit",
                  "revenue"
                ]
              }
            }
          }
        }
      }
    }
  }
}
