Stripe integration expand parameter incorrect

I think there might be a bug in the Stripe integration’s implementation of the expand parameter.

Right now, putting values into the expand field for a GET endpoint results in a query that looks like this: https://api.stripe.com/v1/some/endpoint?expand=field1,field2. This gets rejected by the Stripe API with a 400 error:

{
  "error": {
    "message": "Invalid array",
    "param": "expand",
    "type": "invalid_request_error"
  }
}

I think what they’re actually looking for, according to their documentation is something that looks like this: https://api.stripe.com/v1/some/endpoint?expand[]=field1&expand[]=field2.

Could we get this fixed?

Hey @ericsuh and welcome to the community! This definitely seems like an issue on our end - we haven’t update the Stripe integration in quite some time :slight_smile:

In the meanwhile, I’d probably recommend using the REST API integration and hitting your Stripe endpoints directly. That will give you much more control over the request body / params.