You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you for writing in. I agree this behavior is confusing.
This has to do with how the Stripe API uses form encoding for request parameters, and how we translate arrays into form encoding. For example, if allowed_updates wasn't empty, the request would look something like:
POST /v1/billing_portal/configurations
...
features[customer_update][allowed_updates][]=...&features[customer_update][allowed_updates][]=...
this means that the way to encode an empty array is just to send nothing at all - which this API is complaining about, because it sees allowed_updates as a required field.
I don't know yet if there is a straightforward fix for this, but I will raise it internally.
I am making the following call:
However I get the following error:
I was only able to solve this by removing the
features.customer_update
field entirely, but I think there may be a bug in this library.The text was updated successfully, but these errors were encountered: