Update to /account/:id/statement endpoint behavior
4 months ago by Max Tagher
We've updated the default behavior for the /account/:id/statement endpoint.
What's new:
If you don’t specify start
and end
query parameters, the API will now default to a 3-month date range ending today.
To customize the date range:
- Both start and end must be in ISO 8601 format (YYYY-MM-DD).
- The range between start and end cannot exceed 3 months.
- If the range exceeds 3 months, we will return a 400 response.
- If both parameters are missing, the range will default to
[today-3 months, today]
.
Partial inputs:
- If only
start
is provided, the range will default to[start, start + 3 months]
. - If only
end
is provided, the range will default to[end - 3 months, end]
.