dataeffet
Sovereign Platform Engineering Manual

Technical Documentation.

A 7-figure kitchen brand loses $3,400 a month to mismeasured FBA dimensions. Hardcoded SQL fixes this. Below are the official architectural blueprints, dbt models, and SQL reference guides. Deploy client-owned 4-Tier Medallion data pipelines across your Amazon brand portfolio. The schemas are open.

BigQuery & AWS Ready Separated Bronze to Diamond Tiers macOS CLI & Rust Tools
Executive Blueprint | 4-Tier Medallion Technical Standard
  • 01. Zero Black-Box ETLsAll transformations execute via open, client-inspectable dbt SQL models. They run inside your own Google Cloud or BigQuery warehouse.
  • 02. Isolated Staging TiersWe firmly reject single-step transformation layers. Bronze ingest and Silver dbt sanitation remain strictly separated. This guarantees verifiable auditability.
  • 03. Deterministic EconomicsHardcoded SQL logic reconciles SP-API ProductFees ledgers. It matches Freightos ocean containers and 3PL warehousing fees. No spreadsheet macros required.
* Architectural Limitation: Real-time execution is bounded by internal Amazon SP-API settlement posting delays. True financial refresh rates cap at 12-hour intervals.
Showing 6 Engineering Specifications
100% Open Access Technical Manual
Core Infrastructure8 min read

Quickstart: Architecting Client-Owned BigQuery Infrastructure

Provision a dedicated Google Cloud project. Set up IAM service account permissions. Initialize secure cloud storage buckets for the OS pipeline.

Core Engineering Specifications Covered:
  • >IAM Service Account role policies for automated SP-API ingest
  • >Configuring BigQuery dataset locations & partition policies
  • >Setting up zero-trust cloud secret manager for API keys
macOS Terminal • GCP Service Account InitializationRAW CODE
gcloud iam service-accounts create dataeffet-spapi-pipeline \
  --description="Sovereign SP-API & dbt Medallion Runner" \
  --display-name="dataeffet-os-pipeline"
Tier 01 • Bronze12 min read

Bronze Layer: Raw SP-API GET_FINANCES_DATA Payloads

Extract unedited settlement ledgers directly from the Amazon Selling Partner API. Bypass Seller Central UI smoothing. This specification covers order fee withholdings and refund events.

Core Engineering Specifications Covered:
  • >Handling API 429 rate limits with exponential backoff queues
  • >Parsing unallocated ProductFees & shipment invoice timestamps
  • >Schema validation for European (EUR/GBP) settlement reports
Bronze Ingestion • SP-API Request SchemaRAW CODE
{"endpoint": "/finances/v0/financialEvents", "method": "GET", "queryParams": {"MaxResultsPerPage": 100, "PostedAfter": "2026-08-01T00:00:00Z"}}
Tier 02 • Silver15 min read

Silver Layer: Reconciling dbt FBA Fee & COGS Staging Models

Forcefully sanitize raw ledgers using separated dbt Silver models. Map Freightos container freight bills. Match every operational expense to its parent ASIN deterministically.

Core Engineering Specifications Covered:
  • >Why we reject single-step staging layers for data accuracy
  • >Automated dbt unit tests for detecting FBA packaging fee variances
  • >Carton-level landed freight & 3PL warehousing cost allocation
dbt Core • Silver Reconciliation Model (reconciled_cogs.sql)RAW CODE
select
  f.asin,
  f.order_id,
  f.amazon_fee_usd,
  coalesce(c.landed_container_freight_usd, 0) as freight_cogs
from {{ ref("stg_spapi__finances") }} f
left join {{ ref("stg_freightos__container_rates") }} c using (asin)
Tier 03 • Gold10 min read

Gold Layer: True TACoS & Daily SKU Unit Economics Views

Apply operational math against clean Silver tables. Generate daily SKU-level P&L views. The output serves executive reporting and Business Intelligence consumption.

Core Engineering Specifications Covered:
  • >Calculating absolute net margin after landed freight and 3PL fees
  • >True TACoS formula vs. standard Seller Central ACoS aggregation
  • >Multi-currency normalization (USD, EUR, GBP) using daily ECB APIs
BigQuery SQL • Daily P&L Contribution EngineRAW CODE
SELECT
  sku,
  SUM(gross_revenue) - SUM(fba_fees) - SUM(landed_cogs) - SUM(attributed_ad_spend) AS absolute_net_margin_usd
FROM {{ ref("int_sku_daily_economics") }}
GROUP BY 1;
Tier 04 • Diamond14 min read

AMC Diamond Layer: Multi-Touch DSP & PPC Attribution SQL

Write custom SQL queries inside Amazon Marketing Cloud (AMC). Track customer impression paths across Sponsored Brands video and DSP programmatic ads.

Core Engineering Specifications Covered:
  • >Measuring New-to-Brand (NTB) subscriber conversion velocity
  • >Detecting and flagging zero-conversion vampire keyword clusters
  • >Bridging AMC attribution outputs with Shopify DTC customer cohorts
AMC SQL • Path to Conversion QueryRAW CODE
SELECT
  path_pattern,
  COUNT(DISTINCT user_id) AS total_converters,
  AVG(total_attributed_margin_usd) AS avg_ltv
FROM amc.dsp_sponsored_ads_path_analysis
GROUP BY 1 ORDER BY 2 DESC;
Core Infrastructure7 min read

The Engine CLI: Local Rust & Terminal Pipeline Audits

Install the command-line interface. Execute dbt tests. Trigger BigQuery medallion transformations and check search indexing directly from your macOS terminal.

Core Engineering Specifications Covered:
  • >Installing the CLI package locally via Cargo and Rust
  • >Running automated Medallion data hygiene checks locally
  • >Integrating Google Search Console (GSC) CLI auditing commands
macOS Terminal • CLI Pipeline ExecutionRAW CODE
cargo install dataeffet-cli && \
dataeffet pipeline run --layer=silver --target=bigquery-prod \
  --verify-deterministic-math=true
Sovereign Pipeline Standard

Why We Enforce Separated Bronze & Silver Layers

Third-party SaaS tools flatten Amazon settlement data in a single black-box ETL pass. Amazon routinely updates API schemas. They issue retro-adjusted packaging fees. When this happens, single-step pipelines fail silently. The OS isolates each transformation stage. We enforce separated Bronze and Silver layers via dbt. This guarantees absolute auditability.

Tier 01 • Bronze

Raw Payload Ingestion

Stores immutable JSON payloads directly from SP-API and Ads API. Ensures complete historical backup before any logic is applied.

Tier 02 • Silver

dbt Sanitation

Separated dbt staging models clean and normalize data. They match order payouts against landed container freight quotes deterministically.

Tier 03 • Gold

Unit Economics Truth

Hardcodes 3PL storage and True TACoS. It generates unquestionable daily net contribution margin tables per SKU.

Tier 04 • Diamond

AI & BI Execution

Feeds high-speed executive dashboards. It enables natural-language terminal queries across your entire brand portfolio.

Sovereign Knowledge Graph

Related Engineering Resources & API Directories

Explore All Intelligence Briefings →
Deploy Sovereign Architecture

Ready to Deploy Your Own
Medallion Data Pipeline?

We engineer sovereign 4-Tier Medallion pipelines directly into your client-owned BigQuery or AWS cloud environment. No recurring SaaS middleware tax.

DELAWARE LLC REGISTERED • SOVEREIGN PLATFORM ENGINEERING