UBER-EATS-Wrapper/docs/developer-portal/20-marketplace-reporting-api-audit.md

29 lines
1.1 KiB
Markdown

# 20 Marketplace Reporting API 1.0.0 Audit
Source checked: Uber Eats "Marketplace Reporting API (1.0.0)" section shared by you.
## Implemented Now
- Added official create-report wrapper route:
- `POST /api/v1/uber/reporting/create`
- upstream `POST /v1/eats/report`
- returns `workflow_id`
- Added request validation:
- `report_type` enum validation (10 report types)
- requires at least one `store_uuids` or `group_uuids`
- validates date format by report type
- validates `start_date <= end_date`
- validates range/lookback constraints from the docs
- Added report job persistence (`report_jobs`):
- workflow tracking + report type + request windows + status
- Added webhook completion handling:
- `eats.report.success` marks job completed by `job_id`
- persists report sections metadata for downstream download workers
- Existing CSV fetch route retained:
- `POST /api/v1/uber/reporting/fetch` for direct CSV pulls where applicable
## Pending
- Worker queue for downloading and processing each `report_metadata.sections[]` URL.
- Retry orchestration for section URL fetches and long-running reconciliation pipelines.