Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ClearUsage param to SubscriptionItemParams #743

Merged
merged 1 commit into from
Dec 27, 2018

Conversation

eclipse1985
Copy link
Contributor

Accoring with the documentation, we need a ClearUsage parameter.

Right now is not possible to delete subscription items due to error:

Error encountered from Stripe: {"status":400,"message":"When deleting the subscription item ITEM_ID with a metered plan, all related usage records must be cleared too by setting clear_usage=true.","request_id":"REQ_ID","type":"invalid_request_error"}

@eclipse1985 eclipse1985 changed the title added ClearUsage in SubscriptionItemParams Add ClearUsage param to SubscriptionItemParams Dec 27, 2018
Copy link
Contributor

@remi-stripe remi-stripe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@eclipse1985 Thanks a lot for doing the work here!

@remi-stripe remi-stripe merged commit 65c295f into stripe:master Dec 27, 2018
@remi-stripe
Copy link
Contributor

Released in 55.1.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants