Skip to content

fix(api): Deprecate filter_by prefixed params on current usage#346

Merged
murparreira merged 1 commit into
mainfrom
fix/deprecate-filter-by-params-current-usage
May 6, 2026
Merged

fix(api): Deprecate filter_by prefixed params on current usage#346
murparreira merged 1 commit into
mainfrom
fix/deprecate-filter-by-params-current-usage

Conversation

@murparreira
Copy link
Copy Markdown
Contributor

Context

We have different param naming convention in the current_usage endpoint. Some have the prefix filter_by_, not reflecting the pattern on the rest of the API. Add support for conventional ones, and mark the prefixed ones as deprecated.

Description

Introduce unprefixed aliases for the filter_by_* query parameters on the GET /customers/:customer_id/current_usage endpoint (charge_id, charge_code, billable_metric_code, group), consistent with the naming convention used across the rest of the API.

The old filter_by_* names remain supported for backward compatibility.

@murparreira murparreira merged commit 9cdaf65 into main May 6, 2026
6 checks passed
@murparreira murparreira deleted the fix/deprecate-filter-by-params-current-usage branch May 6, 2026 11:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants