steveniclas Hi there,
We have just heard back from our engineers. They have taken a look and have found it looks like the incorrect API call is being used.
They have said:
To create a segment you need to add a SegmentName Parameter so it can be referenced after creation.
For example you could use this
curl -X POST "https://api-gateway.ezoic.com/gateway/bdaservices/createsegment/?developerKey={API_KEY}" -H "Content-Type: application/json" --data '{ "SegmentName": "Blue Protocol Page", "SegmentFilters":{ "4":{"FilterStringOperationId": "EXACTLY", "FilterValue": "https://www.myzitate.de/blue-protocol/" }} }'
When Running this they received this response
{"SegmentName":"Blue Protocol Page","SegmentId":33932,"IsCustom":1,"CreatedOn":"2023-07-31 21:52:12","LastModified":"2023-07-31 21:52:12","SegmentFilters":{"4":{"FilterIntOperationId":"\u003cUNSET\u003e","FilterStringOperationId":"EXACTLY","FilterValue":"https://www.myzitate.de/blue-protocol/"}},"SegmentMultiFilters":null,"Error":""}
With that they where able to run the next call
curl -X POST "https://api-gateway.ezoic.com/gateway/bdaservices/getdata/?reportName=revenueDaily&developerKey={API_KEY}" -H "Content-Type: application/json" --data '{ "StartItem":0, "MaxItems":15, "Platform":"ALL", "DateGrouping":"MONTHLY", "SegmentIds":[33932], "StartDate": "2023-07-01", "EndDate": "2023-07-27" }'