Hi Klaviyo Developers,
We're building a revenue attribution analytics platform using Klaviyo's API, and we're running into some challenges with the metrics aggregation and campaign data retrieval. We'd appreciate some guidance on proper API implementation.
Current Issues:
- Campaign API calls failing with invalid filter parameters:
Error: 400 Client Error: Bad Request
Detail: "Invalid filter provided."
Endpoint: /api/campaigns?filter=status+ne+%27draft%27
- Metrics Timeline API calls failing with incorrect data parameters:
Error: 400 Client Error: Bad Request
Detail: "'data' is not an allowed query parameter."
Endpoint: /api/metrics/timeline
Specific Questions:
- What's the correct filter syntax for retrieving non-draft campaigns with their revenue metrics?
- How should we structure the metrics timeline API request for revenue attribution data?
- What's the recommended approach for tracking attribution across different campaign types?
We're using Python with the requests library for API integration. Any code examples or best practices would be incredibly helpful!
Thanks in advance for your help!