List plans of a given type for outcome attribution
Returns a paginated list of plans of the given type for the specified organization. Supports filtering by status and decidedAt range. Per-status badge counts are included in the response for the data platform’s attribution dashboard. Requires Bearer token authentication.
Authorizations
Static internal-ops token used by the data platform and internal cron jobs (e.g. zombie-run sweep). Validated via requireBearerToken inside the handler against a service-specific environment variable.
Path Parameters
Plan type path segment (RESTOCK, REBALANCE, MARKDOWN, SUPPLIER_RETURN, SUPPLIER_EXCHANGE)
1Query Parameters
UUID of the organization whose plans are listed
1Filter by plan lifecycle status (e.g. DRAFT, VALIDATED, SENT)
ISO 8601 lower bound (inclusive) for the plan's decidedAt timestamp
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$ISO 8601 upper bound (inclusive) for the plan's decidedAt timestamp
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$Maximum number of plans to return (default: 100, max: 500)
1 <= x <= 500Number of plans to skip for pagination (default: 0)
0 <= x <= 9007199254740991
