All error codes

granularity_too_fine

HTTP 422 Requested granularity produces too many buckets for this window

What happened

The window you asked for, split at the requested granularity, would produce more than 750 buckets. The response is not silently truncated, because a missing bucket reads as "no spend".

What to do

Narrow the window with start and end, or ask for a coarser granularity: hourly to daily, daily to none.

Retrying

Fix the request and send it again.

How it arrives

{
    "type": "https://docs.fiberax.com/errors/granularity_too_fine",
    "title": "Requested granularity produces too many buckets for this window",
    "status": 422,
    "code": "granularity_too_fine",
    "request_id": "a277dcd1ca652c65"
}

Branch your code on code, never on the wording of title.