loopable / platform /model /metrics /amazon_orders.yml
fsanyoto's picture
Deploy AIOS web (React glide grid + FastAPI slice)
1ad1eea verified
Raw History Blame Contribute Delete
783 Bytes
topic: amazon_orders
metrics:
- key: amazon_order_count
label: Amazon orders
agg: count_distinct
field: amazon_order_id
format: int
empty: zero
description: Distinct non-cancelled Amazon orders placed in the complete UTC date window.
ai_context: >
Count distinct Amazon order ids by purchase date in UTC. Exclude Cancelled and Canceled.
This is the tenant seller's Amazon marketplace scope, not Odoo's GIFTWARE channel.
Both dates must match the completed Amazon Sales getOrderMetrics summary interval.
Missing or empty mirrors, missing summaries and restricted callers are refused.
validate:
method: amazon_sales_order_count
independent: Amazon Sales getOrderMetrics orderCount from the completed source summary