im trying to make a stripe configuration for the customer portal throw an API and the call is initialized with a single array in the list of price ids.. but as soon as i try to set a list of entry i get the error "code": "resource_missing",
i dont know what im doing wrong here.. can anyone help?
Do you have link to api doc? Seem you are sending the list as parameters, so pretty sure it’s not set correctly. Also, can you share API connector settings?
The issue with your settings is this is not dynamic.
Instead of using the params. you could use the json body (or set it to raw body) and set the content-type header to application/x-www-form-urlencoded.
I prefer to use a plugin to convert a JSON to url params (JSON Serialize to URL query Plugin | Bubble … created by me for a case like stripe). It’s easier to manage in JSON. But this can be done without too.
Take time to search forum about Stripe array. There’s already a lot of solutions.
The main issue with a lot of solutions is the incremental array numbering that cannot be done easily with Bubble. The plugin take care of that.
i am already using the content-type header application/x-www-form-urlencoded
and the one you are refering to here: How do I include an array in a querystring in the API connector? (Stripe API) - #4 by roman.leeb is also already how im doing it by using the array features[subscription_update][products][0][prices][] for first product and features[subscription_update][products][1][prices][] for second product, as the doc tells me to do.. so my issue is that for each of these products there is 2 price id’s montly and yearly.. and they are both stored in the bubble DB as an attribute under an optionset for each plan
first line is as you see here for the product called “TaskForce Basis”
The format as text you are using doesn’t look correct but it’S hard to know without the output result. What I suggest you to try, is to send to a service like requestbin or beeceptor and inspect your request. This will be easier to debug and find where it fail
I think your issue is the prices that contain more than 1 and are “espaced” with
Pretty sure that each prices should have is own parameters features[subscription_update][products][0][prices][]
as far as i can see in the doc each product id should have its own parameter
so it will be: features[subscription_update][products][0][product] features[subscription_update][products][1][product]
and then each price id belonging to that product should be listed in each of these parameters like this:
An array of string in stripe should be like I said.
Each item in the “prices” array, it’s own features[subscription_update][products][0][prices][]=
What is different, is that you don’t need to increment the prices [] because it’s not an object.
Hardcode it directly in API connector (o postman) and test it if you think it should work with a CSV in prices. If not, test it like I’ve suggested.
If you need more than one price for the same product, just add prices][1], prices][2], etc.
You can also omit product and only send prices (Stripe will infer the product from the price ID).
Double‑check you’re not mixing test IDs with live keys (and vice‑versa).
The issue with your settings (but this depend of the case) is that you are stuck with a specific length for array. It’s not dynamic. But it could work if you always have the same number of items in array.