Backfill Runbook¶
When to Use¶
- New seller onboarded - need historical data
- Data gap discovered (missed nightly runs)
- New data source added (need to populate retroactively)
Orders Backfill¶
Ads Backfill¶
Important: Each ad type has a lookback limit:
- Sponsored Products (SP): 95 days
- Sponsored Brands (SB): 60 days
- Sponsored Display (SD): 65 days
Requesting beyond these limits returns HTTP 400 with the exact retention cutoff date in the error body - parse it, don't hardcode.
Chunking rule: Pull in ≤31-day windows. The 900s poll timeout will expire on larger windows. Save the reportId for resume if timeout hits.
Inventory Ledger¶
Monthly granularity. 60-day rolling window covers current + prior month:
After Backfill¶
Re-run forecast to incorporate new data: