runloopable / platform /core /connector_spec.py
fsanyoto's picture
Deploy AIOS web (React glide grid + FastAPI slice)
812ec21 verified
Raw History Blame Contribute Delete
256 kB
"""connector_spec.py β€” ONE shared schema spec for every connector's tables, carrying the vendor's own name for each of them. ⭐⭐ **THIS FILE IS THE SINGLE SOURCE OF TRUTH FOR A CONNECTOR'S TABLE SHAPE FROM NOW ON.** The shape already existed twice before it had a name: `aios-web/api/amazon_relational.py` and `aios-web/api/meta_relational.py` each carry loose `SOURCE` / `LABELS` / `PINNED` / `IDENTITY` / `LINKS` module dicts saying the same six things about their tables in two different spellings, and `odoo_relational.py` carries a third. Nobody called it a spec, so nothing could read it generically and every new consumer (the relation engine, the connector detail door, the Databases tab) had to learn each connector's dialect. This module generalises those dicts; it does not invent a new model. ConnectorTableSpec one table: key, native, source, label, pinned, identity, links register(connector, ...) add a connector's tables to the registry tables_for(connector) that connector's specs, in declaration order spec_for(ut_key) one table's spec, or None connector_of(ut_key) which connector owns a ut_* key, or None all_specs() flat ut_key -> spec across every connector connectors() the connector keys, in registration order edges_for(key) the relation edges of a CONNECTOR or of ONE table ⭐ **THE FIFTH KEY IS `native`, AND IT IS THE ONE THAT DID NOT EXIST BEFORE.** `SOURCE` is the MIRROR table β€” `amzn_orders`, `meta_campaigns` β€” which is OUR name for the copy we hold. The vendor's own identifier for the same thing (`GET_FLAT_FILE_ALL_ORDERS_DATA_BY_ORDER_DATE_GENERAL`, `AdAccount`, `res.partner`) lived only in comments, so no screen and no gate could reach it. β›”β›” **R9 β€” `label` IS A DEFAULT, `native` IS NEVER EDITABLE.** The `label` here is our SHIPPED default display name and nothing else. A tenant's override lives in `core/schema_overlay.py`, is stored per tenant, and **a connector re-sync must never write it**; renaming a database from the navigation rail is that same override. Nothing in this module is a place to store an override, and a caller that writes one here has put tenant state in shipped code. β›” **LAYERING: `core` NEVER IMPORTS UP.** `aios-web/api/*` is above `platform/core/`, so this file must not import `amazon_relational`, `meta_relational` or `odoo_relational`, and it does not import `harness` either. Every value below is therefore written out LITERALLY, transcribed from the modules named beside it. ⭐ **THE TRANSCRIPTION IS HELD TRUE BY A GATE, NOT BY A COMMENT.** `aios-web/api/verify_meta.py` (`section_connector_spec`) asserts, per table, that this module's `source` / `label` / `pinned` / `identity` / `links` agree exactly with the live `amazon_relational` and `meta_relational` dicts. That gate lives up in the api layer precisely because it may import both sides. It is the codebase's own idiom: `core/relations.py::compiled_pin_matches_filter_sql` proves two SQL spellings agree by a gate rather than by a comment, and `relations.OPEN_INVOICE_WHERE` is held against `odoo_relational._AR_WHERE` the same way. ⚠ **WHEN W53-T37 LANDS** and `amazon_relational` / `meta_relational` READ their dicts from here, those parity checks become tautological and this note should be revisited β€” but **the checks stay**, because a tautology is exactly what catches a hand edit that re-introduces a literal on either side. β›” **ODOO IS NOT HERE YET.** W53-T38 writes Odoo's spec in its own file fence. There is deliberately no `"odoo"` entry and no stub for one; `edges_for("odoo")` returns `[]` until that ticket lands. """ from dataclasses import dataclass, replace import hashlib import re #: ⭐ THE CARDINALITY VOCABULARY, AS A CONSTANT SO EVERY CONSUMER CHECKS MEMBERSHIP RATHER THAN #: SPELLING. The relation wire (W53-T17) and the parity gate both read this set; a fifth value #: added by hand in a link tuple goes red instead of travelling silently to a screen. CARDINALITIES = ("many_to_one", "one_to_many", "one_to_one", "many_to_many") # The discoverable Odoo catalogue is runtime data, because two API accounts can read different # installed modules. Only its stable naming rule belongs in this tenant-independent spec layer. # A digest closes the otherwise-real collision between model names such as ``x.a_b`` and # ``x_a.b`` after punctuation is normalised for a ``ut_*`` key. ODOO_MODEL_TABLE_PREFIX = "ut_odoo_model_" def odoo_model_table_key(model): """Stable ``ut_*`` key for one vendor model name; blank/invalid input is refused.""" native = str(model or "").strip().lower() if not native or not re.fullmatch(r"[a-z0-9_.]+", native): raise ValueError("an Odoo model name may contain only lowercase letters, digits, dots and underscores") # 18 + the 14-character prefix + separator + digest leaves room for the connector's # ``__k_<12 hex>`` namespace under user_tables' 60-character key ceiling. stem = re.sub(r"[^a-z0-9]+", "_", native).strip("_")[:18] or "model" digest = hashlib.sha256(native.encode("utf-8")).hexdigest()[:10] return f"{ODOO_MODEL_TABLE_PREFIX}{stem}_{digest}" def odoo_model_label(model, vendor_label=""): """Our default database label, while preserving Odoo's own label when it supplied one.""" label = " ".join(str(vendor_label or "").split()) if label: return label[:80] return str(model or "").replace(".", " ").replace("_", " ").strip().capitalize()[:80] @dataclass(frozen=True) class ConnectorTableSpec: """One connector table. β›” EXACTLY SEVEN FIELDS, IN THIS ORDER β€” contract C2 says "exactly", and `verify_meta.section_connector_spec` reads `dataclasses.fields` to make that word mechanical. Grouping by connector is done by the two-level `SPECS` registry below, NOT by an eighth field. """ key: str #: our `ut_*` key β€” the grid a person opens native: str #: the vendor's OWN identifier. β›” NEVER editable (R9) source: str #: the mirror table `harness/*_store.py` writes label: str #: our shipped DEFAULT display name. A DEFAULT, never an override (R9) pinned: str = None #: the title column, or None when the table has no natural one identity: tuple = () #: the id columns, in FALLING preference #: ⚠ A TUPLE OF 4-TUPLES `((from_col, target_key, to_col, cardinality), ...)`, AND THE TUPLE IS #: DELIBERATE: a `list` default on a frozen dataclass is a mutable shared default and defeats #: the freeze. C2's word "LIST" is about `links` being a SEQUENCE per key β€” several links from #: one table, which is Amazon's shape β€” rather than Meta's single scalar 3-tuple; a tuple #: satisfies that. **Do not "fix" this back to a list.** `register()` normalises a caller's #: list into a tuple, so passing either is safe and only tuples are ever stored. links: tuple = () #: ⭐ THE REGISTRY IS TWO-LEVEL: `{connector_key: {ut_key: ConnectorTableSpec}}`. That is what makes #: a connector groupable without an eighth dataclass field. Insertion order is declaration order, so #: `tables_for` and `edges_for` return a connector's tables in the order its store syncs them. SPECS = {} _SCOPED_ROW_DECODERS = {} # Directory/keychain names resolve to the provider registry through this one declaration. CONNECTOR_SPEC_KEYS = {"amazon_sp": "amazon", "meta_ads": "meta"} @dataclass(frozen=True) class ConnectorMirrorSpec: """Durability declaration, separate from the seven-field table contract. Tables are local mirror identifiers. State belongs to this connector's reserved entity prefix in `_sync_state`; an empty prefix selects the named tables only. State entities also retain exact aggregate markers such as Meta's `meta` row. The harness consumes this data; core does not import a persistence engine. """ tables: tuple state_prefix: str = "" state_entities: tuple = () def __post_init__(self): names = tuple(dict.fromkeys(self.tables)) if not names or any(not isinstance(n, str) or not re.fullmatch(r"[a-z][a-z0-9_]*", n) for n in names): raise ValueError("mirror tables must be safe, nonempty identifiers") if self.state_prefix and not re.fullmatch(r"[a-z][a-z0-9_]*", self.state_prefix): raise ValueError("mirror state prefix must be a safe identifier") entities = tuple(dict.fromkeys(self.state_entities)) if any(not isinstance(n, str) or not re.fullmatch(r"[a-z][a-z0-9_]*", n) for n in entities): raise ValueError("mirror state entities must be safe identifiers") object.__setattr__(self, "tables", names) object.__setattr__(self, "state_entities", entities) MIRRORS = {} # Physical checkpoint layout is separate from the seven-field grid schema. MIRROR_TABLE_KEYS = {} _MIRROR_FILTER_KEYS = ("_connection_id", "Store") _MIRROR_DATE_KEYS = { "sale_order": "date_order", "account_move": "invoice_date", "account_move_line": "date", "account_payment": "date", "stock_picking": "scheduled_date", "stock_move": "date", "stock_valuation_layer": "create_date", "purchase_order": "date_order", "account_bank_statement_line": "date", "account_bank_statement": "date", "amzn_brand_analytics": "_period_start", "amzn_economics": "posted_date", "amzn_orders": "purchase_date", "amzn_order_items": "purchase_date", "amzn_settlements": "settlement_start_date", "meta_insights_daily": "date_start", } # Summary expressions describe the grid's values, including its numeric casts and percent scale. MIRROR_SUMMARY_GROUPS = { "amzn_brand_analytics": { "groups": (("department_name", "text"), ("clicked_asin", "text"), ("_period_start", "text")), "measures": (("click_share", "pct", 'ROUND(TRY_CAST("click_share" AS DOUBLE) * 100, 8)'), ("conversion_share", "pct", 'ROUND(TRY_CAST("conversion_share" AS DOUBLE) * 100, 8)'), ("click_share_rank", "int", 'TRY_CAST("click_share_rank" AS BIGINT)'), ("search_term", "text", '"search_term"')), }, "amzn_orders": { "groups": (("order_status", "text"), ("store", "text")), "measures": (("item_price", "currency", 'TRY_CAST("item_price" AS DOUBLE)'), ("quantity", "int", 'TRY_CAST("quantity" AS BIGINT)'), ("sku", "text", '"sku"')), }, "meta_insights_daily": { "groups": (("date_start", "date"), ("campaign_id", "text")), "measures": (("spend", "currency", '"spend"'), ("impressions", "int", '"impressions"'), ("clicks", "int", '"clicks"')), }, } def mirror_table_keys(table): """Return the connector's declared filter keys and physical sort keys.""" return MIRROR_TABLE_KEYS.get(table) def mirror_summary_groups(table): """Return the common groupings declared beside a mirror's physical keys.""" return MIRROR_SUMMARY_GROUPS.get(table, {}) def mirror_for(connector): """The connector's declared mirror, or None when it has no local mirror.""" return MIRRORS.get(CONNECTOR_SPEC_KEYS.get(connector, connector)) def _normalise_links(links): """A caller's list-of-lists becomes a tuple-of-4-tuples. Explicit, so `links` is ONE type everywhere downstream and the gate can assert 4-tuple-ness without a shape apology.""" return tuple(tuple(entry) for entry in (links or ())) def register(connector, specs, *, mirror=None): """Add one connector's tables. `specs` may be a mapping of `ut_key -> spec` or any iterable of specs; `links` is normalised to tuples on the way in. Re-registering a connector REPLACES it, which is what lets a gate's negative control swap the registry and restore it in a `finally`. """ if mirror is not None and not isinstance(mirror, ConnectorMirrorSpec): raise TypeError("mirror must be a ConnectorMirrorSpec") rows = list(specs.values()) if isinstance(specs, dict) else list(specs) SPECS[connector] = {s.key: replace(s, links=_normalise_links(s.links)) for s in rows} if mirror is not None: MIRRORS[connector] = mirror by_source = {s.source: s for s in rows} for table in mirror.tables: spec = by_source.get(table) # Odoo preset identities name projected columns, not raw mirror columns. identity = spec.identity if spec is not None and connector != "odoo" else ("_row_key", "id") date = _MIRROR_DATE_KEYS.get(table) dates = (date,) if date else (("date",) if table.startswith("amzn_ads_") else ()) filters = (*_MIRROR_FILTER_KEYS, *dates) MIRROR_TABLE_KEYS[table] = { "filter_keys": filters, "sort_keys": tuple(dict.fromkeys((*filters, *identity))), } # Ads registers after its tables have joined the Amazon mirror declaration. for spec in rows: keys = MIRROR_TABLE_KEYS.get(spec.source) if keys is not None: identity = ("_row_key", "id") if connector == "odoo" else spec.identity keys['sort_keys'] = tuple(dict.fromkeys((*keys['filter_keys'], *identity))) return SPECS[connector] def connectors(): """The registered connector keys, in registration order.""" return tuple(SPECS.keys()) def tables_for(connector): """One connector's specs, in declaration order. Unknown connector -> `()`.""" return tuple(SPECS.get(connector, {}).values()) def all_specs(): """Flat `ut_key -> spec` across every connector.""" out = {} for tables in SPECS.values(): out.update(tables) return out def spec_for(ut_key): """One table's spec, or None. Never raises.""" for tables in SPECS.values(): if ut_key in tables: return tables[ut_key] return None def connector_of(ut_key): """Which connector owns a `ut_*` key, or None.""" for connector, tables in SPECS.items(): if ut_key in tables: return connector return None def register_scoped_row_decoder(connector, decoder): """Register a higher-layer callback for rows already admitted by both permission walls.""" if not callable(decoder): raise TypeError("a scoped row decoder must be callable") _SCOPED_ROW_DECODERS[CONNECTOR_SPEC_KEYS.get(connector, connector)] = decoder def decode_scoped_rows(table_key, rows, *, user, st): """Decode final permitted rows with trusted reader context, without fetching any rows.""" decoder = _SCOPED_ROW_DECODERS.get(connector_of(table_key)) if decoder is None: return rows return decoder(table_key, rows, user=user, st=st) def _label(col): """`amazon_order_id` -> `Amazon order id`. β›” THE SAME RULE BOTH CONNECTORS ALREADY USE (`amazon_relational._label`, `meta_relational._label`), copied because `core` cannot import them. The parity gate holds the two spellings together.""" acronyms = {"sku", "asin", "fnsku", "id", "b2b"} words = col.replace("_", " ").strip().split() return " ".join(word.upper() if word.lower() in acronyms else word.capitalize() if index == 0 else word.lower() for index, word in enumerate(words)) def edges_for(key): """The relation edges of a CONNECTOR key (`"amazon"`) or of ONE `ut_*` table key. ⭐ **ONE FUNCTION, TWO NAMESPACES, AND THEY CANNOT COLLIDE:** every table key is `ut_`-prefixed and no connector key is, so `edges_for("amazon")` (every edge of the connector, in table declaration order) and `edges_for("ut_amzn_order_items")` (just that table's) are never ambiguous. W53-T38's `edges_for("odoo")` is the connector form. Each edge is `{"key", "label", "source", "target", "from_col", "to_col", "cardinality"}` where `source` is the `ut_*` table the edge starts FROM β€” needed because the connector form mixes tables β€” and: Β· `key` is `f"{target}_link__{from_col}"`, Amazon's shape. β›” THE SOURCE COLUMN IS IN THE KEY ON PURPOSE: two links from one table to the same target (orders by id and by sku) would otherwise collide on one key and the second would silently overwrite the first. Meta's older `f"{target}_link"` cannot express that, which is why Amazon's convention is the shared one. Β· `label` is `f"{target_label} by {_label(from_col)}"`. ⚠ **NEVER RAISES.** An unknown key returns `[]`, and a link whose target is not registered still emits its edge, labelled off the raw target key. A lenient reader is what keeps a partially ported connector set from blowing up in a caller's hands; the GATE is what asserts that every target resolves, and that is the right place for that judgement. """ specs = all_specs() if key in SPECS: rows = list(SPECS[key].values()) elif key in specs: rows = [specs[key]] else: return [] out = [] for spec in rows: for from_col, target, to_col, cardinality in spec.links: target_spec = specs.get(target) target_label = target_spec.label if target_spec else target out.append({ "key": f"{target}_link__{from_col}", "label": f"{target_label} by {_label(from_col)}", "source": spec.key, "target": target, "from_col": from_col, "to_col": to_col, "cardinality": cardinality, }) return out def _link_field_label(label): """An edge label with each repeated word dropped: "Amazon orders by order ID" (S78-T01).""" seen, kept = set(), [] for word in label.split(): if word.lower() not in seen: seen.add(word.lower()) kept.append(word) return " ".join(kept) def system_link_fields(key, live_columns): """Generate fields per live source table using only declared, live join endpoints.""" key = CONNECTOR_SPEC_KEYS.get(key, key) specs = tables_for(key) if key in SPECS else (spec_for(key),) out = {spec.key: [] for spec in specs if spec is not None and spec.key in live_columns} seen = {source: set() for source in out} for edge in edges_for(key): source, target = edge["source"], edge["target"] if (source not in out or target not in live_columns or edge["from_col"] not in live_columns[source] or edge["to_col"] not in live_columns[target] or edge["key"] in seen[source]): continue # Field keys are unique within their source table, never across a connector. seen[source].add(edge["key"]) out[source].append({ "key": edge["key"], "label": _link_field_label(edge["label"]), "type": "link", "source": "overlay", "default": True, "link": {"table": target, "on": edge["to_col"], "from": edge["from_col"], "single": edge["cardinality"] == "many_to_one", **({"connectionScope": "_connection_id"} if source.startswith("ut_amzn_") and not source.startswith("ut_amzn_ads_") and "store" in live_columns[source] else {})}, }) return out # ═════════════════════════════════════════════════════════════════════════════════════════════ # AMAZON β€” transcribed from `aios-web/api/amazon_relational.py` + `harness/amazon_client.py` # ═════════════════════════════════════════════════════════════════════════════════════════════ #: ⭐ `native` IS THE SP-API REPORT TYPE, from `harness/amazon_client.py::REPORT_TYPES[t]["report"]` #: β€” the identifier Amazon itself names the data by. ⚠ `orders` and `order_items` share one report #: on purpose: the flat-file order report is already one row per order ITEM, so orders is the #: deduplicated head and order_items the lines (see `amazon_store.TABLES`). Two of our tables, one #: vendor object, which is exactly why `native` and `source` had to be separate keys. #: ⚠ `identity` is `amazon_relational.IDENTITY` verbatim: a flat-file report has no `id` column the #: way Graph does, so each table names the columns that identify one of its rows, in falling #: preference. #: β›” R12 β€” AMAZON JOINS ONLY TO AMAZON. Nothing here targets `ut_odoo_*`, `product_data` or the #: hand-maintained ASIN mastersheet. #: ⚠ EVERY LINK BELOW IS `many_to_one`, and the reason is uniform: each one is a CHILD row naming #: its PARENT (a line names its order, a pricing row names its listing). Amazon's `LINKS` carries #: 3-tuples today with the cardinality left implicit; this is where it becomes explicit. _AMZN = "ut_amzn_" AMAZON_TABLES = ( ConnectorTableSpec( key=_AMZN + "orders", native="GET_FLAT_FILE_ALL_ORDERS_DATA_BY_ORDER_DATE_GENERAL", source="amzn_orders", label="Amazon Sales: Orders", pinned="amazon_order_id", identity=("amazon_order_id",), links=( ("sku", _AMZN + "listings", "seller_sku", "many_to_one"), ), ), ConnectorTableSpec( key=_AMZN + "order_items", native="GET_FLAT_FILE_ALL_ORDERS_DATA_BY_ORDER_DATE_GENERAL", source="amzn_order_items", label="Amazon Sales: Order items", pinned="amazon_order_id", identity=("order_item_id", "amazon_order_id"), links=( ("amazon_order_id", _AMZN + "orders", "amazon_order_id", "many_to_one"), # ⚠ the order report carries `sku`; listings key on `seller_sku`. Same value, two # spellings β€” the reason a link names BOTH columns rather than one shared name. ("sku", _AMZN + "listings", "seller_sku", "many_to_one"), ), ), ConnectorTableSpec( key=_AMZN + "listings", native="GET_MERCHANT_LISTINGS_ALL_DATA", source="amzn_listings", label="Amazon Listings: All SKUs", pinned="seller_sku", identity=("seller_sku", "asin1", "asin"), links=(), # the product spine's HEAD: everything points at it, it points nowhere ), ConnectorTableSpec( key=_AMZN + "settlements", native="GET_V2_SETTLEMENT_REPORT_DATA_FLAT_FILE_V2", source="amzn_settlements", label="Amazon Money: Settlements", pinned="settlement_id", identity=("settlement_id",), # ⚠ THE MONEY-TO-ORDER BRIDGE β€” what turns "an order happened" into "this is what we were # actually paid for it". The V2 settlement report carries the order id per line. links=( ("order_id", _AMZN + "orders", "amazon_order_id", "many_to_one"), ("sku", _AMZN + "listings", "seller_sku", "many_to_one"), ), ), ConnectorTableSpec( key=_AMZN + "inventory", native="GET_LEDGER_SUMMARY_VIEW_DATA", source="amzn_inventory", label="Amazon Inventory: All", pinned="asin", identity=("asin", "fnsku", "msku"), # ⚠ THE LEDGER KEYS ON `msku`, NOT `sku` β€” FBA calls the seller's own SKU the MSKU. Same # value, a third spelling. links=( ("msku", _AMZN + "listings", "seller_sku", "many_to_one"), ("asin", _AMZN + "listings", "asin1", "many_to_one"), ), ), ConnectorTableSpec( key=_AMZN + "pricing", native="GET_SALES_AND_TRAFFIC_REPORT", source="amzn_pricing", label="Amazon Listings: Pricing and Buy Box", pinned="parent_asin", identity=("child_asin", "parent_asin"), links=( ("child_asin", _AMZN + "listings", "asin1", "many_to_one"), ("sku", _AMZN + "listings", "seller_sku", "many_to_one"), ), ), ConnectorTableSpec( key=_AMZN + "brand_analytics", native="GET_BRAND_ANALYTICS_SEARCH_TERMS_REPORT", source="amzn_brand_analytics", label="Amazon Marketing: Brand analytics", pinned="search_term", identity=("department_name", "search_term", "clicked_asin", "click_share_rank", "_period_start", "_period_end"), # ⚠ keyed by SEARCH TERM, not by product, so it joins to nothing by default. Its ASIN # columns are the top-clicked ASINs for a term, a different relationship from "this row is # about this product", and a link would be misleading. links=(), ), ConnectorTableSpec( key=_AMZN + "economics", native="analytics_economics_2024_03_15", source="amzn_economics", label="Amazon Sales: Unit economics", pinned="msku", identity=("start_date", "msku", "marketplace_id"), links=(("msku", _AMZN + "listings", "seller_sku", "many_to_one"), ("child_asin", _AMZN + "listings", "asin1", "many_to_one")), ), ConnectorTableSpec( key=_AMZN + "transactions", native="finances/2024-06-19/transactions", source="amzn_transactions", label="Amazon Money: Transactions", pinned="transaction_id", identity=("transaction_id", "item_position"), links=(("amazon_order_id", _AMZN + "orders", "amazon_order_id", "many_to_one"), ("sku", _AMZN + "listings", "seller_sku", "many_to_one"), ("asin", _AMZN + "listings", "asin1", "many_to_one")), ), ConnectorTableSpec( key=_AMZN + "fba_fee_estimates", native="GET_FBA_ESTIMATED_FBA_FEES_TXT_DATA", source="amzn_fba_fee_estimates", label="Amazon Fees: FBA", pinned="sku", identity=("_snapshot_date", "sku", "amazon_store"), links=(("sku", _AMZN + "listings", "seller_sku", "many_to_one"), ("asin", _AMZN + "listings", "asin1", "many_to_one")), ), ConnectorTableSpec( key=_AMZN + "referral_fees", native="GET_REFERRAL_FEE_PREVIEW_REPORT", source="amzn_referral_fees", label="Amazon Fees: Referral", pinned="seller_sku", identity=("_snapshot_date", "seller_sku"), links=(("seller_sku", _AMZN + "listings", "seller_sku", "many_to_one"), ("asin", _AMZN + "listings", "asin1", "many_to_one")), ), ConnectorTableSpec( key=_AMZN + "storage_fees", native="GET_FBA_STORAGE_FEE_CHARGES_DATA", source="amzn_storage_fees", label="Amazon Fees: Storage", pinned="asin", identity=("month", "asin", "fnsku", "fulfillment_center"), links=(("asin", _AMZN + "listings", "asin1", "many_to_one"),), ), ConnectorTableSpec( key=_AMZN + "search_query_performance", native="GET_BRAND_ANALYTICS_SEARCH_QUERY_PERFORMANCE_REPORT", source="amzn_search_query_performance", label="Amazon Marketing: Search terms", pinned="search_query_data_search_query", identity=("start_date", "end_date", "asin", "search_query_data_search_query"), links=(("asin", _AMZN + "listings", "asin1", "many_to_one"),), ), ConnectorTableSpec( key=_AMZN + "long_term_storage_fees", native="GET_FBA_FULFILLMENT_LONGTERM_STORAGE_FEE_CHARGES_DATA", source="amzn_long_term_storage_fees", label="Amazon Fees: Long term storage", pinned="sku", identity=("_period_start", "sku", "fnsku", "asin", "_report_row_number"), links=(("sku", _AMZN + "listings", "seller_sku", "many_to_one"), ("asin", _AMZN + "listings", "asin1", "many_to_one"),), ), ConnectorTableSpec( key=_AMZN + "storage_overage_fees", native="GET_FBA_OVERAGE_FEE_CHARGES_DATA", source="amzn_storage_overage_fees", label="Amazon Fees: Storage overage", pinned="storage_type", identity=("_period_start", "storage_type", "_report_row_number"), links=(), ), ConnectorTableSpec( key=_AMZN + "reimbursements", native="GET_FBA_REIMBURSEMENTS_DATA", source="amzn_reimbursements", label="Amazon Money: Reimbursements", pinned="reimbursement_id", identity=("_period_start", "reimbursement_id", "sku", "asin", "amazon_order_id", "_report_row_number"), links=(("sku", _AMZN + "listings", "seller_sku", "many_to_one"), ("asin", _AMZN + "listings", "asin1", "many_to_one"), ("amazon_order_id", _AMZN + "orders", "amazon_order_id", "many_to_one"),), ), ConnectorTableSpec( key=_AMZN + "fba_customer_returns", native="GET_FBA_FULFILLMENT_CUSTOMER_RETURNS_DATA", source="amzn_fba_customer_returns", label="Amazon Returns: FBA", pinned="order_id", identity=("_period_start", "order_id", "sku", "fnsku", "asin", "_report_row_number"), links=(("order_id", _AMZN + "orders", "amazon_order_id", "many_to_one"), ("sku", _AMZN + "listings", "seller_sku", "many_to_one"), ("asin", _AMZN + "listings", "asin1", "many_to_one"),), ), ConnectorTableSpec( key=_AMZN + "replacements", native="GET_FBA_FULFILLMENT_CUSTOMER_SHIPMENT_REPLACEMENT_DATA", source="amzn_replacements", label="Amazon Returns: Replacements", pinned="replacement_amazon_order_id", identity=("_period_start", "replacement_amazon_order_id", "original_amazon_order_id", "sku", "asin", "_report_row_number"), links=(("sku", _AMZN + "listings", "seller_sku", "many_to_one"), ("asin", _AMZN + "listings", "asin1", "many_to_one"),), ), ConnectorTableSpec( key=_AMZN + "fba_shipped_sales", native="GET_FBA_FULFILLMENT_CUSTOMER_SHIPMENT_SALES_DATA", source="amzn_fba_shipped_sales", label="Amazon Sales: FBA shipments", pinned="amazon_order_id", identity=("_period_start", "amazon_order_id", "sku", "fnsku", "asin", "_report_row_number"), links=(("amazon_order_id", _AMZN + "orders", "amazon_order_id", "many_to_one"), ("sku", _AMZN + "listings", "seller_sku", "many_to_one"), ("asin", _AMZN + "listings", "asin1", "many_to_one"),), ), ConnectorTableSpec( key=_AMZN + "fba_shipment_promotions", native="GET_FBA_FULFILLMENT_CUSTOMER_SHIPMENT_PROMOTION_DATA", source="amzn_fba_shipment_promotions", label="Amazon Marketing: FBA shipment promotions", pinned="amazon_order_id", identity=("_period_start", "amazon_order_id", "sku", "_report_row_number"), links=(("amazon_order_id", _AMZN + "orders", "amazon_order_id", "many_to_one"),), ), ConnectorTableSpec( key=_AMZN + "inventory_ledger_detail", native="GET_LEDGER_DETAIL_VIEW_DATA", source="amzn_inventory_ledger_detail", label="Amazon Inventory: Ledger", pinned="msku", identity=("_period_start", "msku", "fnsku", "asin", "_report_row_number"), links=(("msku", _AMZN + "listings", "seller_sku", "many_to_one"), ("asin", _AMZN + "listings", "asin1", "many_to_one"),), ), ConnectorTableSpec( key=_AMZN + "inventory_planning", native="GET_FBA_INVENTORY_PLANNING_DATA", source="amzn_inventory_planning", label="Amazon Inventory: Planning", pinned="sku", identity=("_snapshot_date", "sku", "fnsku", "asin", "_report_row_number"), links=(("sku", _AMZN + "listings", "seller_sku", "many_to_one"), ("asin", _AMZN + "listings", "asin1", "many_to_one"),), ), ConnectorTableSpec( key=_AMZN + "manage_inventory", native="GET_FBA_MYI_UNSUPPRESSED_INVENTORY_DATA", source="amzn_manage_inventory", label="Amazon Inventory: Manage inventory", pinned="sku", identity=("_snapshot_date", "sku", "fnsku", "asin", "_report_row_number"), links=(("sku", _AMZN + "listings", "seller_sku", "many_to_one"), ("asin", _AMZN + "listings", "asin1", "many_to_one"),), ), ConnectorTableSpec( key=_AMZN + "reserved_inventory", native="GET_RESERVED_INVENTORY_DATA", source="amzn_reserved_inventory", label="Amazon Inventory: Reserved", pinned="sku", identity=("_snapshot_date", "sku", "fnsku", "asin", "_report_row_number"), links=(("sku", _AMZN + "listings", "seller_sku", "many_to_one"), ("asin", _AMZN + "listings", "asin1", "many_to_one"),), ), ConnectorTableSpec( key=_AMZN + "restock_recommendations", native="GET_RESTOCK_INVENTORY_RECOMMENDATIONS_REPORT", source="amzn_restock_recommendations", label="Amazon Inventory: Restock", pinned="merchant_sku", identity=("_snapshot_date", "merchant_sku", "fnsku", "asin", "_report_row_number"), links=(("merchant_sku", _AMZN + "listings", "seller_sku", "many_to_one"), ("asin", _AMZN + "listings", "asin1", "many_to_one")), ), ConnectorTableSpec( key=_AMZN + "stranded_inventory", native="GET_STRANDED_INVENTORY_UI_DATA", source="amzn_stranded_inventory", label="Amazon Inventory: Stranded", pinned="sku", identity=("_snapshot_date", "sku", "fnsku", "asin", "_report_row_number"), links=(("sku", _AMZN + "listings", "seller_sku", "many_to_one"), ("asin", _AMZN + "listings", "asin1", "many_to_one"),), ), ConnectorTableSpec( key=_AMZN + "inbound_noncompliance", native="GET_FBA_FULFILLMENT_INBOUND_NONCOMPLIANCE_DATA", source="amzn_inbound_noncompliance", label="Amazon Inventory: Inbound issues", pinned="shipment_id", identity=("_period_start", "shipment_id", "sku", "asin", "_report_row_number"), links=(("sku", _AMZN + "listings", "seller_sku", "many_to_one"), ("asin", _AMZN + "listings", "asin1", "many_to_one"),), ), ConnectorTableSpec( key=_AMZN + "inventory_expiration_dates", native="GET_FBA_FULFILLMENT_INVENTORY_EXPIRATION_DATE_DATA", source="amzn_inventory_expiration_dates", label="Amazon Inventory: Expiration dates", pinned="sku", identity=("_snapshot_date", "sku", "fnsku", "_report_row_number"), links=(("sku", _AMZN + "listings", "seller_sku", "many_to_one"),), ), ConnectorTableSpec( key=_AMZN + "recommended_removals", native="GET_FBA_RECOMMENDED_REMOVAL_DATA", source="amzn_recommended_removals", label="Amazon Inventory: Recommended removals", pinned="sku", identity=("_snapshot_date", "sku", "fnsku", "asin", "_report_row_number"), links=(("sku", _AMZN + "listings", "seller_sku", "many_to_one"), ("asin", _AMZN + "listings", "asin1", "many_to_one"),), ), ConnectorTableSpec( key=_AMZN + "removal_orders", native="GET_FBA_FULFILLMENT_REMOVAL_ORDER_DETAIL_DATA", source="amzn_removal_orders", label="Amazon Inventory: Removal orders", pinned="order_id", identity=("_period_start", "order_id", "sku", "fnsku", "_report_row_number"), links=(("sku", _AMZN + "listings", "seller_sku", "many_to_one"),), ), ConnectorTableSpec( key=_AMZN + "removal_shipments", native="GET_FBA_FULFILLMENT_REMOVAL_SHIPMENT_DETAIL_DATA", source="amzn_removal_shipments", label="Amazon Inventory: Removal shipments", pinned="order_id", identity=("_period_start", "order_id", "sku", "fnsku", "_report_row_number"), links=(("sku", _AMZN + "listings", "seller_sku", "many_to_one"),), ), ConnectorTableSpec( key=_AMZN + "subscribe_save_forecast", native="GET_FBA_SNS_FORECAST_DATA", source="amzn_subscribe_save_forecast", label="Amazon Marketing: Subscribe and Save forecast", pinned="sku", identity=("_snapshot_date", "sku", "asin", "_report_row_number"), links=(("sku", _AMZN + "listings", "seller_sku", "many_to_one"), ("asin", _AMZN + "listings", "asin1", "many_to_one"),), ), ConnectorTableSpec( key=_AMZN + "subscribe_save_performance", native="GET_FBA_SNS_PERFORMANCE_DATA", source="amzn_subscribe_save_performance", label="Amazon Marketing: Subscribe and Save", pinned="sku", identity=("_period_start", "sku", "asin", "_report_row_number"), links=(("sku", _AMZN + "listings", "seller_sku", "many_to_one"), ("asin", _AMZN + "listings", "asin1", "many_to_one"),), ), ConnectorTableSpec( key=_AMZN + "remote_fulfillment_eligibility", native="GET_REMOTE_FULFILLMENT_ELIGIBILITY", source="amzn_remote_fulfillment_eligibility", label="Amazon Inventory: Remote fulfillment", pinned="sku", identity=("_snapshot_date", "sku", "asin", "_report_row_number"), links=(), # Measured header has no product key; do not declare a guessed join. ), ConnectorTableSpec( key=_AMZN + "search_catalog_performance", native="GET_BRAND_ANALYTICS_SEARCH_CATALOG_PERFORMANCE_REPORT", source="amzn_search_catalog_performance", label="Amazon Marketing: Search funnel by ASIN", pinned="asin", identity=("_period_start", "asin", "_report_row_number"), links=(("asin", _AMZN + "listings", "asin1", "many_to_one"),), ), ConnectorTableSpec( key=_AMZN + "market_basket", native="GET_BRAND_ANALYTICS_MARKET_BASKET_REPORT", source="amzn_market_basket", label="Amazon Marketing: Bought together", pinned="asin", identity=("_period_start", "asin", "purchased_with_asin", "_report_row_number"), links=(("asin", _AMZN + "listings", "asin1", "many_to_one"),), ), ConnectorTableSpec( key=_AMZN + "repeat_purchase", native="GET_BRAND_ANALYTICS_REPEAT_PURCHASE_REPORT", source="amzn_repeat_purchase", label="Amazon Marketing: Repeat purchases", pinned="asin", identity=("_period_start", "asin", "_report_row_number"), links=(("asin", _AMZN + "listings", "asin1", "many_to_one"),), ), ConnectorTableSpec( key=_AMZN + "promotion_performance", native="GET_PROMOTION_PERFORMANCE_REPORT", source="amzn_promotion_performance", label="Amazon Marketing: Promotions", pinned="promotion_id", identity=("_period_start", "promotion_id", "_report_row_number"), links=(), ), ConnectorTableSpec( key=_AMZN + "coupon_performance", native="GET_COUPON_PERFORMANCE_REPORT", source="amzn_coupon_performance", label="Amazon Marketing: Coupons", pinned="coupon_id", identity=("_period_start", "coupon_id", "_report_row_number"), links=(), ), ConnectorTableSpec( key=_AMZN + "account_health", native="GET_V2_SELLER_PERFORMANCE_REPORT", source="amzn_account_health", label="Amazon Account health", pinned="marketplace_id", identity=("_snapshot_date", "marketplace_id", "_json_root", "_report_row_number"), links=(), ), ConnectorTableSpec( key=_AMZN + "inactive_listings", native="GET_MERCHANT_LISTINGS_INACTIVE_DATA", source="amzn_inactive_listings", label="Amazon Listings: Inactive", pinned="seller_sku", identity=("_snapshot_date", "seller_sku", "asin1", "_report_row_number"), links=(("seller_sku", _AMZN + "listings", "seller_sku", "many_to_one"), ("asin1", _AMZN + "listings", "asin1", "many_to_one")), ), ConnectorTableSpec( key=_AMZN + "cancelled_listings", native="GET_MERCHANT_CANCELLED_LISTINGS_DATA", source="amzn_cancelled_listings", label="Amazon Listings: Cancelled", pinned="seller_sku", identity=("_snapshot_date", "seller_sku", "asin1", "_report_row_number"), links=(("seller_sku", _AMZN + "listings", "seller_sku", "many_to_one"), ("asin1", _AMZN + "listings", "asin1", "many_to_one")), ), ConnectorTableSpec( key=_AMZN + "suppressed_listings", native="GET_MERCHANTS_LISTINGS_FYP_REPORT", source="amzn_suppressed_listings", label="Amazon Listings: Suppressed", pinned="sku", identity=("_snapshot_date", "sku", "asin", "_report_row_number"), links=(("sku", _AMZN + "listings", "seller_sku", "many_to_one"), ("asin", _AMZN + "listings", "asin1", "many_to_one"),), ), ConnectorTableSpec( key=_AMZN + "listing_defects", native="GET_MERCHANT_LISTINGS_DEFECT_DATA", source="amzn_listing_defects", label="Amazon Listings: Defects", pinned="sku", identity=("_snapshot_date", "sku", "_report_row_number"), links=(("sku", _AMZN + "listings", "seller_sku", "many_to_one"),), ), ConnectorTableSpec( key=_AMZN + "sold_listings", native="GET_CONVERGED_FLAT_FILE_SOLD_LISTINGS_DATA", source="amzn_sold_listings", label="Amazon Listings: Sold", pinned="sku", identity=("_snapshot_date", "sku", "_report_row_number"), links=(("sku", _AMZN + "listings", "seller_sku", "many_to_one"),), ), ConnectorTableSpec( key=_AMZN + "mfn_returns", native="GET_FLAT_FILE_RETURNS_DATA_BY_RETURN_DATE", source="amzn_mfn_returns", label="Amazon Returns: Seller fulfilled", pinned="order_id", identity=("_period_start", "order_id", "sku", "asin", "_report_row_number"), links=(("order_id", _AMZN + "orders", "amazon_order_id", "many_to_one"), ("merchant_sku", _AMZN + "listings", "seller_sku", "many_to_one"), ("asin", _AMZN + "listings", "asin1", "many_to_one"),), ), ConnectorTableSpec( key=_AMZN + "b2b_recommended", native="GET_B2B_PRODUCT_OPPORTUNITIES_RECOMMENDED_FOR_YOU", source="amzn_b2b_recommended", label="Amazon Marketing: B2B product opportunities", pinned="asin", identity=("_snapshot_date", "asin", "_report_row_number"), links=(("asin", _AMZN + "listings", "asin1", "many_to_one"),), ), ConnectorTableSpec( key=_AMZN + "b2b_not_yet_on_amazon", native="GET_B2B_PRODUCT_OPPORTUNITIES_NOT_YET_ON_AMAZON", source="amzn_b2b_not_yet_on_amazon", label="Amazon Marketing: B2B products not yet on Amazon", pinned="ean", identity=("_snapshot_date", "ean", "upc", "part_number", "_report_row_number"), links=(), ), ConnectorTableSpec( key=_AMZN + "geo_opportunities", native="GET_FLAT_FILE_GEO_OPPORTUNITIES", source="amzn_geo_opportunities", label="Amazon Marketing: Geo opportunities", pinned="asin", identity=("_snapshot_date", "asin", "_report_row_number"), links=(("asin", _AMZN + "listings", "asin1", "many_to_one"),), ), ConnectorTableSpec( key=_AMZN + "out_of_stock_mfn", native="GET_OUT_OF_STOCK_MFN_INFORMATION", source="amzn_out_of_stock_mfn", label="Amazon Listings: Out of stock MFN", pinned="sku", identity=("_snapshot_date", "sku", "asin", "_report_row_number"), links=(("sku", _AMZN + "listings", "seller_sku", "many_to_one"), ("asin", _AMZN + "listings", "asin1", "many_to_one"),), ), ConnectorTableSpec( key=_AMZN + "b2b_quotes", native="RFQD_BULK_DOWNLOAD", source="amzn_b2b_quotes", label="Amazon Listings: B2B quantity discounts", pinned="sku", identity=("_snapshot_date", "sku", "asin", "_report_row_number"), links=(("sku", _AMZN + "listings", "seller_sku", "many_to_one"), ("asin", _AMZN + "listings", "asin1", "many_to_one"),), ), ConnectorTableSpec( key=_AMZN + "fee_discounts", native="FEE_DISCOUNTS_REPORT", source="amzn_fee_discounts", label="Amazon Fees: Discounts", pinned="sku", identity=("_snapshot_date", "sku", "asin", "_report_row_number"), links=(), # The measured empty report supplies metadata only. ), ConnectorTableSpec( key=_AMZN + "order_metrics", native="sales/v1/orderMetrics", source="amzn_order_metrics", label="Amazon Sales: Metrics by period", pinned="interval", identity=("_period_start", "interval", "_report_row_number"), links=(), ), ConnectorTableSpec( key=_AMZN + "fba_inventory", native="fba/inventory/v1/summaries", source="amzn_fba_inventory", label="Amazon Inventory: FBA", pinned="seller_sku", identity=("_snapshot_date", "seller_sku", "fn_sku", "asin", "_report_row_number"), links=(("seller_sku", _AMZN + "listings", "seller_sku", "many_to_one"), ("asin", _AMZN + "listings", "asin1", "many_to_one"),), ), ConnectorTableSpec( key=_AMZN + "listing_items", native="listings/2021-08-01/items/{sellerId}", source="amzn_listing_items", label="Amazon Listings: Status and issues", pinned="sku", identity=("sku",), links=(("sku", _AMZN + "listings", "seller_sku", "many_to_one"),), ), ConnectorTableSpec( key=_AMZN + "catalog_items", native="catalog/2022-04-01/items", source="amzn_catalog_items", label="Amazon ASINs", pinned="asin", identity=("_snapshot_date", "asin", "_report_row_number"), links=(("asin", _AMZN + "listings", "asin1", "many_to_one"),), ), ConnectorTableSpec( key=_AMZN + "fee_estimates_api", native="products/fees/v0/feesEstimate", source="amzn_fee_estimates_api", label="Amazon Fees: Per-price estimates", pinned="sku", identity=("estimate_id",), links=(("sku", _AMZN + "listings", "seller_sku", "many_to_one"),), ), ConnectorTableSpec( key=_AMZN + "outbound_fulfillment", native="fulfillmentOutbound/2020-07-01/fulfillmentOrders", source="amzn_outbound_fulfillment", label="Amazon Inventory: Outbound fulfillment orders", pinned="seller_fulfillment_order_id", identity=("seller_fulfillment_order_id", "seller_fulfillment_order_item_id"), links=(("seller_sku", _AMZN + "listings", "seller_sku", "many_to_one"),), ), ConnectorTableSpec( key=_AMZN + "inbound_shipments", native="inbound/fba/2024-03-20/inboundPlans", source="amzn_inbound_shipments", label="Amazon Inventory: Inbound shipments", pinned="sku", identity=("shipment_item_id",), links=(("sku", _AMZN + "listings", "seller_sku", "many_to_one"),), ), ConnectorTableSpec( key=_AMZN + "replenishment", native="replenishment/2022-11-07/offers/metrics/search", source="amzn_replenishment", label="Amazon Inventory: Replenishment", pinned="sku", identity=("metric_id",), links=(("sku", _AMZN + "listings", "seller_sku", "many_to_one"),), ), ConnectorTableSpec( key=_AMZN + "review_topics", native="customerFeedback/2024-06-01/items/{asin}/reviews/topics", source="amzn_review_topics", label="Amazon Listings: Review topics", pinned="asin", identity=("asin", "marketplace_id", "sort_by", "sentiment", "topic"), links=(("asin", _AMZN + "listings", "asin1", "many_to_one"),), ), ConnectorTableSpec( key=_AMZN + "review_trends", native="customerFeedback/2024-06-01/items/{asin}/reviews/trends", source="amzn_review_trends", label="Amazon Listings: Review trends", pinned="asin", identity=("asin", "marketplace_id", "sentiment", "topic", "month"), links=(("asin", _AMZN + "listings", "asin1", "many_to_one"),), ), ConnectorTableSpec( key=_AMZN + "browse_node_review_topics", native="customerFeedback/2024-06-01/browseNodes/{browseNodeId}/reviews/topics", source="amzn_browse_node_review_topics", label="Amazon Listings: Category review topics", pinned="browse_node_name", identity=("browse_node_id", "marketplace_id", "sort_by", "sentiment", "topic"), ), ConnectorTableSpec( key=_AMZN + "sku_keywords", native="derived:listing_items+search_query_performance", source="amzn_sku_keywords", label="Amazon Marketing: SKU keywords", pinned="sku", identity=("keyword_id",), links=(("sku", _AMZN + "listing_items", "sku", "many_to_one"),), ), ConnectorTableSpec( key=_AMZN + "keyword_ranks", native="derived:apify:khadinakbar/amazon-search-scraper+sku_keywords", source="amzn_keyword_ranks", label="Amazon Marketing: Keyword ranks", pinned="keyword", identity=("rank_id",), links=(("keyword_id", _AMZN + "sku_keywords", "keyword_id", "many_to_one"),), ), ConnectorTableSpec( key=_AMZN + "competitor_snapshots", native="competitor_run:amazon_quotes_loop.run_tenant", source="amzn_competitor_snapshots", label="Amazon Marketing: Competitor snapshots", pinned="asin", identity=("asin", "snapshot_date"), ), ConnectorTableSpec( key=_AMZN + "competitor_images", native="competitor_run:amazon_quotes_loop.run_tenant", source="amzn_competitor_images", label="Amazon Marketing: Competitor images", pinned="asin", identity=("asin", "variant", "link"), ), ) #: Snapshot reports that keep change history in `amzn_<t>_history`. Equals the REPORT_TYPES keys #: with `snapshot` and a `report`, and `verify_amazon` asserts that. Core never imports the harness. AMAZON_HISTORY_SOURCES = ( "listings", "inventory", "fba_fee_estimates", "referral_fees", "inventory_planning", "manage_inventory", "reserved_inventory", "restock_recommendations", "stranded_inventory", "inventory_expiration_dates", "recommended_removals", "subscribe_save_forecast", "remote_fulfillment_eligibility", "account_health", "inactive_listings", "cancelled_listings", "suppressed_listings", "listing_defects", "sold_listings", "b2b_recommended", "b2b_not_yet_on_amazon", "geo_opportunities", "out_of_stock_mfn", "b2b_quotes", "fee_discounts", ) #: The columns a history table adds to its source's columns. AMAZON_HISTORY_COLUMNS = ("valid_from", "valid_to", "_history_key") _AMAZON_HISTORY_LABELS = {"valid_from": "Valid from", "valid_to": "Valid to", "_history_key": "Version key"} _amazon_by_source = {s.source: s for s in AMAZON_TABLES} AMAZON_TABLES = AMAZON_TABLES + tuple( ConnectorTableSpec( key=_amazon_by_source["amzn_" + _t].key + "_history", native=_amazon_by_source["amzn_" + _t].native, source="amzn_" + _t + "_history", label=_amazon_by_source["amzn_" + _t].label + " history", pinned=_amazon_by_source["amzn_" + _t].pinned, identity=("_history_key", "valid_from"), links=(), ) for _t in AMAZON_HISTORY_SOURCES) # Local projections supplement measured vendor columns without changing the table contract. AMAZON_FIELDS = { _AMZN + "competitor_snapshots": tuple( {"name": name, "type": kind, "label": label, "source": "competitor_run." + name} for name, kind, label in ( ("asin", "VARCHAR", "ASIN"), ("snapshot_date", "DATE", "Snapshot date"), ("product_type", "VARCHAR", "Product type"), ("brand", "VARCHAR", "Brand"), ("title", "VARCHAR", "Title"), ("bullets", "VARCHAR", "Bullet points"), ("image_variants", "VARCHAR", "Image variants"), ("price", "DOUBLE", "Price"), ("currency", "VARCHAR", "Currency"), ("prime", "BOOLEAN", "Prime"), ("offers", "BIGINT", "Offers"), ("sales_rank", "BIGINT", "Sales rank"), ("display_group", "VARCHAR", "Display group"), ("rank_cat", "VARCHAR", "Rank category"), ("image", "VARCHAR", "Image"), ) ), _AMZN + "competitor_images": tuple( {"name": name, "type": kind, "label": label, "source": "competitor_run." + name} for name, kind, label in ( ("asin", "VARCHAR", "ASIN"), ("variant", "VARCHAR", "Variant"), ("link", "VARCHAR", "Link"), ("sha256", "VARCHAR", "SHA256"), ("width", "BIGINT", "Width"), ("height", "BIGINT", "Height"), ("snapshot_date", "DATE", "Snapshot date"), ) ), _AMZN + "keyword_ranks": tuple( {"name": name, "type": kind, "label": label, "source": source} for name, kind, label, source in ( ("rank_id", "VARCHAR", "Rank row ID", "derived:observation_id+keyword_id"), ("observation_id", "VARCHAR", "Observation ID", "derived:dataset+keyword+asin+globalPosition"), ("keyword_id", "VARCHAR", "Keyword row ID", "sku_keywords.keyword_id"), ("sku", "VARCHAR", "SKU", "sku_keywords.sku"), ("keyword", "VARCHAR", "Keyword", "Apify.keyword"), ("asin", "VARCHAR", "ASIN", "Apify.asin"), ("date", "VARCHAR", "Date", "Apify run finishedAt in UTC"), ("organic_rank", "BIGINT", "Organic rank", "Apify.organicRank"), ("sponsored_rank", "BIGINT", "Sponsored rank", "Apify.sponsoredRank or ordered sponsored placements"), ("global_position", "BIGINT", "Global position", "Apify.globalPosition"), ("is_sponsored", "BOOLEAN", "Sponsored", "Apify.isSponsored"), ("sponsored_rank_basis", "VARCHAR", "Sponsored rank basis", "Apify vendor rank or captured placement order"), ("dataset_id", "VARCHAR", "Apify dataset ID", "Apify.defaultDatasetId"), ) ), _AMZN + "listing_items": ({ "name": "backend_keywords", "type": "VARCHAR", "label": "Backend keywords", "source": "attributes.generic_keyword[].value", },), _AMZN + "sku_keywords": tuple( {"name": name, "type": kind, "label": label, "source": source} for name, kind, label, source in ( ("keyword_id", "VARCHAR", "Keyword row ID", "derived:sku+source_grain"), ("sku", "VARCHAR", "SKU", "listing_items.sku"), ("asin", "VARCHAR", "ASIN", "listing_items.summaries[].asin"), ("month", "VARCHAR", "Month", "search_query_performance.start_date"), ("start_date", "VARCHAR", "Start date", "search_query_performance.start_date"), ("end_date", "VARCHAR", "End date", "search_query_performance.end_date"), ("search_query", "VARCHAR", "Search query", "search_query_performance.search_query_data_search_query"), ("impressions", "BIGINT", "Impressions", "search_query_performance.impression_data_asin_impression_count"), ("clicks", "BIGINT", "Clicks", "search_query_performance.click_data_asin_click_count"), ("cart_adds", "BIGINT", "Cart adds", "search_query_performance.cart_add_data_asin_cart_add_count"), ("purchases", "BIGINT", "Purchases", "search_query_performance.purchase_data_asin_purchase_count"), ("backend_keywords", "VARCHAR", "Backend keywords", "listing_items.backend_keywords"), ("source_grain", "VARCHAR", "SQP source grain", "derived:start_date+end_date+asin+search_query"), ("mapped_sku_count", "BIGINT", "Listing SKUs for ASIN", "derived:listing_items.summaries[].asin"), ("source_basis", "VARCHAR", "Source basis", "derived:ASIN query metrics without SKU allocation"), ) ), } #: S78-T01: the written label of every measured Amazon column, `{ut_key: {column: label}}`. #: Generated once from the mirror's own headers, then edited by hand: at most 40 characters, #: sentence case, no repeated word, no em or en dash. A label names a measured column and never #: creates one, so this is NOT a column registry: `AMAZON_FIELDS` is, and it stays separate because #: `amazon_schema._table_spec` extends a table's columns from it. A column absent here falls back to #: `_label`. Labels are preset: no user rename path reads or writes this map. AMAZON_LABELS = { _AMZN + "orders": { "amazon_order_id": "Amazon order ID", "merchant_order_id": "Merchant order ID", "purchase_date": "Purchase date", "last_updated_date": "Last updated date", "order_status": "Order status", "fulfillment_channel": "Fulfillment channel", "sales_channel": "Sales channel", "order_channel": "Order channel", "ship_service_level": "Ship service level", "product_name": "Product name", "sku": "SKU", "asin": "ASIN", "item_status": "Item status", "quantity": "Quantity", "currency": "Currency", "item_price": "Item price", "item_tax": "Item tax", "shipping_price": "Shipping price", "shipping_tax": "Shipping tax", "gift_wrap_price": "Gift wrap price", "gift_wrap_tax": "Gift wrap tax", "item_promotion_discount": "Item promotion discount", "ship_promotion_discount": "Ship promotion discount", "ship_city": "Ship city", "ship_state": "Ship state", "ship_postal_code": "Ship postal code", "ship_country": "Ship country", "promotion_ids": "Promotion ids", "cpf": "CPF", "is_business_order": "Is business order", "purchase_order_number": "Purchase order number", "price_designation": "Price designation", "signature_confirmation_recommended": "Signature confirmation recommended", "order_item_id": "Order item ID", "_report_document_id": "Report document ID", "_report_row_number": "Report row", "_data_origin": "Data origin", "_report_type": "Report type", }, _AMZN + "order_items": { "amazon_order_id": "Amazon order ID", "merchant_order_id": "Merchant order ID", "purchase_date": "Purchase date", "last_updated_date": "Last updated date", "order_status": "Order status", "fulfillment_channel": "Fulfillment channel", "sales_channel": "Sales channel", "order_channel": "Order channel", "ship_service_level": "Ship service level", "product_name": "Product name", "sku": "SKU", "asin": "ASIN", "item_status": "Item status", "quantity": "Quantity", "currency": "Currency", "item_price": "Item price", "item_tax": "Item tax", "shipping_price": "Shipping price", "shipping_tax": "Shipping tax", "gift_wrap_price": "Gift wrap price", "gift_wrap_tax": "Gift wrap tax", "item_promotion_discount": "Item promotion discount", "ship_promotion_discount": "Ship promotion discount", "ship_city": "Ship city", "ship_state": "Ship state", "ship_postal_code": "Ship postal code", "ship_country": "Ship country", "promotion_ids": "Promotion ids", "cpf": "CPF", "is_business_order": "Is business order", "purchase_order_number": "Purchase order number", "price_designation": "Price designation", "signature_confirmation_recommended": "Signature confirmation recommended", "order_item_id": "Order item ID", "_report_document_id": "Report document ID", "_report_row_number": "Report row", "_data_origin": "Data origin", "_report_type": "Report type", }, _AMZN + "listings": { "item_name": "Item name", "item_description": "Item description", "listing_id": "Listing ID", "seller_sku": "Seller SKU", "price": "Price", "quantity": "Quantity", "open_date": "Open date", "image_url": "Image URL", "item_is_marketplace": "Item is marketplace", "product_id_type": "Product ID type", "zshop_shipping_fee": "Zshop shipping fee", "item_note": "Item note", "item_condition": "Item condition", "zshop_category1": "Zshop category", "zshop_browse_path": "Zshop browse path", "zshop_storefront_feature": "Zshop storefront feature", "asin1": "ASIN", "asin2": "ASIN 2", "asin3": "ASIN 3", "will_ship_internationally": "Will ship internationally", "expedited_shipping": "Expedited shipping", "zshop_boldface": "Zshop boldface", "product_id": "Product ID", "bid_for_featured_placement": "Bid for featured placement", "add_delete": "Add delete", "pending_quantity": "Pending quantity", "fulfillment_channel": "Fulfillment channel", "merchant_shipping_group": "Merchant shipping group", "status": "Status", "_report_document_id": "Report document ID", "_report_row_number": "Report row", "_data_origin": "Data origin", "_report_type": "Report type", "_snapshot_date": "Synced on", }, _AMZN + "settlements": { "settlement_id": "Settlement ID", "settlement_start_date": "Settlement start date", "settlement_end_date": "Settlement end date", "deposit_date": "Deposit date", "total_amount": "Total amount", "currency": "Currency", "transaction_type": "Transaction type", "order_id": "Order ID", "merchant_order_id": "Merchant order ID", "adjustment_id": "Adjustment ID", "shipment_id": "Shipment ID", "marketplace_name": "Marketplace name", "amount_type": "Amount type", "amount_description": "Amount description", "amount": "Amount", "fulfillment_id": "Fulfillment ID", "posted_date": "Posted date", "posted_date_time": "Posted date time", "order_item_code": "Order item code", "merchant_order_item_id": "Merchant order item ID", "merchant_adjustment_item_id": "Merchant adjustment item ID", "sku": "SKU", "quantity_purchased": "Quantity purchased", "promotion_id": "Promotion ID", "_report_document_id": "Report document ID", "_report_row_number": "Report row", "_data_origin": "Data origin", "_report_type": "Report type", }, _AMZN + "inventory": { "_snapshot_date": "Synced on", "inventory_source": "Inventory source", }, _AMZN + "pricing": { "_data_origin": "Data origin", "_report_document_id": "Report document ID", "_report_row_number": "Report row", "_report_type": "Report type", "parent_asin": "Parent ASIN", "sales_by_asin_ordered_product_sales_amount": "Ordered product sales", "sales_by_asin_ordered_product_sales_b2_b_amount": "Ordered product sales B2B", "sales_by_asin_ordered_product_sales_b2_b_currency_code": "Ordered sales B2B currency", "sales_by_asin_ordered_product_sales_currency_code": "Ordered sales currency", "sales_by_asin_orders_shipped": "Orders shipped", "sales_by_asin_orders_shipped_b2_b": "Orders shipped B2B", "sales_by_asin_refund_rate": "Refund rate", "sales_by_asin_refund_rate_b2_b": "Refund rate B2B", "sales_by_asin_shipped_product_sales_amount": "Shipped product sales", "sales_by_asin_shipped_product_sales_b2_b_amount": "Shipped product sales B2B", "sales_by_asin_shipped_product_sales_b2_b_currency_code": "Shipped sales B2B currency", "sales_by_asin_shipped_product_sales_currency_code": "Shipped sales currency", "sales_by_asin_total_order_items": "Total order items", "sales_by_asin_total_order_items_b2_b": "Total order items B2B", "sales_by_asin_units_ordered": "Units ordered", "sales_by_asin_units_ordered_b2_b": "Units ordered B2B", "sales_by_asin_units_refunded": "Units refunded", "sales_by_asin_units_refunded_b2_b": "Units refunded B2B", "sales_by_asin_units_shipped": "Units shipped", "sales_by_asin_units_shipped_b2_b": "Units shipped B2B", "traffic_by_asin_browser_page_views": "Browser page views", "traffic_by_asin_browser_page_views_b2_b": "Browser page views B2B", "traffic_by_asin_browser_page_views_percentage": "Browser page views percentage", "traffic_by_asin_browser_page_views_percentage_b2_b": "Browser page views percentage B2B", "traffic_by_asin_browser_session_percentage": "Browser session percentage", "traffic_by_asin_browser_session_percentage_b2_b": "Browser session percentage B2B", "traffic_by_asin_browser_sessions": "Browser sessions", "traffic_by_asin_browser_sessions_b2_b": "Browser sessions B2B", "traffic_by_asin_buy_box_percentage": "Buy Box percentage", "traffic_by_asin_buy_box_percentage_b2_b": "Buy Box percentage B2B", "traffic_by_asin_mobile_app_page_views": "Mobile app page views", "traffic_by_asin_mobile_app_page_views_b2_b": "Mobile app page views B2B", "traffic_by_asin_mobile_app_page_views_percentage": "Mobile app page views percentage", "traffic_by_asin_mobile_app_page_views_percentage_b2_b": "Mobile app page views percentage B2B", "traffic_by_asin_mobile_app_session_percentage": "Mobile app session percentage", "traffic_by_asin_mobile_app_session_percentage_b2_b": "Mobile app session percentage B2B", "traffic_by_asin_mobile_app_sessions": "Mobile app sessions", "traffic_by_asin_mobile_app_sessions_b2_b": "Mobile app sessions B2B", "traffic_by_asin_page_views": "Page views", "traffic_by_asin_page_views_b2_b": "Page views B2B", "traffic_by_asin_page_views_percentage": "Page views percentage", "traffic_by_asin_page_views_percentage_b2_b": "Page views percentage B2B", "traffic_by_asin_session_percentage": "Session percentage", "traffic_by_asin_session_percentage_b2_b": "Session percentage B2B", "traffic_by_asin_sessions": "Sessions", "traffic_by_asin_sessions_b2_b": "Sessions B2B", "traffic_by_asin_unit_session_percentage": "Unit session percentage", "traffic_by_asin_unit_session_percentage_b2_b": "Unit session percentage B2B", "competitive_body_asin": "Competitive ASIN", "competitive_body_featured_buying_options": "Featured buying options", "competitive_body_marketplace_id": "Competitive marketplace ID", "competitive_body_reference_prices": "Reference prices", "competitive_status_reason_phrase": "Competitive status reason", "competitive_status_status_code": "Competitive status code", "child_asin": "Child ASIN", "sku": "SKU", }, _AMZN + "brand_analytics": { "_data_origin": "Data origin", "_report_document_id": "Report document ID", "_report_row_number": "Report row", "_report_type": "Report type", "click_share": "Click share", "click_share_rank": "Click share rank", "clicked_asin": "Clicked ASIN", "clicked_item_name": "Clicked item name", "conversion_share": "Conversion share", "department_name": "Department name", "search_frequency_rank": "Search frequency rank", "search_term": "Search term", }, _AMZN + "economics": { "_data_origin": "Data origin", "_report_document_id": "Report document ID", "_report_row_number": "Report row", "_report_type": "Report type", "ads_sponsored_product_fee_amount": "Sponsored products fee", "ads_sponsored_product_fee_charge_1_amount_amount": "Sponsored products charge", "ads_sponsored_product_fee_charge_1_amount_currency_code": "Sponsored products currency", "ads_sponsored_product_fee_charge_1_amount_per_unit": "Sponsored products unit detail", "ads_sponsored_product_fee_charge_1_amount_per_unit_amount": "Sponsored products per unit", "ads_sponsored_product_fee_charge_1_amount_per_unit_currency_code": "Sponsored products unit currency", "ads_sponsored_product_fee_charge_1_promotion_amount_amount": "Sponsored products promo", "ads_sponsored_product_fee_charge_1_promotion_amount_currency_code": "Sponsored products promo currency", "ads_sponsored_product_fee_charge_1_quantity": "Sponsored products quantity", "ads_sponsored_product_fee_charge_1_tax_amount_amount": "Sponsored products tax", "ads_sponsored_product_fee_charge_1_tax_amount_currency_code": "Sponsored products tax currency", "ads_sponsored_product_fee_charge_1_total_amount_amount": "Sponsored products total", "ads_sponsored_product_fee_charge_1_total_amount_currency_code": "Sponsored products total currency", "ads_sponsored_product_fee_type_name": "Sponsored products fee type", "child_asin": "Child ASIN", "cost_cost_of_goods_sold": "Cost of goods sold", "cost_fba_cost": "FBA cost", "cost_mfn_cost": "MFN cost", "cost_miscellaneous_cost": "Miscellaneous cost", "currency_code": "Currency", "end_date": "End date", "fee_customer_return_hrrunit_fee_amount": "HRR return fee", "fee_customer_return_hrrunit_fee_charge_1_aggregated_detail_amount_amount": "HRR return fee charge", "fee_customer_return_hrrunit_fee_charge_1_aggregated_detail_amount_currency_code": "HRR return fee currency", "fee_customer_return_hrrunit_fee_charge_1_aggregated_detail_amount_per_unit_amount": "HRR return fee per unit", "fee_customer_return_hrrunit_fee_charge_1_aggregated_detail_amount_per_unit_currency_code": "HRR return fee unit currency", "fee_customer_return_hrrunit_fee_charge_1_aggregated_detail_amount_per_unit_delta": "HRR return fee unit change", "fee_customer_return_hrrunit_fee_charge_1_aggregated_detail_promotion_amount_amount": "HRR return fee promo", "fee_customer_return_hrrunit_fee_charge_1_aggregated_detail_promotion_amount_currency_code": "HRR return fee promo currency", "fee_customer_return_hrrunit_fee_charge_1_aggregated_detail_quantity": "HRR return fee quantity", "fee_customer_return_hrrunit_fee_charge_1_aggregated_detail_tax_amount_amount": "HRR return fee tax", "fee_customer_return_hrrunit_fee_charge_1_aggregated_detail_tax_amount_currency_code": "HRR return fee tax currency", "fee_customer_return_hrrunit_fee_charge_1_aggregated_detail_total_amount_amount": "HRR return fee total", "fee_customer_return_hrrunit_fee_charge_1_aggregated_detail_total_amount_currency_code": "HRR return fee total currency", "fee_customer_return_hrrunit_fee_charge_1_end_date": "HRR return fee end date", "fee_customer_return_hrrunit_fee_charge_1_identifier": "HRR return fee charge ID", "fee_customer_return_hrrunit_fee_charge_1_start_date": "HRR return fee start date", "fee_customer_return_hrrunit_fee_type_name": "HRR return fee type", "fee_disposal_fee_amount": "Disposal fee", "fee_disposal_fee_charge_1_aggregated_detail_amount_amount": "Disposal fee charge", "fee_disposal_fee_charge_1_aggregated_detail_amount_currency_code": "Disposal fee currency", "fee_disposal_fee_charge_1_aggregated_detail_amount_per_unit_amount": "Disposal fee per unit", "fee_disposal_fee_charge_1_aggregated_detail_amount_per_unit_currency_code": "Disposal fee unit currency", "fee_disposal_fee_charge_1_aggregated_detail_amount_per_unit_delta": "Disposal fee unit change", "fee_disposal_fee_charge_1_aggregated_detail_promotion_amount_amount": "Disposal fee promo", "fee_disposal_fee_charge_1_aggregated_detail_promotion_amount_currency_code": "Disposal fee promo currency", "fee_disposal_fee_charge_1_aggregated_detail_quantity": "Disposal fee quantity", "fee_disposal_fee_charge_1_aggregated_detail_tax_amount_amount": "Disposal fee tax", "fee_disposal_fee_charge_1_aggregated_detail_tax_amount_currency_code": "Disposal fee tax currency", "fee_disposal_fee_charge_1_aggregated_detail_total_amount_amount": "Disposal fee total", "fee_disposal_fee_charge_1_aggregated_detail_total_amount_currency_code": "Disposal fee total currency", "fee_disposal_fee_charge_1_end_date": "Disposal fee end date", "fee_disposal_fee_charge_1_identifier": "Disposal fee charge ID", "fee_disposal_fee_charge_1_start_date": "Disposal fee start date", "fee_disposal_fee_type_name": "Disposal fee type", "fee_fba_fulfilment_fee_amount": "FBA fulfillment fee", "fee_fba_fulfilment_fee_charge_1_aggregated_detail_amount_amount": "FBA fulfillment fee charge", "fee_fba_fulfilment_fee_charge_1_aggregated_detail_amount_currency_code": "FBA fulfillment fee currency", "fee_fba_fulfilment_fee_charge_1_aggregated_detail_amount_per_unit_amount": "FBA fulfillment fee per unit", "fee_fba_fulfilment_fee_charge_1_aggregated_detail_amount_per_unit_currency_code": "FBA fulfillment fee unit currency", "fee_fba_fulfilment_fee_charge_1_aggregated_detail_amount_per_unit_delta": "FBA fulfillment fee unit change", "fee_fba_fulfilment_fee_charge_1_aggregated_detail_promotion_amount_amount": "FBA fulfillment fee promo", "fee_fba_fulfilment_fee_charge_1_aggregated_detail_promotion_amount_currency_code": "FBA fulfillment fee promo currency", "fee_fba_fulfilment_fee_charge_1_aggregated_detail_quantity": "FBA fulfillment fee quantity", "fee_fba_fulfilment_fee_charge_1_aggregated_detail_tax_amount_amount": "FBA fulfillment fee tax", "fee_fba_fulfilment_fee_charge_1_aggregated_detail_tax_amount_currency_code": "FBA fulfillment fee tax currency", "fee_fba_fulfilment_fee_charge_1_aggregated_detail_total_amount_amount": "FBA fulfillment fee total", "fee_fba_fulfilment_fee_charge_1_aggregated_detail_total_amount_currency_code": "FBA fulfillment fee total currency", "fee_fba_fulfilment_fee_charge_1_end_date": "FBA fulfillment fee end date", "fee_fba_fulfilment_fee_charge_1_identifier": "FBA fulfillment fee charge ID", "fee_fba_fulfilment_fee_charge_1_start_date": "FBA fulfillment fee start date", "fee_fba_fulfilment_fee_type_name": "FBA fulfillment fee type", "fee_fba_inbound_convenience_fee_amount": "Inbound placement fee", "fee_fba_inbound_convenience_fee_charge_1_aggregated_detail_amount_amount": "Inbound placement fee charge", "fee_fba_inbound_convenience_fee_charge_1_aggregated_detail_amount_currency_code": "Inbound placement fee currency", "fee_fba_inbound_convenience_fee_charge_1_aggregated_detail_amount_per_unit_amount": "Inbound placement fee per unit", "fee_fba_inbound_convenience_fee_charge_1_aggregated_detail_amount_per_unit_currency_code": "Inbound placement fee unit currency", "fee_fba_inbound_convenience_fee_charge_1_aggregated_detail_amount_per_unit_delta": "Inbound placement fee unit change", "fee_fba_inbound_convenience_fee_charge_1_aggregated_detail_promotion_amount_amount": "Inbound placement fee promo", "fee_fba_inbound_convenience_fee_charge_1_aggregated_detail_promotion_amount_currency_code": "Inbound placement fee promo currency", "fee_fba_inbound_convenience_fee_charge_1_aggregated_detail_quantity": "Inbound placement fee quantity", "fee_fba_inbound_convenience_fee_charge_1_aggregated_detail_tax_amount_amount": "Inbound placement fee tax", "fee_fba_inbound_convenience_fee_charge_1_aggregated_detail_tax_amount_currency_code": "Inbound placement fee tax currency", "fee_fba_inbound_convenience_fee_charge_1_aggregated_detail_total_amount_amount": "Inbound placement fee total", "fee_fba_inbound_convenience_fee_charge_1_aggregated_detail_total_amount_currency_code": "Inbound placement fee total currency", "fee_fba_inbound_convenience_fee_charge_1_end_date": "Inbound placement fee end date", "fee_fba_inbound_convenience_fee_charge_1_identifier": "Inbound placement fee charge ID", "fee_fba_inbound_convenience_fee_charge_1_start_date": "Inbound placement fee start date", "fee_fba_inbound_convenience_fee_type_name": "Inbound placement fee type", "fee_fba_storage_fee_amount": "FBA storage fee", "fee_fba_storage_fee_charge_1_aggregated_detail_amount_amount": "FBA storage fee charge", "fee_fba_storage_fee_charge_1_aggregated_detail_amount_currency_code": "FBA storage fee currency", "fee_fba_storage_fee_charge_1_aggregated_detail_amount_per_unit_amount": "FBA storage fee per unit", "fee_fba_storage_fee_charge_1_aggregated_detail_amount_per_unit_currency_code": "FBA storage fee unit currency", "fee_fba_storage_fee_charge_1_aggregated_detail_amount_per_unit_delta": "FBA storage fee unit change", "fee_fba_storage_fee_charge_1_aggregated_detail_promotion_amount_amount": "FBA storage fee promo", "fee_fba_storage_fee_charge_1_aggregated_detail_promotion_amount_currency_code": "FBA storage fee promo currency", "fee_fba_storage_fee_charge_1_aggregated_detail_quantity": "FBA storage fee quantity", "fee_fba_storage_fee_charge_1_aggregated_detail_tax_amount_amount": "FBA storage fee tax", "fee_fba_storage_fee_charge_1_aggregated_detail_tax_amount_currency_code": "FBA storage fee tax currency", "fee_fba_storage_fee_charge_1_aggregated_detail_total_amount_amount": "FBA storage fee total", "fee_fba_storage_fee_charge_1_aggregated_detail_total_amount_currency_code": "FBA storage fee total currency", "fee_fba_storage_fee_charge_1_end_date": "FBA storage fee end date", "fee_fba_storage_fee_charge_1_identifier": "FBA storage fee charge ID", "fee_fba_storage_fee_charge_1_start_date": "FBA storage fee start date", "fee_fba_storage_fee_type_name": "FBA storage fee type", "fee_fbainventory_reimbursement_amount": "Inventory reimbursement", "fee_fbainventory_reimbursement_charge_1_aggregated_detail_amount_amount": "Inventory reimbursement charge", "fee_fbainventory_reimbursement_charge_1_aggregated_detail_amount_currency_code": "Inventory reimbursement currency", "fee_fbainventory_reimbursement_charge_1_aggregated_detail_amount_per_unit_amount": "Inventory reimbursement per unit", "fee_fbainventory_reimbursement_charge_1_aggregated_detail_amount_per_unit_currency_code": "Inventory reimbursement unit currency", "fee_fbainventory_reimbursement_charge_1_aggregated_detail_amount_per_unit_delta": "Inventory reimbursement unit change", "fee_fbainventory_reimbursement_charge_1_aggregated_detail_promotion_amount_amount": "Inventory reimbursement promo", "fee_fbainventory_reimbursement_charge_1_aggregated_detail_promotion_amount_currency_code": "Inventory reimbursement promo currency", "fee_fbainventory_reimbursement_charge_1_aggregated_detail_quantity": "Inventory reimbursement quantity", "fee_fbainventory_reimbursement_charge_1_aggregated_detail_tax_amount_amount": "Inventory reimbursement tax", "fee_fbainventory_reimbursement_charge_1_aggregated_detail_tax_amount_currency_code": "Inventory reimbursement tax currency", "fee_fbainventory_reimbursement_charge_1_aggregated_detail_total_amount_amount": "Inventory reimbursement total", "fee_fbainventory_reimbursement_charge_1_aggregated_detail_total_amount_currency_code": "Inventory reimbursement total currency", "fee_fbainventory_reimbursement_charge_1_end_date": "Inventory reimbursement end date", "fee_fbainventory_reimbursement_charge_1_identifier": "Inventory reimbursement charge ID", "fee_fbainventory_reimbursement_charge_1_start_date": "Inventory reimbursement start date", "fee_fbainventory_reimbursement_type_name": "Inventory reimbursement type", "fee_liquidation_processing_fee_amount": "Liquidation fee", "fee_liquidation_processing_fee_charge_1_aggregated_detail_amount_amount": "Liquidation fee charge", "fee_liquidation_processing_fee_charge_1_aggregated_detail_amount_currency_code": "Liquidation fee currency", "fee_liquidation_processing_fee_charge_1_aggregated_detail_amount_per_unit_amount": "Liquidation fee per unit", "fee_liquidation_processing_fee_charge_1_aggregated_detail_amount_per_unit_currency_code": "Liquidation fee unit currency", "fee_liquidation_processing_fee_charge_1_aggregated_detail_amount_per_unit_delta": "Liquidation fee unit change", "fee_liquidation_processing_fee_charge_1_aggregated_detail_promotion_amount_amount": "Liquidation fee promo", "fee_liquidation_processing_fee_charge_1_aggregated_detail_promotion_amount_currency_code": "Liquidation fee promo currency", "fee_liquidation_processing_fee_charge_1_aggregated_detail_quantity": "Liquidation fee quantity", "fee_liquidation_processing_fee_charge_1_aggregated_detail_tax_amount_amount": "Liquidation fee tax", "fee_liquidation_processing_fee_charge_1_aggregated_detail_tax_amount_currency_code": "Liquidation fee tax currency", "fee_liquidation_processing_fee_charge_1_aggregated_detail_total_amount_amount": "Liquidation fee total", "fee_liquidation_processing_fee_charge_1_aggregated_detail_total_amount_currency_code": "Liquidation fee total currency", "fee_liquidation_processing_fee_charge_1_end_date": "Liquidation fee end date", "fee_liquidation_processing_fee_charge_1_identifier": "Liquidation fee charge ID", "fee_liquidation_processing_fee_charge_1_start_date": "Liquidation fee start date", "fee_liquidation_processing_fee_type_name": "Liquidation fee type", "fee_liquidation_referral_fee_amount": "Liquidation referral fee", "fee_liquidation_referral_fee_charge_1_aggregated_detail_amount_amount": "Liquidation referral fee charge", "fee_liquidation_referral_fee_charge_1_aggregated_detail_amount_currency_code": "Liquidation referral fee currency", "fee_liquidation_referral_fee_charge_1_aggregated_detail_amount_per_unit_amount": "Liquidation referral fee per unit", "fee_liquidation_referral_fee_charge_1_aggregated_detail_amount_per_unit_currency_code": "Liquidation referral fee unit currency", "fee_liquidation_referral_fee_charge_1_aggregated_detail_amount_per_unit_delta": "Liquidation referral fee unit change", "fee_liquidation_referral_fee_charge_1_aggregated_detail_promotion_amount_amount": "Liquidation referral fee promo", "fee_liquidation_referral_fee_charge_1_aggregated_detail_promotion_amount_currency_code": "Liquidation referral fee promo currency", "fee_liquidation_referral_fee_charge_1_aggregated_detail_quantity": "Liquidation referral fee quantity", "fee_liquidation_referral_fee_charge_1_aggregated_detail_tax_amount_amount": "Liquidation referral fee tax", "fee_liquidation_referral_fee_charge_1_aggregated_detail_tax_amount_currency_code": "Liquidation referral fee tax currency", "fee_liquidation_referral_fee_charge_1_aggregated_detail_total_amount_amount": "Liquidation referral fee total", "fee_liquidation_referral_fee_charge_1_aggregated_detail_total_amount_currency_code": "Liquidation referral fee total currency", "fee_liquidation_referral_fee_charge_1_end_date": "Liquidation referral fee end date", "fee_liquidation_referral_fee_charge_1_identifier": "Liquidation referral fee charge ID", "fee_liquidation_referral_fee_charge_1_start_date": "Liquidation referral fee start date", "fee_liquidation_referral_fee_type_name": "Liquidation referral fee type", "fee_long_term_storage_fee_amount": "Long term storage fee", "fee_long_term_storage_fee_charge_1_aggregated_detail_amount_amount": "Long term storage fee charge", "fee_long_term_storage_fee_charge_1_aggregated_detail_amount_currency_code": "Long term storage fee currency", "fee_long_term_storage_fee_charge_1_aggregated_detail_amount_per_unit_amount": "Long term storage fee per unit", "fee_long_term_storage_fee_charge_1_aggregated_detail_amount_per_unit_currency_code": "Long term storage fee unit currency", "fee_long_term_storage_fee_charge_1_aggregated_detail_amount_per_unit_delta": "Long term storage fee unit change", "fee_long_term_storage_fee_charge_1_aggregated_detail_promotion_amount_amount": "Long term storage fee promo", "fee_long_term_storage_fee_charge_1_aggregated_detail_promotion_amount_currency_code": "Long term storage fee promo currency", "fee_long_term_storage_fee_charge_1_aggregated_detail_quantity": "Long term storage fee quantity", "fee_long_term_storage_fee_charge_1_aggregated_detail_tax_amount_amount": "Long term storage fee tax", "fee_long_term_storage_fee_charge_1_aggregated_detail_tax_amount_currency_code": "Long term storage fee tax currency", "fee_long_term_storage_fee_charge_1_aggregated_detail_total_amount_amount": "Long term storage fee total", "fee_long_term_storage_fee_charge_1_aggregated_detail_total_amount_currency_code": "Long term storage fee total currency", "fee_long_term_storage_fee_charge_1_end_date": "Long term storage fee end date", "fee_long_term_storage_fee_charge_1_identifier": "Long term storage fee charge ID", "fee_long_term_storage_fee_charge_1_start_date": "Long term storage fee start date", "fee_long_term_storage_fee_type_name": "Long term storage fee type", "fee_referral_fee_amount": "Referral fee", "fee_referral_fee_charge_1_aggregated_detail_amount_amount": "Referral fee charge", "fee_referral_fee_charge_1_aggregated_detail_amount_currency_code": "Referral fee currency", "fee_referral_fee_charge_1_aggregated_detail_amount_per_unit_amount": "Referral fee per unit", "fee_referral_fee_charge_1_aggregated_detail_amount_per_unit_currency_code": "Referral fee unit currency", "fee_referral_fee_charge_1_aggregated_detail_amount_per_unit_delta": "Referral fee unit change", "fee_referral_fee_charge_1_aggregated_detail_promotion_amount_amount": "Referral fee promo", "fee_referral_fee_charge_1_aggregated_detail_promotion_amount_currency_code": "Referral fee promo currency", "fee_referral_fee_charge_1_aggregated_detail_quantity": "Referral fee quantity", "fee_referral_fee_charge_1_aggregated_detail_tax_amount_amount": "Referral fee tax", "fee_referral_fee_charge_1_aggregated_detail_tax_amount_currency_code": "Referral fee tax currency", "fee_referral_fee_charge_1_aggregated_detail_total_amount_amount": "Referral fee total", "fee_referral_fee_charge_1_aggregated_detail_total_amount_currency_code": "Referral fee total currency", "fee_referral_fee_charge_1_end_date": "Referral fee end date", "fee_referral_fee_charge_1_identifier": "Referral fee charge ID", "fee_referral_fee_charge_1_start_date": "Referral fee start date", "fee_referral_fee_type_name": "Referral fee type", "fee_refund_commission_fee_amount": "Refund commission fee", "fee_refund_commission_fee_charge_1_aggregated_detail_amount_amount": "Refund commission fee charge", "fee_refund_commission_fee_charge_1_aggregated_detail_amount_currency_code": "Refund commission fee currency", "fee_refund_commission_fee_charge_1_aggregated_detail_amount_per_unit_amount": "Refund commission fee per unit", "fee_refund_commission_fee_charge_1_aggregated_detail_amount_per_unit_currency_code": "Refund commission fee unit currency", "fee_refund_commission_fee_charge_1_aggregated_detail_amount_per_unit_delta": "Refund commission fee unit change", "fee_refund_commission_fee_charge_1_aggregated_detail_promotion_amount_amount": "Refund commission fee promo", "fee_refund_commission_fee_charge_1_aggregated_detail_promotion_amount_currency_code": "Refund commission fee promo currency", "fee_refund_commission_fee_charge_1_aggregated_detail_quantity": "Refund commission fee quantity", "fee_refund_commission_fee_charge_1_aggregated_detail_tax_amount_amount": "Refund commission fee tax", "fee_refund_commission_fee_charge_1_aggregated_detail_tax_amount_currency_code": "Refund commission fee tax currency", "fee_refund_commission_fee_charge_1_aggregated_detail_total_amount_amount": "Refund commission fee total", "fee_refund_commission_fee_charge_1_aggregated_detail_total_amount_currency_code": "Refund commission fee total currency", "fee_refund_commission_fee_charge_1_end_date": "Refund commission fee end date", "fee_refund_commission_fee_charge_1_identifier": "Refund commission fee charge ID", "fee_refund_commission_fee_charge_1_start_date": "Refund commission fee start date", "fee_refund_commission_fee_type_name": "Refund commission fee type", "fee_refunded_referral_fee_amount": "Refunded referral fee", "fee_refunded_referral_fee_charge_1_aggregated_detail_amount_amount": "Refunded referral fee charge", "fee_refunded_referral_fee_charge_1_aggregated_detail_amount_currency_code": "Refunded referral fee currency", "fee_refunded_referral_fee_charge_1_aggregated_detail_amount_per_unit_amount": "Refunded referral fee per unit", "fee_refunded_referral_fee_charge_1_aggregated_detail_amount_per_unit_currency_code": "Refunded referral fee unit currency", "fee_refunded_referral_fee_charge_1_aggregated_detail_amount_per_unit_delta": "Refunded referral fee unit change", "fee_refunded_referral_fee_charge_1_aggregated_detail_promotion_amount_amount": "Refunded referral fee promo", "fee_refunded_referral_fee_charge_1_aggregated_detail_promotion_amount_currency_code": "Refunded referral fee promo currency", "fee_refunded_referral_fee_charge_1_aggregated_detail_quantity": "Refunded referral fee quantity", "fee_refunded_referral_fee_charge_1_aggregated_detail_tax_amount_amount": "Refunded referral fee tax", "fee_refunded_referral_fee_charge_1_aggregated_detail_tax_amount_currency_code": "Refunded referral fee tax currency", "fee_refunded_referral_fee_charge_1_aggregated_detail_total_amount_amount": "Refunded referral fee total", "fee_refunded_referral_fee_charge_1_aggregated_detail_total_amount_currency_code": "Refunded referral fee total currency", "fee_refunded_referral_fee_charge_1_end_date": "Refunded referral fee end date", "fee_refunded_referral_fee_charge_1_identifier": "Refunded referral fee charge ID", "fee_refunded_referral_fee_charge_1_start_date": "Refunded referral fee start date", "fee_refunded_referral_fee_type_name": "Refunded referral fee type", "fee_removal_fee_amount": "Removal fee", "fee_removal_fee_charge_1_aggregated_detail_amount_amount": "Removal fee charge", "fee_removal_fee_charge_1_aggregated_detail_amount_currency_code": "Removal fee currency", "fee_removal_fee_charge_1_aggregated_detail_amount_per_unit_amount": "Removal fee per unit", "fee_removal_fee_charge_1_aggregated_detail_amount_per_unit_currency_code": "Removal fee unit currency", "fee_removal_fee_charge_1_aggregated_detail_amount_per_unit_delta": "Removal fee unit change", "fee_removal_fee_charge_1_aggregated_detail_promotion_amount_amount": "Removal fee promo", "fee_removal_fee_charge_1_aggregated_detail_promotion_amount_currency_code": "Removal fee promo currency", "fee_removal_fee_charge_1_aggregated_detail_quantity": "Removal fee quantity", "fee_removal_fee_charge_1_aggregated_detail_tax_amount_amount": "Removal fee tax", "fee_removal_fee_charge_1_aggregated_detail_tax_amount_currency_code": "Removal fee tax currency", "fee_removal_fee_charge_1_aggregated_detail_total_amount_amount": "Removal fee total", "fee_removal_fee_charge_1_aggregated_detail_total_amount_currency_code": "Removal fee total currency", "fee_removal_fee_charge_1_end_date": "Removal fee end date", "fee_removal_fee_charge_1_identifier": "Removal fee charge ID", "fee_removal_fee_charge_1_start_date": "Removal fee start date", "fee_removal_fee_type_name": "Removal fee type", "fees_total_amount": "Total fees", "fnsku": "FNSKU", "marketplace_id": "Marketplace ID", "msku": "MSKU", "net_proceeds_per_unit": "Net proceeds unit detail", "net_proceeds_per_unit_amount": "Net proceeds per unit", "net_proceeds_per_unit_currency_code": "Net proceeds unit currency", "net_proceeds_total_amount": "Net proceeds", "net_proceeds_total_currency_code": "Net proceeds currency", "parent_asin": "Parent ASIN", "sales_average_selling_price_amount": "Average selling price", "sales_average_selling_price_currency_code": "Average selling price currency", "sales_net_product_sales_amount": "Net product sales", "sales_net_product_sales_currency_code": "Net product sales currency", "sales_net_units_sold": "Net units sold", "sales_ordered_product_sales_amount": "Ordered product sales", "sales_ordered_product_sales_currency_code": "Ordered product sales currency", "sales_refunded_product_sales_amount": "Refunded product sales", "sales_refunded_product_sales_currency_code": "Refunded product sales currency", "sales_units_ordered": "Units ordered", "sales_units_refunded": "Units refunded", "start_date": "Start date", "fee_deal_participation_fee_amount": "Deal participation fee", "fee_deal_participation_fee_charge_1_aggregated_detail_amount_amount": "Deal participation fee charge", "fee_deal_participation_fee_charge_1_aggregated_detail_amount_currency_code": "Deal participation fee currency", "fee_deal_participation_fee_charge_1_aggregated_detail_amount_per_unit_amount": "Deal participation fee per unit", "fee_deal_participation_fee_charge_1_aggregated_detail_amount_per_unit_currency_code": "Deal participation fee unit currency", "fee_deal_participation_fee_charge_1_aggregated_detail_amount_per_unit_delta": "Deal participation fee unit change", "fee_deal_participation_fee_charge_1_aggregated_detail_promotion_amount_amount": "Deal participation fee promo", "fee_deal_participation_fee_charge_1_aggregated_detail_promotion_amount_currency_code": "Deal participation fee promo currency", "fee_deal_participation_fee_charge_1_aggregated_detail_quantity": "Deal participation fee quantity", "fee_deal_participation_fee_charge_1_aggregated_detail_tax_amount_amount": "Deal participation fee tax", "fee_deal_participation_fee_charge_1_aggregated_detail_tax_amount_currency_code": "Deal participation fee tax currency", "fee_deal_participation_fee_charge_1_aggregated_detail_total_amount_amount": "Deal participation fee total", "fee_deal_participation_fee_charge_1_aggregated_detail_total_amount_currency_code": "Deal participation fee total currency", "fee_deal_participation_fee_charge_1_end_date": "Deal participation fee end date", "fee_deal_participation_fee_charge_1_identifier": "Deal participation fee charge ID", "fee_deal_participation_fee_charge_1_start_date": "Deal participation fee start date", "fee_deal_participation_fee_type_name": "Deal participation fee type", "fee_deal_performance_fee_amount": "Deal performance fee", "fee_deal_performance_fee_charge_1_aggregated_detail_amount_amount": "Deal performance fee charge", "fee_deal_performance_fee_charge_1_aggregated_detail_amount_currency_code": "Deal performance fee currency", "fee_deal_performance_fee_charge_1_aggregated_detail_amount_per_unit_amount": "Deal performance fee per unit", "fee_deal_performance_fee_charge_1_aggregated_detail_amount_per_unit_currency_code": "Deal performance fee unit currency", "fee_deal_performance_fee_charge_1_aggregated_detail_amount_per_unit_delta": "Deal performance fee unit change", "fee_deal_performance_fee_charge_1_aggregated_detail_promotion_amount_amount": "Deal performance fee promo", "fee_deal_performance_fee_charge_1_aggregated_detail_promotion_amount_currency_code": "Deal performance fee promo currency", "fee_deal_performance_fee_charge_1_aggregated_detail_quantity": "Deal performance fee quantity", "fee_deal_performance_fee_charge_1_aggregated_detail_tax_amount_amount": "Deal performance fee tax", "fee_deal_performance_fee_charge_1_aggregated_detail_tax_amount_currency_code": "Deal performance fee tax currency", "fee_deal_performance_fee_charge_1_aggregated_detail_total_amount_amount": "Deal performance fee total", "fee_deal_performance_fee_charge_1_aggregated_detail_total_amount_currency_code": "Deal performance fee total currency", "fee_deal_performance_fee_charge_1_end_date": "Deal performance fee end date", "fee_deal_performance_fee_charge_1_identifier": "Deal performance fee charge ID", "fee_deal_performance_fee_charge_1_start_date": "Deal performance fee start date", "fee_deal_performance_fee_type_name": "Deal performance fee type", "fee_fba_storage_fee_charge_1_aggregated_detail_amount_per_unit": "FBA storage fee unit detail", "fee_fba_inbound_transportation_fee_amount": "Inbound transport fee", "fee_fba_inbound_transportation_fee_charge_1_aggregated_detail_amount_amount": "Inbound transport fee charge", "fee_fba_inbound_transportation_fee_charge_1_aggregated_detail_amount_currency_code": "Inbound transport fee currency", "fee_fba_inbound_transportation_fee_charge_1_aggregated_detail_amount_per_unit_amount": "Inbound transport fee per unit", "fee_fba_inbound_transportation_fee_charge_1_aggregated_detail_amount_per_unit_currency_code": "Inbound transport fee unit currency", "fee_fba_inbound_transportation_fee_charge_1_aggregated_detail_amount_per_unit_delta": "Inbound transport fee unit change", "fee_fba_inbound_transportation_fee_charge_1_aggregated_detail_promotion_amount_amount": "Inbound transport fee promo", "fee_fba_inbound_transportation_fee_charge_1_aggregated_detail_promotion_amount_currency_code": "Inbound transport fee promo currency", "fee_fba_inbound_transportation_fee_charge_1_aggregated_detail_quantity": "Inbound transport fee quantity", "fee_fba_inbound_transportation_fee_charge_1_aggregated_detail_tax_amount_amount": "Inbound transport fee tax", "fee_fba_inbound_transportation_fee_charge_1_aggregated_detail_tax_amount_currency_code": "Inbound transport fee tax currency", "fee_fba_inbound_transportation_fee_charge_1_aggregated_detail_total_amount_amount": "Inbound transport fee total", "fee_fba_inbound_transportation_fee_charge_1_aggregated_detail_total_amount_currency_code": "Inbound transport fee total currency", "fee_fba_inbound_transportation_fee_charge_1_end_date": "Inbound transport fee end date", "fee_fba_inbound_transportation_fee_charge_1_identifier": "Inbound transport fee charge ID", "fee_fba_inbound_transportation_fee_charge_1_start_date": "Inbound transport fee start date", "fee_fba_inbound_transportation_fee_type_name": "Inbound transport fee type", "fee_coupon_participation_fee_amount": "Coupon participation fee", "fee_coupon_participation_fee_charge_1_aggregated_detail_amount_amount": "Coupon participation fee charge", "fee_coupon_participation_fee_charge_1_aggregated_detail_amount_currency_code": "Coupon participation fee currency", "fee_coupon_participation_fee_charge_1_aggregated_detail_amount_per_unit_amount": "Coupon participation fee per unit", "fee_coupon_participation_fee_charge_1_aggregated_detail_amount_per_unit_currency_code": "Coupon participation fee unit currency", "fee_coupon_participation_fee_charge_1_aggregated_detail_amount_per_unit_delta": "Coupon participation fee unit change", "fee_coupon_participation_fee_charge_1_aggregated_detail_promotion_amount_amount": "Coupon participation fee promo", "fee_coupon_participation_fee_charge_1_aggregated_detail_promotion_amount_currency_code": "Coupon participation fee promo currency", "fee_coupon_participation_fee_charge_1_aggregated_detail_quantity": "Coupon participation fee quantity", "fee_coupon_participation_fee_charge_1_aggregated_detail_tax_amount_amount": "Coupon participation fee tax", "fee_coupon_participation_fee_charge_1_aggregated_detail_tax_amount_currency_code": "Coupon participation fee tax currency", "fee_coupon_participation_fee_charge_1_aggregated_detail_total_amount_amount": "Coupon participation fee total", "fee_coupon_participation_fee_charge_1_aggregated_detail_total_amount_currency_code": "Coupon participation fee total currency", "fee_coupon_participation_fee_charge_1_end_date": "Coupon participation fee end date", "fee_coupon_participation_fee_charge_1_identifier": "Coupon participation fee charge ID", "fee_coupon_participation_fee_charge_1_start_date": "Coupon participation fee start date", "fee_coupon_participation_fee_type_name": "Coupon participation fee type", "fee_coupon_performance_fee_amount": "Coupon performance fee", "fee_coupon_performance_fee_charge_1_aggregated_detail_amount_amount": "Coupon performance fee charge", "fee_coupon_performance_fee_charge_1_aggregated_detail_amount_currency_code": "Coupon performance fee currency", "fee_coupon_performance_fee_charge_1_aggregated_detail_amount_per_unit_amount": "Coupon performance fee per unit", "fee_coupon_performance_fee_charge_1_aggregated_detail_amount_per_unit_currency_code": "Coupon performance fee unit currency", "fee_coupon_performance_fee_charge_1_aggregated_detail_amount_per_unit_delta": "Coupon performance fee unit change", "fee_coupon_performance_fee_charge_1_aggregated_detail_promotion_amount_amount": "Coupon performance fee promo", "fee_coupon_performance_fee_charge_1_aggregated_detail_promotion_amount_currency_code": "Coupon performance fee promo currency", "fee_coupon_performance_fee_charge_1_aggregated_detail_quantity": "Coupon performance fee quantity", "fee_coupon_performance_fee_charge_1_aggregated_detail_tax_amount_amount": "Coupon performance fee tax", "fee_coupon_performance_fee_charge_1_aggregated_detail_tax_amount_currency_code": "Coupon performance fee tax currency", "fee_coupon_performance_fee_charge_1_aggregated_detail_total_amount_amount": "Coupon performance fee total", "fee_coupon_performance_fee_charge_1_aggregated_detail_total_amount_currency_code": "Coupon performance fee total currency", "fee_coupon_performance_fee_charge_1_end_date": "Coupon performance fee end date", "fee_coupon_performance_fee_charge_1_identifier": "Coupon performance fee charge ID", "fee_coupon_performance_fee_charge_1_start_date": "Coupon performance fee start date", "fee_coupon_performance_fee_type_name": "Coupon performance fee type", "fee_coupon_redemption_fee_amount": "Coupon redemption fee", "fee_coupon_redemption_fee_charge_1_aggregated_detail_amount_amount": "Coupon redemption fee charge", "fee_coupon_redemption_fee_charge_1_aggregated_detail_amount_currency_code": "Coupon redemption fee currency", "fee_coupon_redemption_fee_charge_1_aggregated_detail_amount_per_unit_amount": "Coupon redemption fee per unit", "fee_coupon_redemption_fee_charge_1_aggregated_detail_amount_per_unit_currency_code": "Coupon redemption fee unit currency", "fee_coupon_redemption_fee_charge_1_aggregated_detail_amount_per_unit_delta": "Coupon redemption fee unit change", "fee_coupon_redemption_fee_charge_1_aggregated_detail_promotion_amount_amount": "Coupon redemption fee promo", "fee_coupon_redemption_fee_charge_1_aggregated_detail_promotion_amount_currency_code": "Coupon redemption fee promo currency", "fee_coupon_redemption_fee_charge_1_aggregated_detail_quantity": "Coupon redemption fee quantity", "fee_coupon_redemption_fee_charge_1_aggregated_detail_tax_amount_amount": "Coupon redemption fee tax", "fee_coupon_redemption_fee_charge_1_aggregated_detail_tax_amount_currency_code": "Coupon redemption fee tax currency", "fee_coupon_redemption_fee_charge_1_aggregated_detail_total_amount_amount": "Coupon redemption fee total", "fee_coupon_redemption_fee_charge_1_aggregated_detail_total_amount_currency_code": "Coupon redemption fee total currency", "fee_coupon_redemption_fee_charge_1_end_date": "Coupon redemption fee end date", "fee_coupon_redemption_fee_charge_1_identifier": "Coupon redemption fee charge ID", "fee_coupon_redemption_fee_charge_1_start_date": "Coupon redemption fee start date", "fee_coupon_redemption_fee_type_name": "Coupon redemption fee type", "fee_run_lightning_deal_fee_amount": "Lightning deal fee", "fee_run_lightning_deal_fee_charge_1_aggregated_detail_amount_amount": "Lightning deal fee charge", "fee_run_lightning_deal_fee_charge_1_aggregated_detail_amount_currency_code": "Lightning deal fee currency", "fee_run_lightning_deal_fee_charge_1_aggregated_detail_amount_per_unit_amount": "Lightning deal fee per unit", "fee_run_lightning_deal_fee_charge_1_aggregated_detail_amount_per_unit_currency_code": "Lightning deal fee unit currency", "fee_run_lightning_deal_fee_charge_1_aggregated_detail_amount_per_unit_delta": "Lightning deal fee unit change", "fee_run_lightning_deal_fee_charge_1_aggregated_detail_promotion_amount_amount": "Lightning deal fee promo", "fee_run_lightning_deal_fee_charge_1_aggregated_detail_promotion_amount_currency_code": "Lightning deal fee promo currency", "fee_run_lightning_deal_fee_charge_1_aggregated_detail_quantity": "Lightning deal fee quantity", "fee_run_lightning_deal_fee_charge_1_aggregated_detail_tax_amount_amount": "Lightning deal fee tax", "fee_run_lightning_deal_fee_charge_1_aggregated_detail_tax_amount_currency_code": "Lightning deal fee tax currency", "fee_run_lightning_deal_fee_charge_1_aggregated_detail_total_amount_amount": "Lightning deal fee total", "fee_run_lightning_deal_fee_charge_1_aggregated_detail_total_amount_currency_code": "Lightning deal fee total currency", "fee_run_lightning_deal_fee_charge_1_end_date": "Lightning deal fee end date", "fee_run_lightning_deal_fee_charge_1_identifier": "Lightning deal fee charge ID", "fee_run_lightning_deal_fee_charge_1_start_date": "Lightning deal fee start date", "fee_run_lightning_deal_fee_type_name": "Lightning deal fee type", "fee_fba_inbound_transportation_fee_charge_1_aggregated_detail_amount_per_unit": "Inbound transport fee unit detail", }, _AMZN + "transactions": { "_data_origin": "Data origin", "_report_document_id": "Report document ID", "_report_row_number": "Report row", "_report_type": "Report type", "amazon_order_id": "Amazon order ID", "asin": "ASIN", "contexts": "Contexts", "currency_code": "Currency", "description": "Description", "item_breakdown_amazon_fees_amount": "Item Amazon fees", "item_breakdown_amazon_fees_amount_currency_code": "Item Amazon fees currency", "item_breakdown_base_amount": "Item base", "item_breakdown_base_amount_currency_code": "Item base currency", "item_breakdown_fbafees_amount": "Item FBA fees", "item_breakdown_fbafees_amount_currency_code": "Item FBA fees currency", "item_breakdown_fbainventory_reimbursement_amount": "Item inventory reimbursement", "item_breakdown_fbainventory_reimbursement_amount_currency_code": "Item inventory reimbursement currency", "item_breakdown_fbareversed_reimbursement_amount": "Item FBA reversed reimbursement", "item_breakdown_fbareversed_reimbursement_amount_currency_code": "Item FBA reversed reimbursement currency", "item_breakdown_other_amount": "Item other", "item_breakdown_other_amount_currency_code": "Item other currency", "item_breakdown_product_charges_amount": "Item product charges", "item_breakdown_product_charges_amount_currency_code": "Item product charges currency", "item_breakdown_promo_rebates_amount": "Item promo rebates", "item_breakdown_promo_rebates_amount_currency_code": "Item promo rebates currency", "item_breakdown_recommerce_liquidation_amount": "Item recommerce liquidation", "item_breakdown_recommerce_liquidation_amount_currency_code": "Item recommerce liquidation currency", "item_breakdown_retrocharge_amount": "Item retrocharge", "item_breakdown_retrocharge_amount_currency_code": "Item retrocharge currency", "item_breakdown_shipping_amount": "Item shipping", "item_breakdown_shipping_amount_currency_code": "Item shipping currency", "item_breakdown_tax_amount": "Item tax", "item_breakdown_tax_amount_currency_code": "Item tax currency", "item_contexts": "Item contexts", "item_description": "Item description", "item_position": "Item position", "item_related_identifiers": "Item related identifiers", "item_sub_breakdown_amazon_fees__commission_amount": "Item commission", "item_sub_breakdown_amazon_fees__commission_amount_currency_code": "Item commission currency", "item_sub_breakdown_amazon_fees__fbaper_unit_fulfillment_fee_amount": "Item FBA fulfillment fee", "item_sub_breakdown_amazon_fees__fbaper_unit_fulfillment_fee_amount_currency_code": "Item FBA fulfillment fee currency", "item_sub_breakdown_amazon_fees__giftwrap_chargeback_amount": "Item giftwrap chargeback", "item_sub_breakdown_amazon_fees__giftwrap_chargeback_amount_currency_code": "Item giftwrap chargeback currency", "item_sub_breakdown_amazon_fees__refund_commission_amount": "Item refund commission", "item_sub_breakdown_amazon_fees__refund_commission_amount_currency_code": "Item refund commission currency", "item_sub_breakdown_amazon_fees__shipping_chargeback_amount": "Item shipping chargeback", "item_sub_breakdown_amazon_fees__shipping_chargeback_amount_currency_code": "Item shipping chargeback currency", "item_sub_breakdown_amazon_fees__subscription_amount": "Item subscription", "item_sub_breakdown_amazon_fees__subscription_amount_currency_code": "Item subscription currency", "item_sub_breakdown_amazon_fees__variable_closing_fee_amount": "Item variable closing fee", "item_sub_breakdown_amazon_fees__variable_closing_fee_amount_currency_code": "Item variable closing fee currency", "item_sub_breakdown_fbafees__fbadisposal_fee_amount": "Item FBA fees disposal", "item_sub_breakdown_fbafees__fbadisposal_fee_amount_currency_code": "Item FBA fees disposal currency", "item_sub_breakdown_fbafees__fbaper_unit_fulfillment_fee_amount": "Item FBA fees fulfillment", "item_sub_breakdown_fbafees__fbaper_unit_fulfillment_fee_amount_currency_code": "Item FBA fees fulfillment currency", "item_sub_breakdown_fbafees__fbaremoval_fee_amount": "Item FBA fees removal", "item_sub_breakdown_fbafees__fbaremoval_fee_amount_currency_code": "Item FBA fees removal currency", "item_sub_breakdown_fbafees__hrrnon_apparel_rollup_amount": "Item FBA fees HRR non apparel", "item_sub_breakdown_fbafees__hrrnon_apparel_rollup_amount_currency_code": "Item FBA fees HRR non apparel currency", "item_sub_breakdown_fbafees__inbound_convenience_charge_amount": "Item FBA fees inbound placement", "item_sub_breakdown_fbafees__inbound_convenience_charge_amount_currency_code": "Item FBA fees inbound placement currency", "item_sub_breakdown_fbafees__long_term_storage_fee_amount": "Item FBA fees long term storage", "item_sub_breakdown_fbafees__long_term_storage_fee_amount_currency_code": "Item FBA fees long term storage currency", "item_sub_breakdown_fbafees__storage_billing_fee_amount": "Item FBA fees storage billing", "item_sub_breakdown_fbafees__storage_billing_fee_amount_currency_code": "Item FBA fees storage billing currency", "item_sub_breakdown_other__giftwrap_principal_amount": "Item giftwrap principal", "item_sub_breakdown_other__giftwrap_principal_amount_currency_code": "Item giftwrap principal currency", "item_sub_breakdown_other__restocking_deduction_principal_amount": "Item restocking deduction", "item_sub_breakdown_other__restocking_deduction_principal_amount_currency_code": "Item restocking deduction currency", "item_sub_breakdown_product_charges__our_price_principal_amount": "Item our price principal", "item_sub_breakdown_product_charges__our_price_principal_amount_currency_code": "Item our price principal currency", "item_sub_breakdown_product_charges__principal_amount": "Item principal", "item_sub_breakdown_product_charges__principal_amount_currency_code": "Item principal currency", "item_sub_breakdown_promo_rebates__our_price_discount_amount": "Item our price discount", "item_sub_breakdown_promo_rebates__our_price_discount_amount_currency_code": "Item our price discount currency", "item_sub_breakdown_promo_rebates__shipping_discount_amount": "Item shipping discount", "item_sub_breakdown_promo_rebates__shipping_discount_amount_currency_code": "Item shipping discount currency", "item_sub_breakdown_retrocharge__base_tax_amount": "Item retrocharge base tax", "item_sub_breakdown_retrocharge__base_tax_amount_currency_code": "Item retrocharge base tax currency", "item_sub_breakdown_retrocharge__shipping_tax_amount": "Item retrocharge shipping tax", "item_sub_breakdown_retrocharge__shipping_tax_amount_currency_code": "Item retrocharge shipping tax currency", "item_sub_breakdown_shipping__shipping_principal_amount": "Item shipping principal", "item_sub_breakdown_shipping__shipping_principal_amount_currency_code": "Item shipping principal currency", "item_sub_breakdown_tax__giftwrap_tax_amount": "Item giftwrap tax", "item_sub_breakdown_tax__giftwrap_tax_amount_currency_code": "Item giftwrap tax currency", "item_sub_breakdown_tax__low_value_goods_tax_principal_amount": "Item low value goods tax", "item_sub_breakdown_tax__low_value_goods_tax_principal_amount_currency_code": "Item low value goods tax currency", "item_sub_breakdown_tax__low_value_goods_tax_shipping_amount": "Item low value goods ship tax", "item_sub_breakdown_tax__low_value_goods_tax_shipping_amount_currency_code": "Item low value goods ship tax currency", "item_sub_breakdown_tax__marketplace_facilitator_tax_other_amount": "Item facilitator tax other", "item_sub_breakdown_tax__marketplace_facilitator_tax_other_amount_currency_code": "Item facilitator tax other currency", "item_sub_breakdown_tax__marketplace_facilitator_tax_principal_amount": "Item facilitator tax", "item_sub_breakdown_tax__marketplace_facilitator_tax_principal_amount_currency_code": "Item facilitator tax currency", "item_sub_breakdown_tax__marketplace_facilitator_tax_shipping_amount": "Item facilitator ship tax", "item_sub_breakdown_tax__marketplace_facilitator_tax_shipping_amount_currency_code": "Item facilitator ship tax currency", "item_sub_breakdown_tax__marketplace_facilitator_vat_principal_amount": "Item facilitator VAT", "item_sub_breakdown_tax__marketplace_facilitator_vat_principal_amount_currency_code": "Item facilitator VAT currency", "item_sub_breakdown_tax__marketplace_facilitator_vat_shipping_amount": "Item facilitator ship VAT", "item_sub_breakdown_tax__marketplace_facilitator_vat_shipping_amount_currency_code": "Item facilitator ship VAT currency", "item_sub_breakdown_tax__our_price_tax_amount": "Item our price tax", "item_sub_breakdown_tax__our_price_tax_amount_currency_code": "Item our price tax currency", "item_sub_breakdown_tax__restocking_deduction_tax_amount": "Item restocking tax", "item_sub_breakdown_tax__restocking_deduction_tax_amount_currency_code": "Item restocking tax currency", "item_sub_breakdown_tax__shipping_tax_amount": "Item shipping tax", "item_sub_breakdown_tax__shipping_tax_amount_currency_code": "Item shipping tax currency", "item_total_amount_currency_amount": "Item total", "item_total_amount_currency_code": "Item total currency", "marketplace_details_marketplace_id": "Marketplace ID", "marketplace_details_marketplace_name": "Marketplace", "posted_date": "Posted date", "related_identifiers": "Related identifiers", "selling_partner_metadata_account_type": "Account type", "selling_partner_metadata_marketplace_id": "Seller marketplace ID", "selling_partner_metadata_selling_partner_id": "Seller ID", "sku": "SKU", "total_amount": "Total", "transaction_breakdown_expenses_amount": "Expenses total", "transaction_breakdown_expenses_amount_currency_code": "Expenses total currency", "transaction_breakdown_refunded_expenses_amount": "Refunded expenses total", "transaction_breakdown_refunded_expenses_amount_currency_code": "Refunded expenses total currency", "transaction_breakdown_refunded_sales_amount": "Refunded sales total", "transaction_breakdown_refunded_sales_amount_currency_code": "Refunded sales total currency", "transaction_breakdown_sales_amount": "Sales total", "transaction_breakdown_sales_amount_currency_code": "Sales total currency", "transaction_id": "Transaction ID", "transaction_item_count": "Item count", "transaction_status": "Transaction status", "transaction_sub_breakdown_expenses__advertising_fee_amount": "Expense advertising fee", "transaction_sub_breakdown_expenses__advertising_fee_amount_currency_code": "Expense advertising fee currency", "transaction_sub_breakdown_expenses__amazon_fees_amount": "Expense Amazon fees", "transaction_sub_breakdown_expenses__amazon_fees_amount_currency_code": "Expense Amazon fees currency", "transaction_sub_breakdown_expenses__fbafees_amount": "Expense FBA fees", "transaction_sub_breakdown_expenses__fbafees_amount_currency_code": "Expense FBA fees currency", "transaction_sub_breakdown_expenses__fbareversed_reimbursement_amount": "Expense FBA reversal", "transaction_sub_breakdown_expenses__fbareversed_reimbursement_amount_currency_code": "Expense FBA reversal currency", "transaction_sub_breakdown_expenses__hrrnon_apparel_rollup_amount": "Expense HRR non apparel", "transaction_sub_breakdown_expenses__hrrnon_apparel_rollup_amount_currency_code": "Expense HRR non apparel currency", "transaction_sub_breakdown_expenses__inbound_convenience_charge_amount": "Expense inbound placement", "transaction_sub_breakdown_expenses__inbound_convenience_charge_amount_currency_code": "Expense inbound placement currency", "transaction_sub_breakdown_expenses__long_term_storage_fee_amount": "Expense long term storage fee", "transaction_sub_breakdown_expenses__long_term_storage_fee_amount_currency_code": "Expense long term storage fee currency", "transaction_sub_breakdown_expenses__other_amount": "Expense other", "transaction_sub_breakdown_expenses__other_amount_currency_code": "Expense other currency", "transaction_sub_breakdown_expenses__promo_rebates_amount": "Expense promo rebates", "transaction_sub_breakdown_expenses__promo_rebates_amount_currency_code": "Expense promo rebates currency", "transaction_sub_breakdown_expenses__retrocharge_reversal_amount": "Expense retrocharge reversal", "transaction_sub_breakdown_expenses__retrocharge_reversal_amount_currency_code": "Expense retrocharge reversal currency", "transaction_sub_breakdown_expenses__storage_billing_fee_amount": "Expense storage billing fee", "transaction_sub_breakdown_expenses__storage_billing_fee_amount_currency_code": "Expense storage billing fee currency", "transaction_sub_breakdown_expenses__subscription_fee_amount": "Expense subscription fee", "transaction_sub_breakdown_expenses__subscription_fee_amount_currency_code": "Expense subscription fee currency", "transaction_sub_breakdown_refunded_expenses__amazon_fees_amount": "Refunded expense Amazon fees", "transaction_sub_breakdown_refunded_expenses__amazon_fees_amount_currency_code": "Refunded expense Amazon fees currency", "transaction_sub_breakdown_refunded_expenses__other_amount": "Refunded expense other", "transaction_sub_breakdown_refunded_expenses__other_amount_currency_code": "Refunded expense other currency", "transaction_sub_breakdown_refunded_expenses__promo_rebates_amount": "Refunded expense promo rebates", "transaction_sub_breakdown_refunded_expenses__promo_rebates_amount_currency_code": "Refunded expense promo rebates currency", "transaction_sub_breakdown_refunded_expenses__tax_amount": "Refunded expense tax", "transaction_sub_breakdown_refunded_expenses__tax_amount_currency_code": "Refunded expense tax currency", "transaction_sub_breakdown_refunded_sales__product_charges_amount": "Refunded sales product charges", "transaction_sub_breakdown_refunded_sales__product_charges_amount_currency_code": "Refunded sales product charges currency", "transaction_sub_breakdown_refunded_sales__shipping_amount": "Refunded sales shipping", "transaction_sub_breakdown_refunded_sales__shipping_amount_currency_code": "Refunded sales shipping currency", "transaction_sub_breakdown_sales__fbainventory_reimbursement_amount": "Sales inventory reimbursement", "transaction_sub_breakdown_sales__fbainventory_reimbursement_amount_currency_code": "Sales inventory reimbursement currency", "transaction_sub_breakdown_sales__fund_transfer_amount": "Sales fund transfer", "transaction_sub_breakdown_sales__fund_transfer_amount_currency_code": "Sales fund transfer currency", "transaction_sub_breakdown_sales__other_amount": "Sales other", "transaction_sub_breakdown_sales__other_amount_currency_code": "Sales other currency", "transaction_sub_breakdown_sales__product_charges_amount": "Sales product charges", "transaction_sub_breakdown_sales__product_charges_amount_currency_code": "Sales product charges currency", "transaction_sub_breakdown_sales__recommerce_liquidation_amount": "Sales recommerce liquidation", "transaction_sub_breakdown_sales__recommerce_liquidation_amount_currency_code": "Sales recommerce liquidation currency", "transaction_sub_breakdown_sales__retrocharge_amount": "Sales retrocharge", "transaction_sub_breakdown_sales__retrocharge_amount_currency_code": "Sales retrocharge currency", "transaction_sub_breakdown_sales__shipping_amount": "Sales shipping", "transaction_sub_breakdown_sales__shipping_amount_currency_code": "Sales shipping currency", "transaction_type": "Transaction type", "item_sub_breakdown_amazon_fees__fbainbound_defect_fee_amount": "Item inbound defect fee", "item_sub_breakdown_amazon_fees__fbainbound_defect_fee_amount_currency_code": "Item inbound defect fee currency", "transaction_sub_breakdown_expenses__unplanned_service_charge_amount": "Expense unplanned service", "transaction_sub_breakdown_expenses__unplanned_service_charge_amount_currency_code": "Expense unplanned service currency", "item_sub_breakdown_amazon_fees__fbastorage_fee_amount": "Item FBA storage fee", "item_sub_breakdown_amazon_fees__fbastorage_fee_amount_currency_code": "Item FBA storage fee currency", "transaction_sub_breakdown_sales__storage_billing_fee_amount": "Sales storage billing fee", "transaction_sub_breakdown_sales__storage_billing_fee_amount_currency_code": "Sales storage billing fee currency", "item_sub_breakdown_other__goodwill_principal_amount": "Item goodwill principal", "item_sub_breakdown_other__goodwill_principal_amount_currency_code": "Item goodwill principal currency", "transaction_sub_breakdown_refunded_sales__other_amount": "Refunded sales other", "transaction_sub_breakdown_refunded_sales__other_amount_currency_code": "Refunded sales other currency", "item_breakdown_shipping_service_chargebacks_amount": "Item shipping chargebacks", "item_breakdown_shipping_service_chargebacks_amount_currency_code": "Item shipping chargebacks currency", "item_sub_breakdown_amazon_fees__deal_participation_fee_rollup_amount": "Item deal participation fee", "item_sub_breakdown_amazon_fees__deal_participation_fee_rollup_amount_currency_code": "Item deal participation fee currency", "item_sub_breakdown_amazon_fees__deal_performance_fee_rollup_amount": "Item deal performance fee", "item_sub_breakdown_amazon_fees__deal_performance_fee_rollup_amount_currency_code": "Item deal performance fee currency", "item_sub_breakdown_amazon_fees__fbadisposal_fee_amount": "Item FBA disposal fee", "item_sub_breakdown_amazon_fees__fbadisposal_fee_amount_currency_code": "Item FBA disposal fee currency", "item_sub_breakdown_amazon_fees__fbainbound_convenience_fee_amount": "Item inbound placement fee", "item_sub_breakdown_amazon_fees__fbainbound_convenience_fee_amount_currency_code": "Item inbound placement fee currency", "item_sub_breakdown_amazon_fees__fbalong_term_storage_fee_amount": "Item long term storage fee", "item_sub_breakdown_amazon_fees__fbalong_term_storage_fee_amount_currency_code": "Item long term storage fee currency", "item_sub_breakdown_amazon_fees__fbaremoval_fee_amount": "Item FBA removal fee", "item_sub_breakdown_amazon_fees__fbaremoval_fee_amount_currency_code": "Item FBA removal fee currency", "item_sub_breakdown_shipping_service_chargebacks__carrier_packaging_charge_amount": "Item carrier packaging charge", "item_sub_breakdown_shipping_service_chargebacks__carrier_packaging_charge_amount_currency_code": "Item carrier packaging charge currency", "item_sub_breakdown_shipping_service_chargebacks__customer_packaging_charge_amount": "Item customer packaging charge", "item_sub_breakdown_shipping_service_chargebacks__customer_packaging_charge_amount_currency_code": "Item customer packaging charge currency", "transaction_sub_breakdown_expenses__deal_participation_fee_rollup_amount": "Expense deal participation fee", "transaction_sub_breakdown_expenses__deal_participation_fee_rollup_amount_currency_code": "Expense deal participation fee currency", "transaction_sub_breakdown_expenses__deal_performance_fee_rollup_amount": "Expense deal performance fee", "transaction_sub_breakdown_expenses__deal_performance_fee_rollup_amount_currency_code": "Expense deal performance fee currency", "transaction_sub_breakdown_refunded_sales__amazon_fees_amount": "Refunded sales Amazon fees", "transaction_sub_breakdown_refunded_sales__amazon_fees_amount_currency_code": "Refunded sales Amazon fees currency", "transaction_sub_breakdown_sales__shipping_service_chargebacks_amount": "Sales shipping chargebacks", "transaction_sub_breakdown_sales__shipping_service_chargebacks_amount_currency_code": "Sales shipping chargebacks currency", "transaction_sub_breakdown_sales__advertising_fee_refund_amount": "Sales advertising fee refund", "transaction_sub_breakdown_sales__advertising_fee_refund_amount_currency_code": "Sales advertising fee refund currency", "item_breakdown_reserve_credit_amount": "Item reserve credit", "item_breakdown_reserve_credit_amount_currency_code": "Item reserve credit currency", "item_breakdown_reserve_debit_amount": "Item reserve debit", "item_breakdown_reserve_debit_amount_currency_code": "Item reserve debit currency", "transaction_sub_breakdown_expenses__reserve_debit_amount": "Expense reserve debit", "transaction_sub_breakdown_expenses__reserve_debit_amount_currency_code": "Expense reserve debit currency", "transaction_sub_breakdown_sales__reserve_credit_amount": "Sales reserve credit", "transaction_sub_breakdown_sales__reserve_credit_amount_currency_code": "Sales reserve credit currency", "transaction_sub_breakdown_expenses__shipping_service_chargebacks_amount": "Expense shipping chargebacks", "transaction_sub_breakdown_expenses__shipping_service_chargebacks_amount_currency_code": "Expense shipping chargebacks currency", "item_sub_breakdown_amazon_fees__fbainbound_transportation_fee_amount": "Item inbound transport fee", "item_sub_breakdown_amazon_fees__fbainbound_transportation_fee_amount_currency_code": "Item inbound transport fee currency", "item_sub_breakdown_amazon_fees__paid_services_fee_amount": "Item paid services fee", "item_sub_breakdown_amazon_fees__paid_services_fee_amount_currency_code": "Item paid services fee currency", "transaction_sub_breakdown_expenses__inbound_transportation_fee_amount": "Expense inbound transport fee", "transaction_sub_breakdown_expenses__inbound_transportation_fee_amount_currency_code": "Expense inbound transport fee currency", "transaction_sub_breakdown_expenses__paid_services_charge_amount": "Expense paid services charge", "transaction_sub_breakdown_expenses__paid_services_charge_amount_currency_code": "Expense paid services charge currency", "item_sub_breakdown_amazon_fees__run_lightning_deal_fee_amount": "Item run lightning deal fee", "item_sub_breakdown_amazon_fees__run_lightning_deal_fee_amount_currency_code": "Item run lightning deal fee currency", "transaction_sub_breakdown_expenses__deal_fee_amount": "Expense deal fee", "transaction_sub_breakdown_expenses__deal_fee_amount_currency_code": "Expense deal fee currency", "transaction_sub_breakdown_sales__fbafees_amount": "Sales FBA fees", "transaction_sub_breakdown_sales__fbafees_amount_currency_code": "Sales FBA fees currency", "item_sub_breakdown_amazon_fees__coupon_participation_fee_rollup_amount": "Item coupon participation fee", "item_sub_breakdown_amazon_fees__coupon_participation_fee_rollup_amount_currency_code": "Item coupon participation fee currency", "item_sub_breakdown_amazon_fees__coupon_performance_fee_rollup_amount": "Item coupon performance fee", "item_sub_breakdown_amazon_fees__coupon_performance_fee_rollup_amount_currency_code": "Item coupon performance fee currency", "transaction_sub_breakdown_expenses__coupon_participation_fee_rollup_amount": "Expense coupon participation fee", "transaction_sub_breakdown_expenses__coupon_participation_fee_rollup_amount_currency_code": "Expense coupon participation currency", "transaction_sub_breakdown_expenses__coupon_performance_fee_rollup_amount": "Expense coupon performance fee", "transaction_sub_breakdown_expenses__coupon_performance_fee_rollup_amount_currency_code": "Expense coupon performance fee currency", "item_sub_breakdown_amazon_fees__coupon_redemption_fee_amount": "Item coupon redemption fee", "item_sub_breakdown_amazon_fees__coupon_redemption_fee_amount_currency_code": "Item coupon redemption fee currency", "transaction_sub_breakdown_expenses__coupon_fee_amount": "Expense coupon fee", "transaction_sub_breakdown_expenses__coupon_fee_amount_currency_code": "Expense coupon fee currency", "item_sub_breakdown_other__supply_chain_credit_roll_up_amount": "Item supply chain credit", "item_sub_breakdown_other__supply_chain_credit_roll_up_amount_currency_code": "Item supply chain credit currency", "transaction_sub_breakdown_sales__supply_chain_credit_roll_up_amount": "Sales supply chain credit", "transaction_sub_breakdown_sales__supply_chain_credit_roll_up_amount_currency_code": "Sales supply chain credit currency", }, _AMZN + "fba_fee_estimates": { "_data_origin": "Data origin", "_report_document_id": "Report document ID", "_report_row_number": "Report row", "_report_type": "Report type", "_snapshot_date": "Synced on", "amazon_store": "Amazon store", "asin": "ASIN", "brand": "Brand", "currency": "Currency", "estimated_fee_total": "Estimated fee total", "estimated_future_fee_current_selling_on_amazon_future_fulfillment_fees": "Future fulfillment fees", "estimated_future_order_handling_fee_per_order": "Future order handling fee", "estimated_future_pick_pack_fee_per_unit": "Future pick and pack fee per unit", "estimated_future_weight_handling_fee_per_unit": "Future weight handling fee per unit", "estimated_order_handling_fee_per_order": "Order handling fee", "estimated_pick_pack_fee_per_unit": "Pick and pack fee per unit", "estimated_referral_fee_per_unit": "Referral fee per unit", "estimated_variable_closing_fee": "Variable closing fee", "estimated_weight_handling_fee_per_unit": "Weight handling fee per unit", "expected_fulfillment_fee_per_unit": "Fulfillment fee per unit", "expected_future_fulfillment_fee_per_unit": "Future fulfillment fee per unit", "fnsku": "FNSKU", "fulfilled_by": "Fulfilled by", "item_package_weight": "Item package weight", "length_and_girth": "Length and girth", "longest_side": "Longest side", "median_side": "Median side", "product_group": "Product group", "product_name": "Product name", "product_size_tier": "Product size tier", "sales_price": "Sales price", "shortest_side": "Shortest side", "sku": "SKU", "unit_of_dimension": "Unit of dimension", "unit_of_weight": "Unit of weight", "your_price": "Your price", }, _AMZN + "referral_fees": { "_data_origin": "Data origin", "_report_document_id": "Report document ID", "_report_row_number": "Report row", "_report_type": "Report type", "_snapshot_date": "Synced on", "asin": "ASIN", "estimated_referral_fee_per_item": "Estimated referral fee per item", "item_name": "Item name", "price": "Price", "seller_sku": "Seller SKU", }, _AMZN + "storage_fees": { "_data_origin": "Data origin", "_report_document_id": "Report document ID", "_report_row_number": "Report row", "_report_type": "Report type", "asin": "ASIN", "average_quantity_customer_orders": "Average quantity customer orders", "average_quantity_on_hand": "Average quantity on hand", "average_quantity_pending_removal": "Average quantity pending removal", "avg_qty_for_sus": "Average units for surcharge", "base_rate": "Base fee per cubic foot", "breakdown_incentive_fee_amount": "Incentive fee breakdown", "country_code": "Country code", "currency": "Currency", "dangerous_goods_storage_type": "Dangerous goods storage type", "eligible_for_inventory_discount": "Eligible for inventory discount", "est_base_msf": "Estimated base storage fee", "est_sus": "Estimated utilization surcharge", "est_vol_for_sus": "Estimated volume for surcharge", "estimated_monthly_storage_fee": "Estimated monthly storage fee", "estimated_total_item_volume": "Estimated total item volume", "fnsku": "FNSKU", "fulfillment_center": "Fulfillment center", "item_volume": "Item volume", "longest_side": "Longest side", "measurement_units": "Measurement units", "median_side": "Median side", "month": "Month", "month_of_charge": "Month of charge", "product_name": "Product name", "product_size_tier": "Product size tier", "qualifies_for_inventory_discount": "Qualifies for inventory discount", "shortest_side": "Shortest side", "storage_utilization_ratio": "Storage utilization ratio", "storage_utilization_ratio_units": "Utilization ratio unit", "total_incentive_fee_amount": "Total incentive fee", "utilization_surcharge_rate": "Utilization surcharge per cubic foot", "volume_units": "Volume units", "weight": "Weight", "weight_units": "Weight units", }, _AMZN + "search_query_performance": { "_data_origin": "Data origin", "_report_document_id": "Report document ID", "_report_row_number": "Report row", "_report_type": "Report type", "asin": "ASIN", "cart_add_data_asin_cart_add_count": "ASIN cart adds", "cart_add_data_asin_cart_add_share": "ASIN cart add share", "cart_add_data_asin_median_cart_add_price": "ASIN median cart add price detail", "cart_add_data_asin_median_cart_add_price_amount": "ASIN median cart add price", "cart_add_data_asin_median_cart_add_price_currency_code": "ASIN cart add price currency", "cart_add_data_total_cart_add_count": "Query cart adds", "cart_add_data_total_cart_add_rate": "Query cart add rate", "cart_add_data_total_median_cart_add_price": "Query median cart add price detail", "cart_add_data_total_median_cart_add_price_amount": "Query median cart add price", "cart_add_data_total_median_cart_add_price_currency_code": "Query cart add price currency", "cart_add_data_total_one_day_shipping_cart_add_count": "One day shipping cart adds", "cart_add_data_total_same_day_shipping_cart_add_count": "Same day shipping cart adds", "cart_add_data_total_two_day_shipping_cart_add_count": "Two day shipping cart adds", "click_data_asin_click_count": "ASIN clicks", "click_data_asin_click_share": "ASIN click share", "click_data_asin_median_click_price": "ASIN median click price detail", "click_data_asin_median_click_price_amount": "ASIN median click price", "click_data_asin_median_click_price_currency_code": "ASIN click price currency", "click_data_total_click_count": "Query clicks", "click_data_total_click_rate": "Query click rate", "click_data_total_median_click_price": "Query median click price detail", "click_data_total_median_click_price_amount": "Query median click price", "click_data_total_median_click_price_currency_code": "Query click price currency", "click_data_total_one_day_shipping_click_count": "One day shipping clicks", "click_data_total_same_day_shipping_click_count": "Same day shipping clicks", "click_data_total_two_day_shipping_click_count": "Two day shipping clicks", "end_date": "End date", "impression_data_asin_impression_count": "ASIN impressions", "impression_data_asin_impression_share": "ASIN impression share", "impression_data_total_query_impression_count": "Query impressions", "purchase_data_asin_median_purchase_price": "ASIN median purchase price detail", "purchase_data_asin_median_purchase_price_amount": "ASIN median purchase price", "purchase_data_asin_median_purchase_price_currency_code": "ASIN purchase price currency", "purchase_data_asin_purchase_count": "ASIN purchases", "purchase_data_asin_purchase_share": "ASIN purchase share", "purchase_data_total_median_purchase_price": "Query median purchase price detail", "purchase_data_total_median_purchase_price_amount": "Query median purchase price", "purchase_data_total_median_purchase_price_currency_code": "Query purchase price currency", "purchase_data_total_one_day_shipping_purchase_count": "One day shipping purchases", "purchase_data_total_purchase_count": "Query purchases", "purchase_data_total_purchase_rate": "Query purchase rate", "purchase_data_total_same_day_shipping_purchase_count": "Same day shipping purchases", "purchase_data_total_two_day_shipping_purchase_count": "Two day shipping purchases", "search_query_data_search_query": "Search query", "search_query_data_search_query_score": "Search query score", "search_query_data_search_query_volume": "Search query volume", "start_date": "Start date", "_report_period": "Report period", }, _AMZN + "long_term_storage_fees": { "_data_origin": "Data origin", "_period_end": "Report period end", "_period_start": "Report period start", "_report_document_id": "Report document ID", "_report_row_number": "Report row", "_report_type": "Report type", "amount_charged": "Amount charged", "asin": "ASIN", "condition": "Condition", "country": "Country", "currency": "Currency", "fnsku": "FNSKU", "per_unit_volume": "Per unit volume", "product_name": "Product name", "qty_charged": "Quantity charged", "rate_surcharge": "Surcharge per cubic foot", "sku": "SKU", "snapshot_date": "Snapshot date", "surcharge_age_tier": "Surcharge age tier", "volume_unit": "Volume unit", }, _AMZN + "storage_overage_fees": { "_period_start": "Report period start", "_report_document_id": "Report document ID", "_report_row_number": "Report row", "_data_origin": "Data origin", "_report_type": "Report type", }, _AMZN + "reimbursements": { "_data_origin": "Data origin", "_period_end": "Report period end", "_period_start": "Report period start", "_report_document_id": "Report document ID", "_report_row_number": "Report row", "_report_type": "Report type", "amazon_order_id": "Amazon order ID", "amount_per_unit": "Amount per unit", "amount_total": "Amount total", "approval_date": "Approval date", "asin": "ASIN", "case_id": "Case ID", "condition": "Condition", "currency_unit": "Currency", "fnsku": "FNSKU", "original_reimbursement_id": "Original reimbursement ID", "original_reimbursement_type": "Original reimbursement type", "product_name": "Product name", "quantity_reimbursed_cash": "Quantity reimbursed cash", "quantity_reimbursed_inventory": "Quantity reimbursed inventory", "quantity_reimbursed_total": "Quantity reimbursed total", "reason": "Reason", "reimbursement_id": "Reimbursement ID", "sku": "SKU", }, _AMZN + "fba_customer_returns": { "_data_origin": "Data origin", "_period_end": "Report period end", "_period_start": "Report period start", "_report_document_id": "Report document ID", "_report_row_number": "Report row", "_report_type": "Report type", "asin": "ASIN", "customer_comments": "Customer comments", "detailed_disposition": "Detailed disposition", "fnsku": "FNSKU", "fulfillment_center_id": "Fulfillment center ID", "license_plate_number": "License plate number", "order_id": "Order ID", "product_name": "Product name", "quantity": "Quantity", "reason": "Reason", "return_date": "Return date", "sku": "SKU", "status": "Status", }, _AMZN + "replacements": { "_data_origin": "Data origin", "_period_end": "Report period end", "_period_start": "Report period start", "_report_document_id": "Report document ID", "_report_row_number": "Report row", "_report_type": "Report type", "asin": "ASIN", "fulfillment_center_id": "Fulfillment center ID", "original_amazon_order_id": "Original Amazon order ID", "original_fulfillment_center_id": "Original fulfillment center ID", "quantity": "Quantity", "replacement_amazon_order_id": "Replacement Amazon order ID", "replacement_reason_code": "Replacement reason code", "shipment_date": "Shipment date", "sku": "SKU", }, _AMZN + "fba_shipped_sales": { "_data_origin": "Data origin", "_period_end": "Report period end", "_period_start": "Report period start", "_report_document_id": "Report document ID", "_report_row_number": "Report row", "_report_type": "Report type", "amazon_order_id": "Amazon order ID", "asin": "ASIN", "currency": "Currency", "fnsku": "FNSKU", "fulfillment_center_id": "Fulfillment center ID", "gift_wrap_price": "Gift wrap price", "item_price_per_unit": "Item price per unit", "quantity": "Quantity", "ship_city": "Ship city", "ship_postal_code": "Ship postal code", "ship_state": "Ship state", "shipment_date": "Shipment date", "shipping_price": "Shipping price", "sku": "SKU", }, _AMZN + "fba_shipment_promotions": { "_data_origin": "Data origin", "_period_end": "Report period end", "_period_start": "Report period start", "_report_document_id": "Report document ID", "_report_row_number": "Report row", "_report_type": "Report type", "amazon_order_id": "Amazon order ID", "currency": "Currency", "description": "Description", "item_promotion_discount": "Item promotion discount", "item_promotion_id": "Item promotion ID", "promotion_rule_value": "Promotion rule value", "shipment_date": "Shipment date", "shipment_id": "Shipment ID", "shipment_item_id": "Shipment item ID", }, _AMZN + "inventory_ledger_detail": { "_data_origin": "Data origin", "_period_end": "Report period end", "_period_start": "Report period start", "_report_document_id": "Report document ID", "_report_row_number": "Report row", "_report_type": "Report type", "asin": "ASIN", "country": "Country", "date": "Date", "date_and_time": "Date and time", "disposition": "Disposition", "event_type": "Event type", "fnsku": "FNSKU", "fulfillment_center": "Fulfillment center", "msku": "MSKU", "quantity": "Quantity", "reason": "Reason", "reconciled_quantity": "Reconciled quantity", "reference_id": "Reference ID", "store": "Store", "title": "Title", "unreconciled_quantity": "Unreconciled quantity", }, _AMZN + "inventory_planning": { "_data_origin": "Data origin", "_report_document_id": "Report document ID", "_report_row_number": "Report row", "_report_type": "Report type", "_snapshot_date": "Synced on", "alert": "Alert", "asin": "ASIN", "available": "Available", "condition": "Condition", "currency": "Currency", "days_of_supply": "Days of supply", "deprecated_healthy_inventory_level": "Healthy inventory level (old)", "estimated_ais_181_210_days": "Estimated AIS 181 to 210 days", "estimated_ais_211_240_days": "Estimated AIS 211 to 240 days", "estimated_ais_241_270_days": "Estimated AIS 241 to 270 days", "estimated_ais_271_300_days": "Estimated AIS 271 to 300 days", "estimated_ais_301_330_days": "Estimated AIS 301 to 330 days", "estimated_ais_331_365_days": "Estimated AIS 331 to 365 days", "estimated_ais_366_455_days": "Estimated AIS 366 to 455 days", "estimated_ais_456_plus_days": "Estimated AIS 456 plus days", "estimated_cost_savings_of_recommended_actions": "Savings from recommended actions", "estimated_excess_quantity": "Estimated excess quantity", "estimated_storage_cost_next_month": "Estimated storage cost next month", "exempted_from_low_inventory_level_fee": "Exempt from low inventory fee", "fba_inventory_level_health_status": "Inventory level health", "fba_minimum_inventory_level": "FBA minimum inventory level", "fc_transfer": "FC transfer", "featuredoffer_price": "Featured offer price", "fnsku": "FNSKU", "fulfillment_service_and_programs": "Fulfillment service and programs", "historical_days_of_supply": "Historical days of supply", "inbound_quantity": "Inbound quantity", "inbound_received": "Inbound received", "inbound_shipped": "Inbound shipped", "inbound_working": "Inbound working", "inv_age_0_to_30_days": "Inventory age 0 to 30 days", "inv_age_0_to_90_days": "Inventory age 0 to 90 days", "inv_age_181_to_270_days": "Inventory age 181 to 270 days", "inv_age_181_to_330_days": "Inventory age 181 to 330 days", "inv_age_271_to_365_days": "Inventory age 271 to 365 days", "inv_age_31_to_60_days": "Inventory age 31 to 60 days", "inv_age_331_to_365_days": "Inventory age 331 to 365 days", "inv_age_366_to_455_days": "Inventory age 366 to 455 days", "inv_age_456_plus_days": "Inventory age 456 plus days", "inv_age_61_to_90_days": "Inventory age 61 to 90 days", "inv_age_91_to_180_days": "Inventory age 91 to 180 days", "inventory_age_snapshot_date": "Inventory age as of", "inventory_supply_at_fba": "Inventory supply at FBA", "is_seasonal_in_next_3_months": "Seasonal in next 3 months", "item_volume": "Item volume", "last_updated_date_for_historical_days_of_supply": "Historical supply updated on", "long_term_historical_days_of_supply": "Long term historical days of supply", "low_inventory_level_fee_applied_in_current_week": "Low inventory fee this week", "lowest_price_new_plus_shipping": "Lowest new price with shipping", "lowest_price_used": "Lowest price used", "marketplace": "Marketplace", "no_sale_last_6_months": "No sale last 6 months", "pending_removal_quantity": "Pending removal quantity", "product_group": "Product group", "product_name": "Product name", "quantity_to_be_charged_ais_181_210_days": "AIS units 181 to 210 days", "quantity_to_be_charged_ais_211_240_days": "AIS units 211 to 240 days", "quantity_to_be_charged_ais_241_270_days": "AIS units 241 to 270 days", "quantity_to_be_charged_ais_271_300_days": "AIS units 271 to 300 days", "quantity_to_be_charged_ais_301_330_days": "AIS units 301 to 330 days", "quantity_to_be_charged_ais_331_365_days": "AIS units 331 to 365 days", "quantity_to_be_charged_ais_366_455_days": "AIS units 366 to 455 days", "quantity_to_be_charged_ais_456_plus_days": "AIS units 456 plus days", "recommended_action": "Recommended action", "recommended_removal_quantity": "Recommended removal quantity", "recommended_sale_duration_days": "Recommended sale duration days", "recommended_sales_price": "Recommended sales price", "recommended_ship_in_date": "Recommended ship in date", "recommended_ship_in_quantity": "Recommended ship in quantity", "reserved_customer_order": "Reserved customer order", "reserved_fc_processing": "Reserved FC processing", "reserved_staging": "Reserved staging", "sales_price": "Sales price", "sales_rank": "Sales rank", "sales_shipped_last_30_days": "Sales shipped last 30 days", "sales_shipped_last_60_days": "Sales shipped last 60 days", "sales_shipped_last_7_days": "Sales shipped last 7 days", "sales_shipped_last_90_days": "Sales shipped last 90 days", "season_end_date": "Season end date", "season_name": "Season name", "season_start_date": "Season start date", "sell_through": "Sell through", "short_term_historical_days_of_supply": "Short term historical days of supply", "sku": "SKU", "snapshot_date": "Snapshot date", "storage_type": "Storage type", "storage_volume": "Storage volume", "supplier": "Supplier", "total_days_of_supply_including_units_from_open_shipments": "Days of supply with open shipments", "total_reserved_quantity": "Total reserved quantity", "unfulfillable_quantity": "Unfulfillable quantity", "units_shipped_t30": "Units shipped last 30 days", "units_shipped_t60": "Units shipped last 60 days", "units_shipped_t7": "Units shipped last 7 days", "units_shipped_t90": "Units shipped last 90 days", "volume_unit_measurement": "Volume unit measurement", "weeks_of_cover_t30": "Weeks of cover (30 days)", "weeks_of_cover_t90": "Weeks of cover (90 days)", "your_price": "Your price", "estimated_ais_365_plus_days": "Estimated AIS 365 plus days", "inv_age_365_plus_days": "Inventory age 365 plus days", "quantity_to_be_charged_ais_365_plus_days": "AIS units 365 plus days", }, _AMZN + "manage_inventory": { "_data_origin": "Data origin", "_report_document_id": "Report document ID", "_report_row_number": "Report row", "_report_type": "Report type", "_snapshot_date": "Synced on", "afn_fc_transfer_quantity": "AFN FC transfer quantity", "afn_fulfillable_quantity": "AFN fulfillable quantity", "afn_future_supply_buyable": "AFN future supply buyable", "afn_inbound_receiving_quantity": "AFN inbound receiving quantity", "afn_inbound_shipped_quantity": "AFN inbound shipped quantity", "afn_inbound_working_quantity": "AFN inbound working quantity", "afn_listing_exists": "AFN listing exists", "afn_onhand_buyable_quantity": "AFN onhand buyable quantity", "afn_researching_quantity": "AFN researching quantity", "afn_reserved_future_supply": "AFN reserved future supply", "afn_reserved_quantity": "AFN reserved quantity", "afn_total_quantity": "AFN total quantity", "afn_unsellable_quantity": "AFN unsellable quantity", "afn_warehouse_quantity": "AFN warehouse quantity", "asin": "ASIN", "condition": "Condition", "fnsku": "FNSKU", "mfn_fulfillable_quantity": "MFN fulfillable quantity", "mfn_listing_exists": "MFN listing exists", "per_unit_volume": "Per unit volume", "product_name": "Product name", "sku": "SKU", "store": "Store", "your_price": "Your price", }, _AMZN + "reserved_inventory": { "_data_origin": "Data origin", "_report_document_id": "Report document ID", "_report_row_number": "Report row", "_report_type": "Report type", "_snapshot_date": "Synced on", "asin": "ASIN", "fnsku": "FNSKU", "product_name": "Product name", "program": "Program", "reserved_customerorders": "Reserved customer orders", "reserved_fc_processing": "Reserved FC processing", "reserved_qty": "Reserved quantity", "reserved_staging": "Reserved staging", "sku": "SKU", }, _AMZN + "restock_recommendations": { "_data_origin": "Data origin", "_report_document_id": "Report document ID", "_report_row_number": "Report row", "_report_type": "Report type", "_snapshot_date": "Synced on", "alert": "Alert", "asin": "ASIN", "available": "Available", "condition": "Condition", "country": "Country", "currency_code": "Currency", "customer_order": "Customer order", "days_of_supply_at_amazon_fulfillment_network": "Days of supply at Amazon", "fc_processing": "FC processing", "fc_transfer": "FC transfer", "fnsku": "FNSKU", "fulfilled_by": "Fulfilled by", "inbound": "Inbound", "merchant_sku": "Merchant SKU", "price": "Price", "product_name": "Product name", "receiving": "Receiving", "recommended_action": "Recommended action", "recommended_replenishment_qty": "Recommended replenishment quantity", "recommended_ship_date": "Recommended ship date", "sales_last_30_days": "Sales last 30 days", "shipped": "Shipped", "supplier": "Supplier", "supplier_part_no": "Supplier part number", "total_days_of_supply_including_units_from_open_shipments": "Days of supply with open shipments", "total_units": "Total units", "unfulfillable": "Unfulfillable", "unit_storage_size": "Unit storage size", "units_sold_last_30_days": "Units sold last 30 days", "working": "Working", }, _AMZN + "stranded_inventory": { "_data_origin": "Data origin", "_report_document_id": "Report document ID", "_report_row_number": "Report row", "_report_type": "Report type", "_snapshot_date": "Synced on", "asin": "ASIN", "condition": "Condition", "date_stranded": "Date stranded", "date_to_take_auto_removal": "Date to take auto removal", "error_message": "Error message", "fnsku": "FNSKU", "fulfillable_qty": "Fulfillable quantity", "fulfilled_by": "Fulfilled by", "inbound_shipped_qty": "Inbound shipped quantity", "primary_action": "Primary action", "product_name": "Product name", "program": "Program", "reserved_quantity": "Reserved quantity", "sku": "SKU", "status_primary": "Status primary", "status_secondary": "Status secondary", "stranded_reason": "Stranded reason", "unfulfillable_qty": "Unfulfillable quantity", "your_price": "Your price", }, _AMZN + "inbound_noncompliance": { "_data_origin": "Data origin", "_period_end": "Report period end", "_period_start": "Report period start", "_report_document_id": "Report document ID", "_report_row_number": "Report row", "_report_type": "Report type", "alert_status": "Alert status", "asin": "ASIN", "coaching_level": "Coaching level", "currency": "Currency", "expected_quantity": "Expected quantity", "fba_carton_id": "FBA carton ID", "fba_shipment_id": "FBA shipment ID", "fee_total": "Fee total", "fee_type": "Fee type", "fnsku": "FNSKU", "fulfillment_center_id": "Fulfillment center ID", "issue_reported_date": "Issue reported date", "performance_measurement_unit": "Performance measurement unit", "problem_level": "Problem level", "problem_quantity": "Problem quantity", "problem_type": "Problem type", "product_name": "Product name", "received_quantity": "Received quantity", "shipment_creation_date": "Shipment creation date", "sku": "SKU", }, _AMZN + "inventory_expiration_dates": { "_snapshot_date": "Synced on", "_report_document_id": "Report document ID", "_report_row_number": "Report row", "_data_origin": "Data origin", "_report_type": "Report type", }, _AMZN + "recommended_removals": { "_data_origin": "Data origin", "_report_document_id": "Report document ID", "_report_row_number": "Report row", "_report_type": "Report type", "_snapshot_date": "Synced on", "asin": "ASIN", "condition": "Condition", "fnsku": "FNSKU", "product_name": "Product name", "sellable_121_180_days": "Sellable 121 180 days", "sellable_181_270_days": "Sellable 181 270 days", "sellable_271_365_days": "Sellable 271 365 days", "sellable_365_days": "Sellable 365 days", "sellable_quantity": "Sellable quantity", "sellable_removal_quantity": "Sellable removal quantity", "sku": "SKU", "snapshot_date": "Snapshot date", "unsellable_0_7_days": "Unsellable 0 7 days", "unsellable_61_90_days": "Unsellable 61 90 days", "unsellable_8_60_days": "Unsellable 8 60 days", "unsellable_quantity": "Unsellable quantity", }, _AMZN + "removal_orders": { "_data_origin": "Data origin", "_period_end": "Report period end", "_period_start": "Report period start", "_report_document_id": "Report document ID", "_report_row_number": "Report row", "_report_type": "Report type", "cancelled_quantity": "Cancelled quantity", "currency": "Currency", "disposed_quantity": "Disposed quantity", "disposition": "Disposition", "fnsku": "FNSKU", "in_process_quantity": "In process quantity", "last_updated_date": "Last updated date", "order_id": "Order ID", "order_source": "Order source", "order_status": "Order status", "order_type": "Order type", "removal_fee": "Removal fee", "request_date": "Request date", "requested_quantity": "Requested quantity", "shipped_quantity": "Shipped quantity", "sku": "SKU", }, _AMZN + "removal_shipments": { "_data_origin": "Data origin", "_period_end": "Report period end", "_period_start": "Report period start", "_report_document_id": "Report document ID", "_report_row_number": "Report row", "_report_type": "Report type", "carrier": "Carrier", "disposition": "Disposition", "fnsku": "FNSKU", "order_id": "Order ID", "removal_order_type": "Removal order type", "request_date": "Request date", "shipment_date": "Shipment date", "shipped_quantity": "Shipped quantity", "sku": "SKU", "tracking_number": "Tracking number", }, _AMZN + "subscribe_save_forecast": { "_snapshot_date": "Synced on", "_report_document_id": "Report document ID", "_report_row_number": "Report row", "_data_origin": "Data origin", "_report_type": "Report type", }, _AMZN + "subscribe_save_performance": { "_period_start": "Report period start", "_report_document_id": "Report document ID", "_report_row_number": "Report row", "_data_origin": "Data origin", "_report_type": "Report type", "asin": "ASIN", "country": "Country", "fnsku": "FNSKU", "offer_state": "Offer state", "oos_rate_week_1": "Out of stock rate week 1", "oos_rate_week_2": "Out of stock rate week 2", "oos_rate_week_3": "Out of stock rate week 3", "oos_rate_week_4": "Out of stock rate week 4", "product_name": "Product name", "sku": "SKU", "snapshot_date": "Snapshot date", "sns_discount_week_1": "S&S discount week 1", "sns_discount_week_2": "S&S discount week 2", "sns_discount_week_3": "S&S discount week 3", "sns_discount_week_4": "S&S discount week 4", "sns_sale_price_week_1": "S&S sale price week 1", "sns_sale_price_week_2": "S&S sale price week 2", "sns_sale_price_week_3": "S&S sale price week 3", "sns_sale_price_week_4": "S&S sale price week 4", "sns_units_shipped_week_1": "S&S units shipped week 1", "sns_units_shipped_week_2": "S&S units shipped week 2", "sns_units_shipped_week_3": "S&S units shipped week 3", "sns_units_shipped_week_4": "S&S units shipped week 4", "week_1_start_date": "Week 1 start date", }, _AMZN + "remote_fulfillment_eligibility": { "_data_origin": "Data origin", "_report_document_id": "Report document ID", "_report_row_number": "Report row", "_report_type": "Report type", "_snapshot_date": "Synced on", "managing_remote_fulfillment": "Managing remote fulfillment", }, _AMZN + "search_catalog_performance": { "_data_origin": "Data origin", "_period_end": "Report period end", "_period_start": "Report period start", "_report_document_id": "Report document ID", "_report_row_number": "Report row", "_report_type": "Report type", "asin": "ASIN", "cart_add_data_cart_add_count": "Cart adds", "cart_add_data_cart_added_median_price": "Median cart add price detail", "cart_add_data_cart_added_median_price_amount": "Median cart add price", "cart_add_data_cart_added_median_price_currency_code": "Cart add price currency", "cart_add_data_one_day_shipping_cart_add_count": "One day shipping cart adds", "cart_add_data_same_day_shipping_cart_add_count": "Same day shipping cart adds", "cart_add_data_two_day_shipping_cart_add_count": "Two day shipping cart adds", "click_data_click_count": "Clicks", "click_data_click_rate": "Click rate", "click_data_clicked_median_price": "Median click price detail", "click_data_clicked_median_price_amount": "Median click price", "click_data_clicked_median_price_currency_code": "Click price currency", "click_data_one_day_shipping_click_count": "One day shipping clicks", "click_data_same_day_shipping_click_count": "Same day shipping clicks", "click_data_two_day_shipping_click_count": "Two day shipping clicks", "end_date": "End date", "impression_data_impression_count": "Impressions", "impression_data_impression_median_price": "Median impression price detail", "impression_data_impression_median_price_amount": "Median impression price", "impression_data_impression_median_price_currency_code": "Impression price currency", "impression_data_one_day_shipping_impression_count": "One day shipping impressions", "impression_data_same_day_shipping_impression_count": "Same day shipping impressions", "impression_data_two_day_shipping_impression_count": "Two day shipping impressions", "purchase_data_conversion_rate": "Conversion rate", "purchase_data_one_day_shipping_purchase_count": "One day shipping purchases", "purchase_data_purchase_count": "Purchases", "purchase_data_purchase_median_price": "Median purchase price detail", "purchase_data_purchase_median_price_amount": "Median purchase price", "purchase_data_purchase_median_price_currency_code": "Purchase price currency", "purchase_data_same_day_shipping_purchase_count": "Same day shipping purchases", "purchase_data_search_traffic_sales_amount": "Search traffic sales", "purchase_data_search_traffic_sales_currency_code": "Search traffic sales currency", "purchase_data_two_day_shipping_purchase_count": "Two day shipping purchases", "start_date": "Start date", }, _AMZN + "market_basket": { "_data_origin": "Data origin", "_period_end": "Report period end", "_period_start": "Report period start", "_report_document_id": "Report document ID", "_report_row_number": "Report row", "_report_type": "Report type", "asin": "ASIN", "combination_pct": "Combination pct", "end_date": "End date", "purchased_with_asin": "Purchased with ASIN", "purchased_with_rank": "Purchased with rank", "start_date": "Start date", }, _AMZN + "promotion_performance": { "_period_start": "Report period start", "_report_document_id": "Report document ID", "_report_row_number": "Report row", "_data_origin": "Data origin", "_report_type": "Report type", }, _AMZN + "coupon_performance": { "_period_start": "Report period start", "_report_document_id": "Report document ID", "_report_row_number": "Report row", "_data_origin": "Data origin", "_report_type": "Report type", }, _AMZN + "account_health": { "_data_origin": "Data origin", "_json_root": "Report section", "_report_document_id": "Report document ID", "_report_row_number": "Report row", "_report_type": "Report type", "_snapshot_date": "Synced on", "account_health_rating_ahr_score": "Account health score", "account_health_rating_ahr_status": "Account health status", "account_health_rating_reporting_date_range_reporting_date_from": "Account health rating from", "account_health_rating_reporting_date_range_reporting_date_to": "Account health rating to", "customer_product_reviews_policy_violations_defects_count": "Review policy violations count", "customer_product_reviews_policy_violations_reporting_date_range_reporting_date_from": "Review policy violations from", "customer_product_reviews_policy_violations_reporting_date_range_reporting_date_to": "Review policy violations to", "customer_product_reviews_policy_violations_status": "Review policy violations status", "customer_product_reviews_policy_violations_target_condition": "Review policy violations target rule", "customer_product_reviews_policy_violations_target_value": "Review policy violations target", "document_requests_defects_count": "Document requests count", "document_requests_reporting_date_range_reporting_date_from": "Document requests from", "document_requests_reporting_date_range_reporting_date_to": "Document requests to", "document_requests_status": "Document requests status", "document_requests_target_condition": "Document requests target rule", "document_requests_target_value": "Document requests target", "food_and_product_safety_issues_defects_count": "Food safety issues count", "food_and_product_safety_issues_reporting_date_range_reporting_date_from": "Food safety issues from", "food_and_product_safety_issues_reporting_date_range_reporting_date_to": "Food safety issues to", "food_and_product_safety_issues_status": "Food safety issues status", "food_and_product_safety_issues_target_condition": "Food safety issues target rule", "food_and_product_safety_issues_target_value": "Food safety issues target", "invoice_defect_rate_invoice_defect_count": "Invoice defects", "invoice_defect_rate_invoice_defect_status": "Invoice defects status", "invoice_defect_rate_late_invoice_count": "Late invoices", "invoice_defect_rate_late_invoice_status": "Late invoices status", "invoice_defect_rate_missing_invoice_count": "Missing invoices", "invoice_defect_rate_missing_invoice_status": "Missing invoices status", "invoice_defect_rate_order_count": "Invoice defect rate orders", "invoice_defect_rate_rate": "Invoice defect rate", "invoice_defect_rate_reporting_date_range_reporting_date_from": "Invoice defect rate from", "invoice_defect_rate_reporting_date_range_reporting_date_to": "Invoice defect rate to", "invoice_defect_rate_status": "Invoice defect rate status", "invoice_defect_rate_target_condition": "Invoice defect rate target rule", "invoice_defect_rate_target_value": "Invoice defect rate target", "late_shipment_rate_late_shipment_count": "Late shipments", "late_shipment_rate_list": "Late shipment history", "late_shipment_rate_order_count": "Late shipment rate orders", "late_shipment_rate_rate": "Late shipment rate", "late_shipment_rate_reporting_date_range_reporting_date_from": "Late shipment rate from", "late_shipment_rate_reporting_date_range_reporting_date_to": "Late shipment rate to", "late_shipment_rate_status": "Late shipment rate status", "late_shipment_rate_target_condition": "Late shipment rate target rule", "late_shipment_rate_target_value": "Late shipment rate target", "listing_policy_violations_defects_count": "Listing policy violations count", "listing_policy_violations_reporting_date_range_reporting_date_from": "Listing policy violations from", "listing_policy_violations_reporting_date_range_reporting_date_to": "Listing policy violations to", "listing_policy_violations_status": "Listing policy violations status", "listing_policy_violations_target_condition": "Listing policy violations target rule", "listing_policy_violations_target_value": "Listing policy violations target", "marketplace_id": "Marketplace ID", "on_time_delivery_rate_on_time_delivery_count": "On time deliveries", "on_time_delivery_rate_rate": "On time delivery rate", "on_time_delivery_rate_reporting_date_range_reporting_date_from": "On time delivery rate from", "on_time_delivery_rate_reporting_date_range_reporting_date_to": "On time delivery rate to", "on_time_delivery_rate_shipment_count_with_valid_tracking": "On time delivery tracked shipments", "on_time_delivery_rate_status": "On time delivery rate status", "on_time_delivery_rate_target_condition": "On time delivery rate target rule", "on_time_delivery_rate_target_value": "On time delivery rate target", "order_defect_rate_afn_chargebacks_count": "FBA ODR chargebacks", "order_defect_rate_afn_chargebacks_status": "FBA ODR chargebacks status", "order_defect_rate_afn_claims_count": "FBA ODR A-to-z claims", "order_defect_rate_afn_claims_status": "FBA ODR claims status", "order_defect_rate_afn_fulfillment_type": "FBA ODR channel", "order_defect_rate_afn_negative_feedback_count": "FBA ODR negative feedback", "order_defect_rate_afn_negative_feedback_status": "FBA ODR feedback status", "order_defect_rate_afn_order_count": "FBA order defect rate orders", "order_defect_rate_afn_order_with_defects_count": "FBA ODR defective orders", "order_defect_rate_afn_order_with_defects_status": "FBA ODR defective orders status", "order_defect_rate_afn_rate": "FBA order defect rate", "order_defect_rate_afn_reporting_date_range_reporting_date_from": "FBA order defect rate from", "order_defect_rate_afn_reporting_date_range_reporting_date_to": "FBA order defect rate to", "order_defect_rate_afn_status": "FBA order defect rate status", "order_defect_rate_afn_target_condition": "FBA order defect rate target rule", "order_defect_rate_afn_target_value": "FBA order defect rate target", "order_defect_rate_mfn_chargebacks_count": "MFN ODR chargebacks", "order_defect_rate_mfn_chargebacks_status": "MFN ODR chargebacks status", "order_defect_rate_mfn_claims_count": "MFN ODR A-to-z claims", "order_defect_rate_mfn_claims_status": "MFN ODR claims status", "order_defect_rate_mfn_fulfillment_type": "MFN ODR channel", "order_defect_rate_mfn_negative_feedback_count": "MFN ODR negative feedback", "order_defect_rate_mfn_negative_feedback_status": "MFN ODR feedback status", "order_defect_rate_mfn_order_count": "MFN order defect rate orders", "order_defect_rate_mfn_order_with_defects_count": "MFN ODR defective orders", "order_defect_rate_mfn_order_with_defects_status": "MFN ODR defective orders status", "order_defect_rate_mfn_rate": "MFN order defect rate", "order_defect_rate_mfn_reporting_date_range_reporting_date_from": "MFN order defect rate from", "order_defect_rate_mfn_reporting_date_range_reporting_date_to": "MFN order defect rate to", "order_defect_rate_mfn_status": "MFN order defect rate status", "order_defect_rate_mfn_target_condition": "MFN order defect rate target rule", "order_defect_rate_mfn_target_value": "MFN order defect rate target", "other_policy_violations_defects_count": "Other policy violations count", "other_policy_violations_reporting_date_range_reporting_date_from": "Other policy violations from", "other_policy_violations_reporting_date_range_reporting_date_to": "Other policy violations to", "other_policy_violations_status": "Other policy violations status", "other_policy_violations_target_condition": "Other policy violations target rule", "other_policy_violations_target_value": "Other policy violations target", "policy_violation_warnings_reporting_date_range_reporting_date_from": "Policy warnings from", "policy_violation_warnings_reporting_date_range_reporting_date_to": "Policy warnings to", "policy_violation_warnings_warnings_count": "Policy warnings", "pre_fulfillment_cancellation_rate_cancellation_count": "Cancelled orders", "pre_fulfillment_cancellation_rate_order_count": "Cancellation rate orders", "pre_fulfillment_cancellation_rate_rate": "Cancellation rate", "pre_fulfillment_cancellation_rate_reporting_date_range_reporting_date_from": "Cancellation rate from", "pre_fulfillment_cancellation_rate_reporting_date_range_reporting_date_to": "Cancellation rate to", "pre_fulfillment_cancellation_rate_status": "Cancellation rate status", "pre_fulfillment_cancellation_rate_target_condition": "Cancellation rate target rule", "pre_fulfillment_cancellation_rate_target_value": "Cancellation rate target", "product_authenticity_customer_complaints_defects_count": "Authenticity complaints count", "product_authenticity_customer_complaints_reporting_date_range_reporting_date_from": "Authenticity complaints from", "product_authenticity_customer_complaints_reporting_date_range_reporting_date_to": "Authenticity complaints to", "product_authenticity_customer_complaints_status": "Authenticity complaints status", "product_authenticity_customer_complaints_target_condition": "Authenticity complaints target rule", "product_authenticity_customer_complaints_target_value": "Authenticity complaints target", "product_condition_customer_complaints_defects_count": "Condition complaints count", "product_condition_customer_complaints_reporting_date_range_reporting_date_from": "Condition complaints from", "product_condition_customer_complaints_reporting_date_range_reporting_date_to": "Condition complaints to", "product_condition_customer_complaints_status": "Condition complaints status", "product_condition_customer_complaints_target_condition": "Condition complaints target rule", "product_condition_customer_complaints_target_value": "Condition complaints target", "product_safety_customer_complaints_defects_count": "Safety complaints count", "product_safety_customer_complaints_reporting_date_range_reporting_date_from": "Safety complaints from", "product_safety_customer_complaints_reporting_date_range_reporting_date_to": "Safety complaints to", "product_safety_customer_complaints_status": "Safety complaints status", "product_safety_customer_complaints_target_condition": "Safety complaints target rule", "product_safety_customer_complaints_target_value": "Safety complaints target", "received_intellectual_property_complaints_defects_count": "IP complaints count", "received_intellectual_property_complaints_reporting_date_range_reporting_date_from": "IP complaints from", "received_intellectual_property_complaints_reporting_date_range_reporting_date_to": "IP complaints to", "received_intellectual_property_complaints_status": "IP complaints status", "received_intellectual_property_complaints_target_condition": "IP complaints target rule", "received_intellectual_property_complaints_target_value": "IP complaints target", "restricted_product_policy_violations_defects_count": "Restricted product issues count", "restricted_product_policy_violations_reporting_date_range_reporting_date_from": "Restricted product issues from", "restricted_product_policy_violations_reporting_date_range_reporting_date_to": "Restricted product issues to", "restricted_product_policy_violations_status": "Restricted product issues status", "restricted_product_policy_violations_target_condition": "Restricted product issues target rule", "restricted_product_policy_violations_target_value": "Restricted product issues target", "status": "Status", "suspected_intellectual_property_violations_defects_count": "Suspected IP violations count", "suspected_intellectual_property_violations_reporting_date_range_reporting_date_from": "Suspected IP violations from", "suspected_intellectual_property_violations_reporting_date_range_reporting_date_to": "Suspected IP violations to", "suspected_intellectual_property_violations_status": "Suspected IP violations status", "suspected_intellectual_property_violations_target_condition": "Suspected IP violations target rule", "suspected_intellectual_property_violations_target_value": "Suspected IP violations target", "unit_on_time_delivery_rate_rate": "Unit on time delivery rate", "unit_on_time_delivery_rate_reporting_date_range_reporting_date_from": "Unit on time delivery rate from", "unit_on_time_delivery_rate_reporting_date_range_reporting_date_to": "Unit on time delivery rate to", "unit_on_time_delivery_rate_status": "Unit on time delivery rate status", "unit_on_time_delivery_rate_target_condition": "Unit on time delivery rate target rule", "unit_on_time_delivery_rate_target_value": "Unit on time delivery rate target", "unit_on_time_delivery_rate_total_unit_count": "Unit on time delivery units", "unit_on_time_delivery_rate_unit_on_time_delivery_count": "Units delivered on time", "valid_tracking_rate_rate": "Valid tracking rate", "valid_tracking_rate_reporting_date_range_reporting_date_from": "Valid tracking rate from", "valid_tracking_rate_reporting_date_range_reporting_date_to": "Valid tracking rate to", "valid_tracking_rate_shipment_count": "Valid tracking rate shipments", "valid_tracking_rate_status": "Valid tracking rate status", "valid_tracking_rate_target_condition": "Valid tracking rate target rule", "valid_tracking_rate_target_value": "Valid tracking rate target", "valid_tracking_rate_valid_tracking_count": "Shipments with valid tracking", "warning_states": "Warning states", }, _AMZN + "inactive_listings": { "_data_origin": "Data origin", "_report_document_id": "Report document ID", "_report_row_number": "Report row", "_report_type": "Report type", "_snapshot_date": "Synced on", "add_delete": "Add delete", "asin1": "ASIN", "asin2": "ASIN 2", "asin3": "ASIN 3", "bid_for_featured_placement": "Bid for featured placement", "expedited_shipping": "Expedited shipping", "fulfillment_channel": "Fulfillment channel", "image_url": "Image URL", "item_condition": "Item condition", "item_description": "Item description", "item_is_marketplace": "Item is marketplace", "item_name": "Item name", "item_note": "Item note", "listing_id": "Listing ID", "merchant_shipping_group": "Merchant shipping group", "open_date": "Open date", "pending_quantity": "Pending quantity", "price": "Price", "product_id": "Product ID", "product_id_type": "Product ID type", "quantity": "Quantity", "seller_sku": "Seller SKU", "will_ship_internationally": "Will ship internationally", "zshop_boldface": "Zshop boldface", "zshop_browse_path": "Zshop browse path", "zshop_category1": "Zshop category", "zshop_shipping_fee": "Zshop shipping fee", "zshop_storefront_feature": "Zshop storefront feature", }, _AMZN + "cancelled_listings": { "_data_origin": "Data origin", "_report_document_id": "Report document ID", "_report_row_number": "Report row", "_report_type": "Report type", "add_delete": "Add delete", "asin1": "ASIN", "asin2": "ASIN 2", "asin3": "ASIN 3", "business_price": "Business price", "expedited_shipping": "Expedited shipping", "image_url": "Image URL", "item_condition": "Item condition", "item_description": "Item description", "item_is_marketplace": "Item is marketplace", "item_name": "Item name", "item_note": "Item note", "merchant_shipping_group": "Merchant shipping group", "price": "Price", "product_id": "Product ID", "product_id_type": "Product ID type", "progressive_lower_bound_1": "Progressive lower bound 1", "progressive_lower_bound_2": "Progressive lower bound 2", "progressive_lower_bound_3": "Progressive lower bound 3", "progressive_price_1": "Progressive price 1", "progressive_price_2": "Progressive price 2", "progressive_price_3": "Progressive price 3", "progressive_price_type": "Progressive price type", "quantity": "Quantity", "quantity_lower_bound_1": "Quantity lower bound 1", "quantity_lower_bound_2": "Quantity lower bound 2", "quantity_lower_bound_3": "Quantity lower bound 3", "quantity_lower_bound_4": "Quantity lower bound 4", "quantity_lower_bound_5": "Quantity lower bound 5", "quantity_price_1": "Quantity price 1", "quantity_price_2": "Quantity price 2", "quantity_price_3": "Quantity price 3", "quantity_price_4": "Quantity price 4", "quantity_price_5": "Quantity price 5", "quantity_price_type": "Quantity price type", "seller_sku": "Seller SKU", "will_ship_internationally": "Will ship internationally", "zshop_boldface": "Zshop boldface", "zshop_browse_path": "Zshop browse path", "zshop_category1": "Zshop category", "zshop_shipping_fee": "Zshop shipping fee", "zshop_storefront_feature": "Zshop storefront feature", "_snapshot_date": "Synced on", }, _AMZN + "suppressed_listings": { "_data_origin": "Data origin", "_report_document_id": "Report document ID", "_report_row_number": "Report row", "_report_type": "Report type", "_snapshot_date": "Synced on", "asin": "ASIN", "condition": "Condition", "issue_description": "Issue description", "product_name": "Product name", "reason": "Reason", "sku": "SKU", "status": "Status", "status_change_date": "Status change date", }, _AMZN + "mfn_returns": { "_data_origin": "Data origin", "_report_document_id": "Report document ID", "_report_row_number": "Report row", "_report_type": "Report type", "a_to_z_claim": "A-to-z claim", "amazon_rma_id": "Amazon RMA ID", "asin": "ASIN", "currency_code": "Currency", "in_policy": "In policy", "invoice_number": "Invoice number", "is_prime": "Prime order", "item_name": "Item name", "label_cost": "Label cost", "label_to_be_paid_by": "Label to be paid by", "label_type": "Label type", "merchant_rma_id": "Merchant RMA ID", "merchant_sku": "Merchant SKU", "order_amount": "Order amount", "order_date": "Order date", "order_id": "Order ID", "order_item_id": "Order item ID", "order_quantity": "Order quantity", "refunded_amount": "Refunded amount", "resolution": "Resolution", "return_carrier": "Return carrier", "return_delivery_date": "Return delivery date", "return_quantity": "Return quantity", "return_reason": "Return reason", "return_request_date": "Return request date", "return_request_status": "Return request status", "return_type": "Return type", "safet_action_reason": "SAFE-T action reason", "safet_claim_creation_time": "SAFE-T claim created", "safet_claim_id": "SAFE-T claim ID", "safet_claim_reimbursement_amount": "SAFE-T reimbursement", "safet_claim_state": "SAFE-T claim state", "tracking_id": "Tracking ID", "_period_start": "Report period start", "_period_end": "Report period end", }, _AMZN + "fee_discounts": { "_snapshot_date": "Synced on", "_report_document_id": "Report document ID", "_report_row_number": "Report row", "_data_origin": "Data origin", "_report_type": "Report type", }, _AMZN + "order_metrics": { "_data_origin": "Data origin", "_period_end": "Report period end", "_period_start": "Report period start", "_report_document_id": "Report document ID", "_report_row_number": "Report row", "_report_type": "Report type", "average_unit_price_amount": "Average unit price amount", "average_unit_price_currency_code": "Average unit price currency", "interval": "Interval", "order_count": "Order count", "order_item_count": "Order item count", "total_sales_amount": "Total sales amount", "total_sales_currency_code": "Total sales currency", "unit_count": "Unit count", }, _AMZN + "fba_inventory": { "_data_origin": "Data origin", "_report_document_id": "Report document ID", "_report_row_number": "Report row", "_report_type": "Report type", "_snapshot_date": "Synced on", "asin": "ASIN", "condition": "Condition", "fn_sku": "FNSKU", "inventory_details_fulfillable_quantity": "Fulfillable quantity", "inventory_details_future_supply_quantity_future_supply_buyable_quantity": "Future supply buyable", "inventory_details_future_supply_quantity_reserved_future_supply_quantity": "Future supply reserved", "inventory_details_inbound_receiving_quantity": "Inbound receiving quantity", "inventory_details_inbound_shipped_quantity": "Inbound shipped quantity", "inventory_details_inbound_working_quantity": "Inbound working quantity", "inventory_details_researching_quantity_researching_quantity_breakdown": "Researching breakdown", "inventory_details_researching_quantity_total_researching_quantity": "Researching quantity", "inventory_details_reserved_quantity_fc_processing_quantity": "Reserved FC processing", "inventory_details_reserved_quantity_pending_customer_order_quantity": "Reserved customer orders", "inventory_details_reserved_quantity_pending_transshipment_quantity": "Reserved transshipment", "inventory_details_reserved_quantity_total_reserved_quantity": "Reserved quantity", "inventory_details_unfulfillable_quantity_carrier_damaged_quantity": "Damaged by carrier", "inventory_details_unfulfillable_quantity_customer_damaged_quantity": "Damaged by customer", "inventory_details_unfulfillable_quantity_defective_quantity": "Defective units", "inventory_details_unfulfillable_quantity_distributor_damaged_quantity": "Damaged by distributor", "inventory_details_unfulfillable_quantity_expired_quantity": "Expired units", "inventory_details_unfulfillable_quantity_total_unfulfillable_quantity": "Unfulfillable quantity", "inventory_details_unfulfillable_quantity_warehouse_damaged_quantity": "Damaged in warehouse", "last_updated_time": "Last updated time", "product_name": "Product name", "seller_sku": "Seller SKU", "stores": "Stores", "total_quantity": "Total quantity", }, _AMZN + "listing_items": { "_data_origin": "Data origin", "_report_document_id": "Report document ID", "_report_row_number": "Report row", "_report_type": "Report type", "_snapshot_date": "Synced on", "attributes_age_range_description": "Age range description", "attributes_animal_theme": "Animal theme", "attributes_batteries_included": "Batteries included", "attributes_batteries_required": "Batteries required", "attributes_binding": "Binding", "attributes_bowl": "Bowl", "attributes_bracelet_form": "Bracelet form", "attributes_brand": "Brand", "attributes_bullet_point": "Bullet point", "attributes_candle_holder_form": "Candle holder form", "attributes_candle_type": "Candle type", "attributes_care_instructions": "Care instructions", "attributes_child_parent_sku_relationship": "Parent SKU relationship", "attributes_closure": "Closure", "attributes_collection": "Collection", "attributes_collection_item": "Collection item", "attributes_color": "Color", "attributes_compatible_devices": "Compatible devices", "attributes_condition_note": "Condition note", "attributes_condition_type": "Condition type", "attributes_container": "Container", "attributes_contains_liquid_contents": "Contains liquid contents", "attributes_country_as_labeled": "Country as labeled", "attributes_country_of_origin": "Country of origin", "attributes_country_string": "Country string", "attributes_cpsia_cautionary_statement": "CPSIA cautionary statement", "attributes_customer_package_type": "Customer package type", "attributes_department": "Department", "attributes_each_unit_count": "Each unit count", "attributes_externally_assigned_product_identifier": "External product identifier", "attributes_fabric_type": "Fabric type", "attributes_fabric_weight": "Fabric weight", "attributes_finish_type": "Finish type", "attributes_frame": "Frame", "attributes_fulfillment_availability": "Fulfillment availability attribute", "attributes_generic_keyword": "Generic keyword", "attributes_gift_options": "Gift options", "attributes_handle": "Handle", "attributes_import_designation": "Import designation", "attributes_included_components": "Included components", "attributes_includes_ac_adapter": "Includes AC adapter", "attributes_includes_rechargable_battery": "Includes rechargable battery", "attributes_indoor_outdoor_usage": "Indoor outdoor usage", "attributes_ink": "Ink", "attributes_is_adult_product": "Is adult product", "attributes_is_assembly_required": "Is assembly required", "attributes_is_autographed": "Is autographed", "attributes_is_customizable": "Is customizable", "attributes_is_dishwasher_safe": "Is dishwasher safe", "attributes_is_electric": "Is electric", "attributes_is_expiration_dated_product": "Is expiration dated product", "attributes_is_fragile": "Is fragile", "attributes_is_stain_resistant": "Is stain resistant", "attributes_is_this_product_subject_to_buyer_age_restrictions": "Buyer age restricted", "attributes_item_depth_width_height": "Item depth width height", "attributes_item_diameter": "Item diameter", "attributes_item_dimensions": "Item dimensions", "attributes_item_dimensions_fraction": "Item dimensions fraction", "attributes_item_display_dimensions": "Item display dimensions", "attributes_item_display_weight": "Item display weight", "attributes_item_form": "Item form", "attributes_item_length": "Item length", "attributes_item_length_width": "Item length width", "attributes_item_length_width_height": "Item length width height", "attributes_item_length_width_thickness": "Item length width thickness", "attributes_item_name": "Item name", "attributes_item_package_dimensions": "Item package dimensions", "attributes_item_package_quantity": "Item package quantity", "attributes_item_package_weight": "Item package weight", "attributes_item_shape": "Item shape", "attributes_item_thickness": "Item thickness", "attributes_item_type_keyword": "Item type keyword", "attributes_item_type_name": "Item type name", "attributes_item_volume": "Item volume", "attributes_item_weight": "Item weight", "attributes_item_width_height": "Item width height", "attributes_light_source": "Light source", "attributes_list_price": "List price", "attributes_main_product_image_locator": "Main image", "attributes_manufacturer": "Manufacturer", "attributes_manufacturer_minimum_age": "Manufacturer minimum age", "attributes_material": "Material", "attributes_material_composition": "Material composition", "attributes_material_feature": "Material feature", "attributes_max_order_quantity": "Max order quantity", "attributes_merchant_release_date": "Merchant release date", "attributes_merchant_shipping_group": "Merchant shipping group", "attributes_merchant_suggested_asin": "Merchant suggested ASIN", "attributes_metal_type": "Metal type", "attributes_model_name": "Model name", "attributes_model_number": "Model number", "attributes_mounting_type": "Mounting type", "attributes_number_of_boxes": "Number of boxes", "attributes_number_of_compartments": "Number of compartments", "attributes_number_of_items": "Number of items", "attributes_number_of_packs": "Number of packs", "attributes_number_of_pieces": "Number of pieces", "attributes_number_of_sets": "Number of sets", "attributes_occasion": "Occasion", "attributes_occasion_type": "Occasion type", "attributes_other_product_image_locator_1": "Other image 1", "attributes_other_product_image_locator_2": "Other image 2", "attributes_other_product_image_locator_3": "Other image 3", "attributes_other_product_image_locator_4": "Other image 4", "attributes_other_product_image_locator_5": "Other image 5", "attributes_other_product_image_locator_6": "Other image 6", "attributes_other_product_image_locator_7": "Other image 7", "attributes_other_product_image_locator_8": "Other image 8", "attributes_package_contains_sku": "Package contains SKU", "attributes_package_level": "Package level", "attributes_packaging_type": "Packaging type", "attributes_parentage_level": "Parentage level", "attributes_part_number": "Part number", "attributes_pattern": "Pattern", "attributes_pesticide_marking": "Pesticide marking", "attributes_plant_or_animal_product_type": "Plant or animal product type", "attributes_planter_form": "Planter form", "attributes_power_source_type": "Power source type", "attributes_product_description": "Product description", "attributes_product_expiration_type": "Product expiration type", "attributes_product_site_launch_date": "Product site launch date", "attributes_product_tax_code": "Product tax code", "attributes_purchasable_offer": "Purchasable offer", "attributes_recommended_browse_nodes": "Recommended browse nodes", "attributes_recommended_uses_for_product": "Recommended uses for product", "attributes_required_product_compliance_certificate": "Required compliance certificate", "attributes_room_type": "Room type", "attributes_rtip_safety_warning": "RTIP safety warning", "attributes_safety_warning": "Safety warning", "attributes_scent": "Scent", "attributes_seasons": "Seasons", "attributes_set_name": "Set name", "attributes_size": "Size", "attributes_size_map": "Size map", "attributes_skip_offer": "Skip offer", "attributes_special_feature": "Special feature", "attributes_specific_uses_for_product": "Specific uses for product", "attributes_specific_uses_keyword": "Specific uses keyword", "attributes_street_date": "Street date", "attributes_style": "Style", "attributes_supplemental_condition_information": "Supplemental condition info", "attributes_supplier_declared_dg_hz_regulation": "Dangerous goods regulation", "attributes_supplier_declared_has_product_identifier_exemption": "Product identifier exemption", "attributes_supplier_declared_material_regulation": "Material regulation", "attributes_swatch_product_image_locator": "Swatch image", "attributes_target_audience": "Target audience", "attributes_target_audience_keyword": "Target audience keyword", "attributes_target_gender": "Target gender", "attributes_theme": "Theme", "attributes_title_differentiation": "Title differentiation", "attributes_total_eaches": "Total eaches", "attributes_unit_count": "Unit count", "attributes_variation_theme": "Variation theme", "attributes_warranty_description": "Warranty description", "attributes_website_shipping_weight": "Website shipping weight", "attributes_wick_quantity": "Wick quantity", "fulfillment_availability": "Fulfillment availability", "issues": "Issues", "offers": "Offers", "sku": "SKU", "summaries": "Summaries", "attributes_package_size_name": "Package size name", "attributes_product_benefit": "Product benefit", }, _AMZN + "catalog_items": { "_data_origin": "Data origin", "_report_document_id": "Report document ID", "_report_row_number": "Report row", "_report_type": "Report type", "_snapshot_date": "Synced on", "asin": "ASIN", "attributes_accent_color": "Accent color", "attributes_adhesive_format": "Adhesive format", "attributes_adhesive_location": "Adhesive location", "attributes_adhesive_material": "Adhesive material", "attributes_adhesive_side_count": "Adhesive side count", "attributes_age_range_description": "Age range description", "attributes_animal_theme": "Animal theme", "attributes_art_craft_kit_type": "Art craft kit type", "attributes_assembly_instructions": "Assembly instructions", "attributes_assembly_instructions_description": "Assembly instructions detail", "attributes_band": "Band", "attributes_base": "Base", "attributes_base_type": "Base type", "attributes_batteries_included": "Batteries included", "attributes_batteries_required": "Batteries required", "attributes_bowl": "Bowl", "attributes_bracelet_form": "Bracelet form", "attributes_brand": "Brand", "attributes_brightness": "Brightness", "attributes_bullet_point": "Bullet point", "attributes_cable": "Cable", "attributes_candle_holder_form": "Candle holder form", "attributes_candle_type": "Candle type", "attributes_capacity": "Capacity", "attributes_care_instructions": "Care instructions", "attributes_chain_length": "Chain length", "attributes_chain_type": "Chain type", "attributes_clasp_type": "Clasp type", "attributes_closure": "Closure", "attributes_collection": "Collection", "attributes_collection_item": "Collection item", "attributes_color": "Color", "attributes_compatible_material": "Compatible material", "attributes_configuration": "Configuration", "attributes_container": "Container", "attributes_contains_liquid_contents": "Contains liquid contents", "attributes_corner_style": "Corner style", "attributes_cpsia_cautionary_statement": "CPSIA cautionary statement", "attributes_customer_package_type": "Customer package type", "attributes_department": "Department", "attributes_dispenser_core_diameter": "Dispenser core diameter", "attributes_embellishment_feature": "Embellishment feature", "attributes_externally_assigned_product_identifier": "External product identifier", "attributes_fabric_type": "Fabric type", "attributes_fc_shelf_life": "FC shelf life", "attributes_finish_type": "Finish type", "attributes_flower_count": "Flower count", "attributes_foil_thickness": "Foil thickness", "attributes_gem_birthstone_month": "Gem birthstone month", "attributes_gem_type": "Gem type", "attributes_ghs": "GHS", "attributes_gpsr_safety_attestation": "GPSR safety attestation", "attributes_handle": "Handle", "attributes_hardware_color": "Hardware color", "attributes_has_builtin_light": "Has builtin light", "attributes_has_crackle_wick": "Has crackle wick", "attributes_has_drainage": "Has drainage", "attributes_has_lid": "Has lid", "attributes_hazmat": "Hazmat", "attributes_included_components": "Included components", "attributes_indoor_outdoor_usage": "Indoor outdoor usage", "attributes_initial_character": "Initial character", "attributes_ink": "Ink", "attributes_inside": "Inside", "attributes_is_assembly_required": "Is assembly required", "attributes_is_customizable": "Is customizable", "attributes_is_dishwasher_safe": "Is dishwasher safe", "attributes_is_expiration_dated_product": "Is expiration dated product", "attributes_is_fragile": "Is fragile", "attributes_is_microwaveable": "Is microwaveable", "attributes_is_this_product_subject_to_buyer_age_restrictions": "Buyer age restricted", "attributes_item_depth_width_height": "Item depth width height", "attributes_item_diameter": "Item diameter", "attributes_item_dimensions": "Item dimensions", "attributes_item_dimensions_fraction": "Item dimensions fraction", "attributes_item_display_dimensions": "Item display dimensions", "attributes_item_display_weight": "Item display weight", "attributes_item_form": "Item form", "attributes_item_length": "Item length", "attributes_item_length_width": "Item length width", "attributes_item_length_width_height": "Item length width height", "attributes_item_length_width_thickness": "Item length width thickness", "attributes_item_name": "Item name", "attributes_item_package_dimensions": "Item package dimensions", "attributes_item_package_quantity": "Item package quantity", "attributes_item_package_weight": "Item package weight", "attributes_item_resistance": "Item resistance", "attributes_item_shape": "Item shape", "attributes_item_thickness": "Item thickness", "attributes_item_type_keyword": "Item type keyword", "attributes_item_type_name": "Item type name", "attributes_item_volume": "Item volume", "attributes_item_weight": "Item weight", "attributes_item_width": "Item width", "attributes_item_width_height": "Item width height", "attributes_legal_compliance_certifications": "Legal compliance certifications", "attributes_life_event": "Life event", "attributes_light_color": "Light color", "attributes_line_weight": "Line weight", "attributes_list_price": "List price", "attributes_lock_type": "Lock type", "attributes_manufacturer": "Manufacturer", "attributes_material": "Material", "attributes_material_feature": "Material feature", "attributes_material_type_free": "Material type free", "attributes_metal_finish": "Metal finish", "attributes_metal_stamp": "Metal stamp", "attributes_metal_type": "Metal type", "attributes_model_name": "Model name", "attributes_model_number": "Model number", "attributes_mounting_type": "Mounting type", "attributes_net_content_count": "Net content count", "attributes_net_content_weight": "Net content weight", "attributes_number_of_boxes": "Number of boxes", "attributes_number_of_compartments": "Number of compartments", "attributes_number_of_items": "Number of items", "attributes_number_of_levels": "Number of levels", "attributes_number_of_packs": "Number of packs", "attributes_number_of_pieces": "Number of pieces", "attributes_number_of_sets": "Number of sets", "attributes_numeric_theme": "Numeric theme", "attributes_occasion": "Occasion", "attributes_occasion_type": "Occasion type", "attributes_opening_mechanism": "Opening mechanism", "attributes_operation_mode": "Operation mode", "attributes_package_level": "Package level", "attributes_package_size_name": "Package size name", "attributes_packaging_type": "Packaging type", "attributes_paint_type": "Paint type", "attributes_paper_finish": "Paper finish", "attributes_part_number": "Part number", "attributes_pattern": "Pattern", "attributes_pesticide_marking": "Pesticide marking", "attributes_plant_or_animal_product_type": "Plant or animal product type", "attributes_plant_style": "Plant style", "attributes_planter_form": "Planter form", "attributes_power_source_type": "Power source type", "attributes_primary_stone": "Primary stone", "attributes_product_description": "Product description", "attributes_product_expiration_type": "Product expiration type", "attributes_product_site_launch_date": "Product site launch date", "attributes_recommended_uses_for_product": "Recommended uses for product", "attributes_required_product_compliance_certificate": "Required compliance certificate", "attributes_reusability": "Reusability", "attributes_ring": "Ring", "attributes_roll": "Roll", "attributes_room_type": "Room type", "attributes_safety_data_sheet_url": "Safety data sheet URL", "attributes_safety_warning": "Safety warning", "attributes_scent": "Scent", "attributes_seasons": "Seasons", "attributes_set_name": "Set name", "attributes_setting_type": "Setting type", "attributes_sheet_count": "Sheet count", "attributes_size": "Size", "attributes_size_per_pearl": "Size per pearl", "attributes_skip_offer": "Skip offer", "attributes_special_feature": "Special feature", "attributes_specific_uses_for_product": "Specific uses for product", "attributes_specification_met": "Specification met", "attributes_sport_type": "Sport type", "attributes_stone": "Stone", "attributes_storage_volume": "Storage volume", "attributes_street_date": "Street date", "attributes_style": "Style", "attributes_subject_character": "Subject character", "attributes_supplemental_condition_information": "Supplemental condition info", "attributes_supplier_declared_dg_hz_regulation": "Dangerous goods regulation", "attributes_supplier_declared_has_product_identifier_exemption": "Product identifier exemption", "attributes_surface_recommendation": "Surface recommendation", "attributes_tank_volume": "Tank volume", "attributes_target_audience": "Target audience", "attributes_target_audience_keyword": "Target audience keyword", "attributes_target_gender": "Target gender", "attributes_tensile_strength": "Tensile strength", "attributes_theme": "Theme", "attributes_tip_count": "Tip count", "attributes_title_differentiation": "Title differentiation", "attributes_total_diamond_weight": "Total diamond weight", "attributes_total_eaches": "Total eaches", "attributes_total_gem_weight": "Total gem weight", "attributes_tree_type": "Tree type", "attributes_unit_count": "Unit count", "attributes_unspsc_code": "UNSPSC code", "attributes_variation_theme": "Variation theme", "attributes_vivarium_type": "Vivarium type", "attributes_warranty_description": "Warranty description", "attributes_water_resistance_level": "Water resistance level", "attributes_weave_type": "Weave type", "attributes_wick_quantity": "Wick quantity", "attributes_wire_diameter": "Wire diameter", "dimensions": "Dimensions", "sales_ranks": "Sales ranks", "summaries": "Summaries", "parent_asin": "Parent ASIN", "parent_asin_source": "Parent ASIN source", "relationships": "Relationships", }, _AMZN + "review_topics": { "_data_origin": "Data origin", "_report_document_id": "Report document ID", "_report_row_number": "Report row", "_report_type": "Report type", "_snapshot_date": "Synced on", "asin": "ASIN", "marketplace_id": "Marketplace ID", "sentiment": "Sentiment", "topic": "Topic", "item_name": "Product name", "country_code": "Country", "date_range_start_date": "Review period start", "date_range_end_date": "Review period end", "asin_metrics_number_of_mentions": "ASIN mentions", "asin_metrics_occurrence_percentage": "ASIN occurrence", "asin_metrics_star_rating_impact": "ASIN star rating impact", "parent_asin_metrics_number_of_mentions": "Parent ASIN mentions", "parent_asin_metrics_occurrence_percentage": "Parent ASIN occurrence", "parent_asin_metrics_star_rating_impact": "Parent ASIN star rating impact", "browse_node_metrics_occurrence_percentage_all_products": "Browse node occurrence", "browse_node_metrics_star_rating_impact_all_products": "Browse node star rating impact", "child_asin_metrics_most_mentions_asin": "Child ASIN with most mentions", "child_asin_metrics_most_mentions_number_of_mentions": "Most child ASIN mentions", "child_asin_metrics_least_mentions_asin": "Child ASIN with least mentions", "child_asin_metrics_least_mentions_number_of_mentions": "Least child ASIN mentions", "review_snippet_1": "Review snippet 1", "review_snippet_2": "Review snippet 2", "review_snippet_3": "Review snippet 3", "review_snippets": "Review snippets", "subtopics": "Subtopics", "sort_by": "Sorted by", "browse_node_id": "Browse node ID", "browse_node_name": "Category", "subtopic_1": "Subtopic 1", "subtopic_1_number_of_mentions": "Subtopic 1 mentions", "subtopic_1_occurrence_percentage": "Subtopic 1 occurrence", "subtopic_1_review_snippet_1": "First subtopic snippet 1", "subtopic_1_review_snippet_2": "First subtopic snippet 2", "subtopic_1_review_snippet_3": "First subtopic snippet 3", "subtopic_2": "Subtopic 2", "subtopic_2_number_of_mentions": "Subtopic 2 mentions", "subtopic_2_occurrence_percentage": "Subtopic 2 occurrence", "subtopic_2_review_snippet_1": "Second subtopic snippet 1", "subtopic_2_review_snippet_2": "Second subtopic snippet 2", "subtopic_2_review_snippet_3": "Second subtopic snippet 3", "subtopic_3": "Subtopic 3", "subtopic_3_number_of_mentions": "Subtopic 3 mentions", "subtopic_3_occurrence_percentage": "Subtopic 3 occurrence", "subtopic_3_review_snippet_1": "Third subtopic snippet 1", "subtopic_3_review_snippet_2": "Third subtopic snippet 2", "subtopic_3_review_snippet_3": "Third subtopic snippet 3", "subtopic_4": "Subtopic 4", "subtopic_4_number_of_mentions": "Subtopic 4 mentions", "subtopic_4_occurrence_percentage": "Subtopic 4 occurrence", "subtopic_4_review_snippet_1": "Fourth subtopic snippet 1", "subtopic_4_review_snippet_2": "Fourth subtopic snippet 2", "subtopic_4_review_snippet_3": "Fourth subtopic snippet 3", "subtopic_5": "Subtopic 5", "subtopic_5_number_of_mentions": "Subtopic 5 mentions", "subtopic_5_occurrence_percentage": "Subtopic 5 occurrence", "subtopic_5_review_snippet_1": "Fifth subtopic snippet 1", "subtopic_5_review_snippet_2": "Fifth subtopic snippet 2", "subtopic_5_review_snippet_3": "Fifth subtopic snippet 3", }, _AMZN + "review_trends": { "_data_origin": "Data origin", "_report_document_id": "Report document ID", "_report_row_number": "Report row", "_report_type": "Report type", "_snapshot_date": "Synced on", "asin": "ASIN", "marketplace_id": "Marketplace ID", "sentiment": "Sentiment", "topic": "Topic", "month": "Month", "date_range_start_date": "Review period start", "date_range_end_date": "Review period end", "asin_metrics_occurrence_percentage": "ASIN occurrence", "parent_asin_metrics_occurrence_percentage": "Parent ASIN occurrence", "browse_node_metrics_occurrence_percentage_all_products": "Browse node occurrence", }, _AMZN + "browse_node_review_topics": { "_data_origin": "Data origin", "_report_document_id": "Report document ID", "_report_row_number": "Report row", "_report_type": "Report type", "_snapshot_date": "Synced on", "browse_node_id": "Browse node ID", "browse_node_name": "Category", "marketplace_id": "Marketplace ID", "sort_by": "Sorted by", "sentiment": "Sentiment", "topic": "Topic", "date_range_start_date": "Review period start", "date_range_end_date": "Review period end", "browse_node_metrics_occurrence_percentage_all_products": "Category occurrence", "browse_node_metrics_occurrence_percentage_top_twenty_five_percent_products": "Top 25 percent occurrence", "browse_node_metrics_star_rating_impact_all_products": "Category star rating impact", "browse_node_metrics_star_rating_impact_top_twenty_five_percent_products": "Top 25 percent star rating impact", "review_snippet_1": "Review snippet 1", "review_snippet_2": "Review snippet 2", "review_snippet_3": "Review snippet 3", "subtopic_1": "Subtopic 1", "subtopic_1_occurrence_percentage": "Subtopic 1 occurrence", "subtopic_1_review_snippet_1": "First subtopic snippet 1", "subtopic_1_review_snippet_2": "First subtopic snippet 2", "subtopic_1_review_snippet_3": "First subtopic snippet 3", "subtopic_2": "Subtopic 2", "subtopic_2_occurrence_percentage": "Subtopic 2 occurrence", "subtopic_2_review_snippet_1": "Second subtopic snippet 1", "subtopic_2_review_snippet_2": "Second subtopic snippet 2", "subtopic_2_review_snippet_3": "Second subtopic snippet 3", "subtopic_3": "Subtopic 3", "subtopic_3_occurrence_percentage": "Subtopic 3 occurrence", "subtopic_3_review_snippet_1": "Third subtopic snippet 1", "subtopic_3_review_snippet_2": "Third subtopic snippet 2", "subtopic_3_review_snippet_3": "Third subtopic snippet 3", "subtopic_4": "Subtopic 4", "subtopic_4_occurrence_percentage": "Subtopic 4 occurrence", "subtopic_4_review_snippet_1": "Fourth subtopic snippet 1", "subtopic_4_review_snippet_2": "Fourth subtopic snippet 2", "subtopic_4_review_snippet_3": "Fourth subtopic snippet 3", "subtopic_5": "Subtopic 5", "subtopic_5_occurrence_percentage": "Subtopic 5 occurrence", "subtopic_5_review_snippet_1": "Fifth subtopic snippet 1", "subtopic_5_review_snippet_2": "Fifth subtopic snippet 2", "subtopic_5_review_snippet_3": "Fifth subtopic snippet 3", "our_asins": "Our ASINs", "our_asin_count": "Our ASIN count", }, _AMZN + "replenishment": { "_data_origin": "Data origin", "_report_document_id": "Report document ID", "_report_row_number": "Report row", "_report_type": "Report type", "_snapshot_date": "Synced on", "active_subscriptions": "Active subscriptions", "asin": "ASIN", "brand_name": "Brand name", "coupons_revenue_penetration": "Coupon revenue penetration", "currency_code": "Currency", "established_subscriber_life_time_value_from_otp": "Established subscriber LTV (one time)", "established_subscriber_life_time_value_from_sns": "Established subscriber LTV (S&S)", "fulfillment_channel_type": "Fulfillment channel type", "growing_subscriber_life_time_value_from_otp": "Growing subscriber LTV (one time)", "growing_subscriber_life_time_value_from_sns": "Growing subscriber LTV (S&S)", "lost_revenue_due_to_oos": "Revenue lost to stockouts", "lost_subscriber_life_time_value_from_otp": "Lost subscriber LTV (one time)", "lost_subscriber_life_time_value_from_sns": "Lost subscriber LTV (S&S)", "marketplace_id": "Marketplace ID", "metric_id": "Metric ID", "metric_scope": "Metric scope", "non_subscriber_average_reorders": "Non subscriber average reorders", "non_subscriber_average_revenue": "Non subscriber average revenue", "non_subscriber_life_time_value_from_otp": "Non subscriber LTV (one time)", "not_delivered_due_to_oos": "Not delivered due to stockouts", "program_type": "Program type", "revenue_from_active_subscriptions_with_single_delivery": "Revenue from single delivery actives", "revenue_from_cancelled_subscriptions_after_single_delivery": "Revenue lost after single delivery", "revenue_penetration": "Revenue penetration", "revenue_penetration_for0_percent_seller_funding": "Revenue penetration at 0% funding", "revenue_penetration_for10_percent_seller_funding": "Revenue penetration at 10% funding", "revenue_penetration_for5_percent_seller_funding": "Revenue penetration at 5% funding", "share_of_coupon_subscriptions": "Share of coupon subscriptions", "shipped_subscription_units": "Shipped subscription units", "signup_conversion_for0_percent_seller_funding": "Signup conversion at 0% funding", "signup_conversion_for10_percent_seller_funding": "Signup conversion at 10% funding", "signup_conversion_for5_percent_seller_funding": "Signup conversion at 5% funding", "sku": "SKU", "subscriber_average_reorders": "Subscriber average reorders", "subscriber_average_revenue": "Subscriber average revenue", "subscriber_retention_for30_days": "Subscriber retention (30 days)", "subscriber_retention_for90_days": "Subscriber retention (90 days)", "time_interval_end_date": "Interval end", "time_interval_start_date": "Interval start", "time_period_type": "Time period type", "total_subscriptions_revenue": "Total subscriptions revenue", }, } # A history table carries its source's labels plus its version columns. AMAZON_LABELS.update({_AMZN + _t + "_history": {**AMAZON_LABELS.get(_AMZN + _t, {}), **_AMAZON_HISTORY_LABELS} for _t in AMAZON_HISTORY_SOURCES}) #: S78-T01: the columns each Amazon table opens on, `{ut_key: (column, ...)}`, beside the ones #: `amazon_relational._fields_for` always shows (the pinned column, the product columns, the S67-T30 #: lookups and the generated link fields). Together they are at most 12 per table; every other #: field stays listed in Fields with `default: False`. AMAZON_DEFAULT_COLUMNS = { _AMZN + "orders": ("purchase_date", "order_status", "fulfillment_channel", "product_name", "asin", "quantity", "item_price", "currency"), _AMZN + "order_items": ("purchase_date", "order_status", "item_status", "product_name", "asin", "quantity", "item_price"), _AMZN + "listings": ("item_name", "price", "quantity", "status", "fulfillment_channel", "open_date", "item_condition", "product_id", "listing_id"), _AMZN + "settlements": ("posted_date", "transaction_type", "amount_type", "amount_description", "amount", "quantity_purchased"), _AMZN + "inventory": ("inventory_source", "_snapshot_date"), _AMZN + "pricing": ("sales_by_asin_units_ordered", "sales_by_asin_ordered_product_sales_amount", "traffic_by_asin_sessions", "traffic_by_asin_page_views", "traffic_by_asin_unit_session_percentage", "traffic_by_asin_buy_box_percentage", "sales_by_asin_total_order_items"), _AMZN + "brand_analytics": ("search_frequency_rank", "department_name", "clicked_asin", "clicked_item_name", "click_share_rank", "click_share", "conversion_share"), _AMZN + "economics": ("start_date", "end_date", "sales_net_units_sold", "sales_ordered_product_sales_amount", "sales_net_product_sales_amount", "fees_total_amount", "net_proceeds_total_amount"), _AMZN + "transactions": ("posted_date", "transaction_type", "transaction_status", "description", "total_amount"), _AMZN + "fba_fee_estimates": ("product_name", "your_price", "estimated_fee_total", "estimated_referral_fee_per_unit", "expected_fulfillment_fee_per_unit", "product_size_tier", "_snapshot_date"), _AMZN + "referral_fees": ("item_name", "price", "estimated_referral_fee_per_item", "_snapshot_date"), _AMZN + "storage_fees": ("month", "product_name", "fulfillment_center", "product_size_tier", "average_quantity_on_hand", "estimated_total_item_volume", "estimated_monthly_storage_fee", "currency"), _AMZN + "search_query_performance": ("start_date", "end_date", "search_query_data_search_query_volume", "impression_data_asin_impression_count", "click_data_asin_click_count", "purchase_data_asin_purchase_count", "purchase_data_asin_purchase_share"), _AMZN + "long_term_storage_fees": ("product_name", "snapshot_date", "surcharge_age_tier", "qty_charged", "amount_charged", "currency", "condition"), _AMZN + "storage_overage_fees": ("_period_start",), _AMZN + "reimbursements": ("approval_date", "product_name", "reason", "quantity_reimbursed_total", "amount_total"), _AMZN + "fba_customer_returns": ("return_date", "product_name", "quantity", "reason", "detailed_disposition"), _AMZN + "replacements": ("shipment_date", "original_amazon_order_id", "quantity", "replacement_reason_code", "fulfillment_center_id"), _AMZN + "fba_shipped_sales": ("shipment_date", "quantity", "item_price_per_unit", "currency", "ship_state"), _AMZN + "fba_shipment_promotions": ("shipment_date", "item_promotion_id", "description", "item_promotion_discount", "currency", "shipment_id", "promotion_rule_value"), _AMZN + "inventory_ledger_detail": ("date", "title", "event_type", "quantity", "disposition", "fulfillment_center", "reason"), _AMZN + "inventory_planning": ("product_name", "available", "inbound_quantity", "units_shipped_t30", "days_of_supply", "recommended_action", "recommended_ship_in_quantity"), _AMZN + "manage_inventory": ("product_name", "afn_fulfillable_quantity", "afn_inbound_shipped_quantity", "afn_reserved_quantity", "afn_unsellable_quantity", "afn_total_quantity", "your_price"), _AMZN + "reserved_inventory": ("product_name", "reserved_qty", "reserved_customerorders", "reserved_fc_processing", "reserved_staging", "_snapshot_date"), _AMZN + "restock_recommendations": ("product_name", "available", "inbound", "units_sold_last_30_days", "days_of_supply_at_amazon_fulfillment_network", "recommended_replenishment_qty", "recommended_ship_date"), _AMZN + "stranded_inventory": ("product_name", "date_stranded", "stranded_reason", "primary_action", "fulfillable_qty", "unfulfillable_qty", "your_price"), _AMZN + "inbound_noncompliance": ("fba_shipment_id", "issue_reported_date", "product_name", "problem_type", "problem_quantity", "fee_type", "fee_total"), _AMZN + "inventory_expiration_dates": ("_snapshot_date",), _AMZN + "recommended_removals": ("product_name", "sellable_quantity", "unsellable_quantity", "sellable_removal_quantity", "condition", "snapshot_date"), _AMZN + "removal_orders": ("request_date", "order_type", "order_status", "requested_quantity", "shipped_quantity", "disposition", "removal_fee"), _AMZN + "removal_shipments": ("request_date", "shipment_date", "removal_order_type", "shipped_quantity", "carrier", "tracking_number", "disposition"), _AMZN + "subscribe_save_forecast": ("_snapshot_date",), _AMZN + "subscribe_save_performance": ("product_name", "offer_state", "week_1_start_date", "sns_units_shipped_week_1", "sns_sale_price_week_1", "sns_discount_week_1"), _AMZN + "remote_fulfillment_eligibility": ("managing_remote_fulfillment", "_snapshot_date"), _AMZN + "search_catalog_performance": ("start_date", "end_date", "impression_data_impression_count", "click_data_click_count", "click_data_click_rate", "cart_add_data_cart_add_count", "purchase_data_purchase_count", "purchase_data_conversion_rate"), _AMZN + "market_basket": ("start_date", "end_date", "purchased_with_asin", "purchased_with_rank", "combination_pct"), _AMZN + "promotion_performance": ("_period_start",), _AMZN + "coupon_performance": ("_period_start",), _AMZN + "account_health": ("account_health_rating_ahr_score", "account_health_rating_ahr_status", "order_defect_rate_afn_rate", "order_defect_rate_afn_status", "late_shipment_rate_rate", "pre_fulfillment_cancellation_rate_rate", "valid_tracking_rate_rate", "on_time_delivery_rate_rate", "invoice_defect_rate_rate", "policy_violation_warnings_warnings_count", "_snapshot_date"), _AMZN + "inactive_listings": ("item_name", "price", "quantity", "open_date", "fulfillment_channel", "item_condition", "_snapshot_date"), _AMZN + "cancelled_listings": ("item_name", "price", "quantity", "item_condition", "_snapshot_date"), _AMZN + "suppressed_listings": ("product_name", "status", "reason", "issue_description", "status_change_date", "condition"), _AMZN + "mfn_returns": ("item_name", "return_request_date", "return_reason", "return_quantity", "refunded_amount"), _AMZN + "fee_discounts": ("_snapshot_date",), _AMZN + "order_metrics": ("_period_start", "order_count", "order_item_count", "unit_count", "total_sales_amount", "average_unit_price_amount", "total_sales_currency_code"), _AMZN + "fba_inventory": ("product_name", "condition", "total_quantity", "inventory_details_fulfillable_quantity", "inventory_details_reserved_quantity_total_reserved_quantity", "inventory_details_unfulfillable_quantity_total_unfulfillable_quantity", "last_updated_time"), _AMZN + "listing_items": ("attributes_item_name", "attributes_brand", "attributes_list_price", "attributes_color", "attributes_size", "issues", "backend_keywords", "_snapshot_date"), _AMZN + "catalog_items": ("parent_asin", "attributes_item_name", "attributes_brand", "attributes_color", "attributes_size", "attributes_item_type_keyword", "attributes_list_price", "sales_ranks", "_snapshot_date"), _AMZN + "replenishment": ("asin", "time_interval_start_date", "time_interval_end_date", "active_subscriptions", "shipped_subscription_units", "total_subscriptions_revenue", "revenue_penetration", "subscriber_retention_for30_days", "program_type"), _AMZN + "review_topics": ("sort_by", "sentiment", "topic", "browse_node_name", "asin_metrics_number_of_mentions", "asin_metrics_occurrence_percentage", "asin_metrics_star_rating_impact", "parent_asin_metrics_number_of_mentions", "browse_node_metrics_occurrence_percentage_all_products", "review_snippet_1", "review_snippet_2", "review_snippet_3"), _AMZN + "review_trends": ("sentiment", "topic", "month", "asin_metrics_occurrence_percentage", "date_range_start_date", "date_range_end_date"), _AMZN + "browse_node_review_topics": ("sort_by", "sentiment", "topic", "browse_node_metrics_occurrence_percentage_all_products", "browse_node_metrics_star_rating_impact_all_products", "our_asin_count", "review_snippet_1"), _AMZN + "sku_keywords": ("sku", "asin", "month", "search_query", "impressions", "clicks", "cart_adds", "purchases", "backend_keywords", "source_basis"), _AMZN + "keyword_ranks": ("keyword", "date", "organic_rank", "sponsored_rank", "sponsored_rank_basis", "sku", "asin"), _AMZN + "competitor_snapshots": ("asin", "snapshot_date", "brand", "title", "product_type", "price", "currency", "prime", "offers", "sales_rank", "rank_cat"), _AMZN + "competitor_images": ("asin", "variant", "link", "sha256", "width", "height", "snapshot_date"), } # A history table opens on its source's columns plus the validity dates. An undeclared source stays undeclared. AMAZON_DEFAULT_COLUMNS.update({_AMZN + _t + "_history": (*AMAZON_DEFAULT_COLUMNS[_AMZN + _t], "valid_from", "valid_to") for _t in AMAZON_HISTORY_SOURCES if _AMZN + _t in AMAZON_DEFAULT_COLUMNS}) # ═════════════════════════════════════════════════════════════════════════════════════════════ # META ADS β€” transcribed from `aios-web/api/meta_relational.py` # ═════════════════════════════════════════════════════════════════════════════════════════════ #: ⭐ `native` IS THE GRAPH API NODE NAME β€” `AdAccount`, `Campaign`, `AdSet`, `Ad`, `AdCreative`, #: `AdsInsights`. Meta's own vocabulary for the objects `meta_store` mirrors. #: β›”β›” **`identity` WAS DECLARED HERE FOR THE FIRST TIME, NOT TRANSCRIBED.** It is honest rather #: than invented: `meta_store._read` keys every row on the object's own Graph `id`, so `("id",)` is #: what the five object tables are already identified by in practice. `ut_meta_insights` has no #: single `id` β€” the daily insights grain is one row per ad per day β€” so it takes #: `("ad_id", "date_start")`. #: ⭐ W53-T37 AMENDMENT, 2026-09-05 β€” TWO SENTENCES HERE WERE TRUE FOR ONE TICKET AND ARE NOW #: FALSE, so they are corrected rather than left to be falsified in one grep. #: * *"`meta_relational` has NO `IDENTITY` dict at all"* β€” it has one now, DERIVED FROM THIS #: DECLARATION, so the value is no longer unverifiable against the live module; what is true #: instead is that nothing in `meta_relational` READS it yet (`_read` keys rows on the Graph #: `id` inline), so it is reachable by name for the caller that will ask. #: * *"Meta's `LINKS` is a SCALAR 3-tuple per key today and its generated edge key is #: `f"{target}_link"`"* β€” W53-T37 made it a SEQUENCE keyed by `edges_for`, which is what #: retired the collision described below. It is no longer latent, it is fixed. #: The sequence-plus-source-column shape is still the reason this file holds links the way it #: does: two edges to one target collide on both key and label the moment a scalar spelling #: declares them, and Meta was one declaration away from that. _META = "ut_meta_" META_TABLES = ( ConnectorTableSpec( key=_META + "ad_accounts", native="AdAccount", source="meta_ad_accounts", label="Meta ad accounts", pinned="name", identity=("id",), links=(), # the hierarchy's HEAD: account -> campaign -> ad set -> ad ), ConnectorTableSpec( key=_META + "campaigns", native="Campaign", source="meta_campaigns", label="Meta campaigns", pinned="name", identity=("id",), links=( ("account_id", _META + "ad_accounts", "account_id", "many_to_one"), ), ), ConnectorTableSpec( key=_META + "adsets", native="AdSet", source="meta_adsets", label="Meta ad sets", pinned="name", identity=("id",), links=( ("campaign_id", _META + "campaigns", "id", "many_to_one"), ), ), ConnectorTableSpec( key=_META + "ads", native="Ad", source="meta_ads", label="Meta ads", pinned="name", identity=("id",), links=( ("adset_id", _META + "adsets", "id", "many_to_one"), ), ), ConnectorTableSpec( key=_META + "creatives", native="AdCreative", source="meta_creatives", label="Meta creatives", pinned="name", identity=("id",), # a creative is referenced BY an ad rather than naming its parent, so it declares no link # of its own β€” the same posture as `ut_amzn_listings`. links=(), ), ConnectorTableSpec( key=_META + "insights", native="AdsInsights", source="meta_insights_daily", label="Meta insights (daily)", pinned="date_start", identity=("ad_id", "date_start"), links=( ("ad_id", _META + "ads", "id", "many_to_one"), ), ), ) #: S78-T02 (C1): the rail order of the Amazon groups. β›” Shown to a person: sentence case, no dash. AMAZON_GROUP_ORDER = ("Sales", "Fees and payouts", "Inventory", "Listings", "Advertising") #: S78-T02 (C1): `{ut_key: group}` for every Amazon spec. A literal beside the specs, because #: `ConnectorTableSpec` stays exactly seven fields. `verify_connectors` asserts full coverage. AMAZON_GROUPS = { **{_AMZN + t: "Sales" for t in ( "orders", "order_items", "order_metrics", "fba_shipped_sales", "fba_shipment_promotions", "fba_customer_returns", "replacements", "mfn_returns", "subscribe_save_performance", "account_health")}, **{_AMZN + t: "Fees and payouts" for t in ( "settlements", "economics", "transactions", "fba_fee_estimates", "referral_fees", "storage_fees", "long_term_storage_fees", "storage_overage_fees", "reimbursements", "fee_discounts", "fee_estimates_api")}, **{_AMZN + t: "Inventory" for t in ( "inventory", "inventory_ledger_detail", "inventory_planning", "manage_inventory", "reserved_inventory", "restock_recommendations", "stranded_inventory", "inbound_noncompliance", "inventory_expiration_dates", "recommended_removals", "removal_orders", "removal_shipments", "fba_inventory", "inbound_shipments", "outbound_fulfillment", "replenishment", "remote_fulfillment_eligibility", "out_of_stock_mfn", "subscribe_save_forecast")}, **{_AMZN + t: "Listings" for t in ( "listings", "pricing", "inactive_listings", "cancelled_listings", "suppressed_listings", "listing_defects", "sold_listings", "listing_items", "catalog_items", "b2b_recommended", "b2b_not_yet_on_amazon", "geo_opportunities", "b2b_quotes", "review_topics", "review_trends", "browse_node_review_topics")}, **{_AMZN + t: "Advertising" for t in ( "brand_analytics", "search_query_performance", "search_catalog_performance", "market_basket", "repeat_purchase", "promotion_performance", "coupon_performance", "sku_keywords", "keyword_ranks", "competitor_snapshots", "competitor_images")}, } AMAZON_GROUPS.update({_AMZN + _t + "_history": AMAZON_GROUPS[_AMZN + _t] for _t in AMAZON_HISTORY_SOURCES}) # ═════════════════════════════════════════════════════════════════════════════════════════════ # AMAZON ADS: S79-T12 (contract C6). Sponsored Products, Brands and Display on Reporting v1. # ═════════════════════════════════════════════════════════════════════════════════════════════ #: The connector key C1 names. It is its own registration, not rows inside `"amazon"`: the Amazon #: specs are held to the SP-API schema artifact (`amazon_schema.TABLE_SPECS`) by verify_amazon and #: verify_connectors, and an Ads report is not an SP-API report. The mirror is still the Amazon one. AMAZON_ADS_CONNECTOR = "amazon_ads" _ADS = "ut_amzn_ads_" AMAZON_ADS_AD_TYPES = ("sp", "sb", "sd") AMAZON_ADS_REPORTS = ("campaigns", "targeting", "advertised_products", "search_terms") _ADS_PRODUCT = {"sp": "Sponsored Products", "sb": "Sponsored Brands", "sd": "Sponsored Display"} _ADS_REPORT_LABEL = {"campaigns": "campaigns", "targeting": "targeting", "advertised_products": "advertised products", "search_terms": "search terms"} #: `native` is the Reporting v1 report group that fills the table (`amazon_ads_schema.REPORT_GROUPS`). #: v1 has no report types. SD search terms has no group, because v1 does not offer it. _ADS_NATIVE = { "sp": {"campaigns": "campaigns", "targeting": "targeting", "advertised_products": "advertised_products", "search_terms": "search_terms"}, "sb": {"campaigns": "campaigns", "targeting": "targeting", "advertised_products": "advertised_products_sb", "search_terms": "search_terms"}, "sd": {"campaigns": "campaigns", "targeting": "targeting", "advertised_products": "advertised_products", "search_terms": "not_offered"}, } _ADS_PINNED = {"campaigns": "campaign_name", "targeting": "targeting", "advertised_products": "asin", "search_terms": "search_term"} _ADS_IDENTITY = { "campaigns": ("date", "campaign_id"), "targeting": ("date", "campaign_id", "ad_group_id", "target_id"), "advertised_products": ("date", "campaign_id", "ad_group_id", "ad_id", "asin"), "search_terms": ("date", "campaign_id", "ad_group_id", "target_id", "search_term"), } #: One spec per ad type and report. No links: every table is a daily grain, so a campaign id #: names many campaign rows and a many_to_one link would be false. AMAZON_ADS_TABLES = tuple( ConnectorTableSpec( key=f"{_ADS}{ad_type}_{report}", native=_ADS_NATIVE[ad_type][report], source=f"amzn_ads_{ad_type}_{report}", label=f"{_ADS_PRODUCT[ad_type]} {_ADS_REPORT_LABEL[report]}", pinned=_ADS_PINNED[report], identity=_ADS_IDENTITY[report], links=(), ) for ad_type in AMAZON_ADS_AD_TYPES for report in AMAZON_ADS_REPORTS) #: Every Ads table sits in the Amazon "Advertising" rail group. Kept apart from `AMAZON_GROUPS`, #: which verify_connectors holds equal to the `"amazon"` registration. AMAZON_ADS_GROUPS = {spec.key: "Advertising" for spec in AMAZON_ADS_TABLES} #: Days the first sync reaches back: Reporting v1 keeps 24 months of daily data, and standing #: rule 1 takes all of it. AMAZON_ADS_BACKFILL_DAYS = {spec.key: 730 for spec in AMAZON_ADS_TABLES} #: Standing rule 1: the throughput limit that cannot be removed, with cause and fix. On screen. AMAZON_ADS_THROUGHPUT = ( "Amazon Ads runs one report at a time for each Loopable app login (its client ID) and about " "100 reports a day, shared by every advertiser on that login. Sponsored Products, Brands and " "Display need 5 reports for each refresh, and one report can take up to 3 hours, so one day of " "refresh may not finish in a day. Loopable runs the reports one at a time and keeps every day " "it already has. If the refresh falls behind, ask Amazon Ads support to raise the report limit " "for this client ID.") #: On screen: the attribution window Amazon applies to Sponsored Products seller metrics. AMAZON_ADS_SP_ATTRIBUTION = ("Sponsored Products sales, orders and units count purchases within 7 " "days of a click, Amazon's default for sellers.") #: Standing rule 1: the report v1 does not offer, with cause and fix. On screen. AMAZON_ADS_NOT_OFFERED = { _ADS + "sd_search_terms": ( "Amazon Reporting v1 offers no search term report for Sponsored Display, because Display " "ads target audiences and products, not shopper searches. This table stays empty. To see " "what a Display campaign matched, open Sponsored Display targeting."), } def amazon_ads_description(key): """The Data page description of one Ads table, or None off Ads. Never raises.""" try: spec = SPECS.get(AMAZON_ADS_CONNECTOR, {}).get(str(key or "")) except Exception: # noqa: BLE001 return None if spec is None: return None unoffered = AMAZON_ADS_NOT_OFFERED.get(spec.key) if unoffered: return f"{unoffered} {AMAZON_ADS_THROUGHPUT}" days = AMAZON_ADS_BACKFILL_DAYS[spec.key] attribution = AMAZON_ADS_SP_ATTRIBUTION + " " if spec.key.startswith(_ADS + "sp_") else "" return (f"{spec.label} by day, from Amazon Ads Reporting v1. {attribution}History is kept from " f"the day you connect, and the first sync reaches back {days} days, the longest Amazon " f"keeps. {AMAZON_ADS_THROUGHPUT}") def table_group(key): """The rail group of one Amazon or Amazon Ads table, or None off Amazon. Never raises.""" try: key = str(key or "") return AMAZON_GROUPS.get(key) or AMAZON_ADS_GROUPS.get(key) except Exception: # noqa: BLE001 return None for _amazon_table in AMAZON_TABLES: AMAZON_FIELDS[_amazon_table.key] = (*AMAZON_FIELDS.get(_amazon_table.key, ()), { "name": "store", "type": "VARCHAR", "label": "Store", "source": "keychain.label", }) register("amazon", AMAZON_TABLES, mirror=ConnectorMirrorSpec(tuple(s.source for s in AMAZON_TABLES if not s.native.startswith("derived:")) + ("amzn_apify_rank_observations",) # The Ads tables live in this mirror, so it saves and restores them. + tuple(s.source for s in AMAZON_ADS_TABLES), state_prefix="amzn_")) register("meta", META_TABLES, mirror=ConnectorMirrorSpec(tuple(s.source for s in META_TABLES), state_entities=("meta",))) # No mirror of its own: the Ads tables are declared in the Amazon mirror above (contract C6). register(AMAZON_ADS_CONNECTOR, AMAZON_ADS_TABLES) __all__ = ["CARDINALITIES", "ConnectorTableSpec", "SPECS", "CONNECTOR_SPEC_KEYS", "AMAZON_TABLES", "AMAZON_FIELDS", "AMAZON_LABELS", "AMAZON_DEFAULT_COLUMNS", "META_TABLES", "ConnectorMirrorSpec", "MIRRORS", "mirror_for", "mirror_table_keys", "mirror_summary_groups", "ODOO_MODEL_TABLE_PREFIX", "odoo_model_table_key", "odoo_model_label", "register", "connectors", "tables_for", "all_specs", "spec_for", "connector_of", "register_scoped_row_decoder", "decode_scoped_rows", "edges_for", "system_link_fields"] __all__ += ["AMAZON_GROUP_ORDER", "AMAZON_GROUPS", "table_group"] __all__ += ["AMAZON_HISTORY_SOURCES", "AMAZON_HISTORY_COLUMNS"] __all__ += ["AMAZON_ADS_CONNECTOR", "AMAZON_ADS_AD_TYPES", "AMAZON_ADS_REPORTS", "AMAZON_ADS_TABLES", "AMAZON_ADS_GROUPS", "AMAZON_ADS_BACKFILL_DAYS", "AMAZON_ADS_THROUGHPUT", "AMAZON_ADS_NOT_OFFERED", "amazon_ads_description"] # ═════════════════════════════════════════════════════════════════════════════════════════════ # LIVE MODES β€” how each mirrored table answers a live question (S82-T104, S82-T106) # ═════════════════════════════════════════════════════════════════════════════════════════════ # A separate map, never an eighth `ConnectorTableSpec` field: `verify_meta.section_connector_spec` # pins that dataclass at exactly seven fields. Keyed by connector, then by MIRROR table. LIVE_CURSOR = "cursor" # rows written since the last sync cursor, overlaid on the mirror by id LIVE_SLICE = "slice" # no change cursor: a bounded slice read within max rows LIVE_API = "api" # a live vendor API read LIVE_NONE = "none" # no live read, with a stated reason LIVE_MODE_KINDS = (LIVE_CURSOR, LIVE_SLICE, LIVE_API, LIVE_NONE) @dataclass(frozen=True) class LiveMode: """One mirrored table's live mode. A cursor names its change column; none names its reason.""" mode: str cursor_field: str = None reason: str = None def __post_init__(self): if self.mode not in LIVE_MODE_KINDS: raise ValueError(f"a live mode is one of {LIVE_MODE_KINDS}") if self.mode == LIVE_CURSOR and not self.cursor_field: raise ValueError("a cursor live mode names its change column") if self.mode == LIVE_NONE and not self.reason: raise ValueError("a table with no live read states its reason") LIVE_MODES = {} def declare_live(connector, modes): """Set one connector's `{mirror table: LiveMode}` map. Re-declaring REPLACES it (a gate's negative control swaps the map and restores it in a `finally`).""" clean = {} for table, mode in dict(modes).items(): if not isinstance(mode, LiveMode): raise TypeError("a live mode declaration must be a LiveMode") if not re.fullmatch(r"[a-z][a-z0-9_]*", str(table)): raise ValueError("a live mode table must be a safe identifier") clean[table] = mode LIVE_MODES[CONNECTOR_SPEC_KEYS.get(connector, connector)] = clean return clean def live_modes(connector): """One connector's live mode map, as a copy. Unknown connector -> `{}`.""" return dict(LIVE_MODES.get(CONNECTOR_SPEC_KEYS.get(connector, connector), {})) def live_mode_for(table, connector=None): """One mirror table's `LiveMode`, or None when nothing declares it. Never raises.""" if connector is not None: return live_modes(connector).get(table) for modes in LIVE_MODES.values(): if table in modes: return modes[table] return None # Odoo: every mirror table the sync reads by `write_date >= cursor` (harness `datastore.ENTITIES` # minus `REPLACE_EACH_PASS`). Literal because core never imports harness; `verify_live_read` # holds both lists equal to the harness ones. ODOO_LIVE_CURSOR_TABLES = ( "sale_order", "sale_order_line", "res_partner", "product_product", "account_move", "account_payment", "account_move_line", "account_invoice_line_agent", "account_account", "stock_landed_cost", "stock_picking", "stock_move", "uom_uom", "stock_location", "stock_valuation_layer", "purchase_order", "purchase_order_line", "account_account_tag", "fulfillment_status", "account_bank_statement_line", "account_bank_statement", "res_company", ) # The tables the sync replaces whole each pass (`datastore.REPLACE_EACH_PASS`): no change cursor. ODOO_LIVE_SLICE_TABLES = ("stock_quant", "product_pricelist", "product_pricelist_item", "product_tag") # Tables an Odoo grid names that the sync does not mirror by change cursor today. Once # `datastore.ENTITIES` syncs one, `verify_live_read` goes red until it declares a cursor. ODOO_LIVE_NONE = { "res_users": "The sync does not mirror this table yet.", "stock_valuation_adjustment_lines": "The sync does not mirror this table yet.", } declare_live("odoo", {**{t: LiveMode(LIVE_CURSOR, cursor_field="write_date") for t in ODOO_LIVE_CURSOR_TABLES}, **{t: LiveMode(LIVE_SLICE) for t in ODOO_LIVE_SLICE_TABLES}, **{t: LiveMode(LIVE_NONE, reason=r) for t, r in ODOO_LIVE_NONE.items()}}) # S82-T106: why an Amazon table has no live read. Shown to a person: plain words, no dash. AMAZON_LIVE_REASONS = { "report": "Amazon generates this report over minutes to hours.", "orders": "Amazon orders have no live client. The sync reads them from a report.", "api": "No live read is built for this Amazon API yet. The sync reads it on schedule.", "derived": "The sync builds this table from other tables.", "scrape": "A web scrape fills this table over minutes.", "ads": "Amazon Ads generates this report over minutes to hours.", } AMAZON_LIVE_ORDER_TABLES = ("amzn_orders", "amzn_order_items") # Report kinds whose native id has no `GET_` prefix. Data Kiosk queries also run for minutes. AMAZON_LIVE_ASYNC_NATIVES = ("RFQD_BULK_DOWNLOAD", "FEE_DISCOUNTS_REPORT", "analytics_economics_2024_03_15") def _amazon_live_kind(spec): """The reason kind for one Amazon table, or None so an unknown native shape stays undeclared.""" native = spec.native or "" if spec.source in AMAZON_LIVE_ORDER_TABLES: return "orders" if native.startswith("derived:"): return "derived" if native.startswith("GET_") or native in AMAZON_LIVE_ASYNC_NATIVES: return "report" if "/" in native: return "api" return None declare_live("amazon", { **{s.source: LiveMode(LIVE_NONE, reason=AMAZON_LIVE_REASONS[_amazon_live_kind(s)]) for s in AMAZON_TABLES if _amazon_live_kind(s)}, "amzn_apify_rank_observations": LiveMode(LIVE_NONE, reason=AMAZON_LIVE_REASONS["scrape"]), }) # Every Amazon Ads table is an asynchronous report by construction. declare_live(AMAZON_ADS_CONNECTOR, {s.source: LiveMode(LIVE_NONE, reason=AMAZON_LIVE_REASONS["ads"]) for s in AMAZON_ADS_TABLES}) # Meta reads the Graph API on each call: Insights and the account, campaign, ad set, ad and # creative levels. declare_live("meta", {s.source: LiveMode(LIVE_API) for s in META_TABLES}) __all__ += ["LIVE_CURSOR", "LIVE_SLICE", "LIVE_API", "LIVE_NONE", "LIVE_MODE_KINDS", "LiveMode", "LIVE_MODES", "declare_live", "live_modes", "live_mode_for", "ODOO_LIVE_CURSOR_TABLES", "ODOO_LIVE_SLICE_TABLES", "ODOO_LIVE_NONE", "AMAZON_LIVE_REASONS", "AMAZON_LIVE_ORDER_TABLES", "AMAZON_LIVE_ASYNC_NATIVES"]
"""connector_spec.py β€” ONE shared schema spec for every connector's tables, carrying the vendor's
own name for each of them.
⭐⭐ **THIS FILE IS THE SINGLE SOURCE OF TRUTH FOR A CONNECTOR'S TABLE SHAPE FROM NOW ON.** The
shape already existed twice before it had a name: `aios-web/api/amazon_relational.py` and
`aios-web/api/meta_relational.py` each carry loose `SOURCE` / `LABELS` / `PINNED` / `IDENTITY` /
`LINKS` module dicts saying the same six things about their tables in two different spellings, and
`odoo_relational.py` carries a third. Nobody called it a spec, so nothing could read it generically
and every new consumer (the relation engine, the connector detail door, the Databases tab) had to
learn each connector's dialect. This module generalises those dicts; it does not invent a new model.
ConnectorTableSpec one table: key, native, source, label, pinned, identity, links
register(connector, ...) add a connector's tables to the registry
tables_for(connector) that connector's specs, in declaration order
spec_for(ut_key) one table's spec, or None
connector_of(ut_key) which connector owns a ut_* key, or None
all_specs() flat ut_key -> spec across every connector
connectors() the connector keys, in registration order
edges_for(key) the relation edges of a CONNECTOR or of ONE table
⭐ **THE FIFTH KEY IS `native`, AND IT IS THE ONE THAT DID NOT EXIST BEFORE.** `SOURCE` is the
MIRROR table β€” `amzn_orders`, `meta_campaigns` β€” which is OUR name for the copy we hold. The
vendor's own identifier for the same thing (`GET_FLAT_FILE_ALL_ORDERS_DATA_BY_ORDER_DATE_GENERAL`,
`AdAccount`, `res.partner`) lived only in comments, so no screen and no gate could reach it.
β›”β›” **R9 β€” `label` IS A DEFAULT, `native` IS NEVER EDITABLE.** The `label` here is our SHIPPED
default display name and nothing else. A tenant's override lives in `core/schema_overlay.py`, is
stored per tenant, and **a connector re-sync must never write it**; renaming a database from the
navigation rail is that same override. Nothing in this module is a place to store an override, and
a caller that writes one here has put tenant state in shipped code.
β›” **LAYERING: `core` NEVER IMPORTS UP.** `aios-web/api/*` is above `platform/core/`, so this file
must not import `amazon_relational`, `meta_relational` or `odoo_relational`, and it does not import
`harness` either. Every value below is therefore written out LITERALLY, transcribed from the modules
named beside it.
⭐ **THE TRANSCRIPTION IS HELD TRUE BY A GATE, NOT BY A COMMENT.** `aios-web/api/verify_meta.py`
(`section_connector_spec`) asserts, per table, that this module's `source` / `label` / `pinned` /
`identity` / `links` agree exactly with the live `amazon_relational` and `meta_relational` dicts.
That gate lives up in the api layer precisely because it may import both sides. It is the codebase's
own idiom: `core/relations.py::compiled_pin_matches_filter_sql` proves two SQL spellings agree by a
gate rather than by a comment, and `relations.OPEN_INVOICE_WHERE` is held against
`odoo_relational._AR_WHERE` the same way.
⚠ **WHEN W53-T37 LANDS** and `amazon_relational` / `meta_relational` READ their dicts from here,
those parity checks become tautological and this note should be revisited β€” but **the checks stay**,
because a tautology is exactly what catches a hand edit that re-introduces a literal on either side.
β›” **ODOO IS NOT HERE YET.** W53-T38 writes Odoo's spec in its own file fence. There is deliberately
no `"odoo"` entry and no stub for one; `edges_for("odoo")` returns `[]` until that ticket lands.
"""
from dataclasses import dataclass, replace
import hashlib
import re
#: ⭐ THE CARDINALITY VOCABULARY, AS A CONSTANT SO EVERY CONSUMER CHECKS MEMBERSHIP RATHER THAN
#: SPELLING. The relation wire (W53-T17) and the parity gate both read this set; a fifth value
#: added by hand in a link tuple goes red instead of travelling silently to a screen.
CARDINALITIES = ("many_to_one", "one_to_many", "one_to_one", "many_to_many")
# The discoverable Odoo catalogue is runtime data, because two API accounts can read different
# installed modules. Only its stable naming rule belongs in this tenant-independent spec layer.
# A digest closes the otherwise-real collision between model names such as ``x.a_b`` and
# ``x_a.b`` after punctuation is normalised for a ``ut_*`` key.
ODOO_MODEL_TABLE_PREFIX = "ut_odoo_model_"
def odoo_model_table_key(model):
"""Stable ``ut_*`` key for one vendor model name; blank/invalid input is refused."""
native = str(model or "").strip().lower()
if not native or not re.fullmatch(r"[a-z0-9_.]+", native):
raise ValueError("an Odoo model name may contain only lowercase letters, digits, dots and underscores")
# 18 + the 14-character prefix + separator + digest leaves room for the connector's
# ``__k_<12 hex>`` namespace under user_tables' 60-character key ceiling.
stem = re.sub(r"[^a-z0-9]+", "_", native).strip("_")[:18] or "model"
digest = hashlib.sha256(native.encode("utf-8")).hexdigest()[:10]
return f"{ODOO_MODEL_TABLE_PREFIX}{stem}_{digest}"
def odoo_model_label(model, vendor_label=""):
"""Our default database label, while preserving Odoo's own label when it supplied one."""
label = " ".join(str(vendor_label or "").split())
if label:
return label[:80]
return str(model or "").replace(".", " ").replace("_", " ").strip().capitalize()[:80]
@dataclass(frozen=True)
class ConnectorTableSpec:
"""One connector table. β›” EXACTLY SEVEN FIELDS, IN THIS ORDER β€” contract C2 says "exactly",
and `verify_meta.section_connector_spec` reads `dataclasses.fields` to make that word
mechanical. Grouping by connector is done by the two-level `SPECS` registry below, NOT by an
eighth field.
"""
key: str #: our `ut_*` key β€” the grid a person opens
native: str #: the vendor's OWN identifier. β›” NEVER editable (R9)
source: str #: the mirror table `harness/*_store.py` writes
label: str #: our shipped DEFAULT display name. A DEFAULT, never an override (R9)
pinned: str = None #: the title column, or None when the table has no natural one
identity: tuple = () #: the id columns, in FALLING preference
#: ⚠ A TUPLE OF 4-TUPLES `((from_col, target_key, to_col, cardinality), ...)`, AND THE TUPLE IS