#defekt7x
1 messages · Page 1 of 1 (latest)
Hello can you send me the ID for the API request where you are getting this error (req_1234)? You can get it from your dashboard https://support.stripe.com/?contact=true
Or you can run your code again and print out the ID like this: https://stripe.com/docs/api/request_ids
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
req_U3SVWAkxWCLlFZ
Thanks!
Oh I see what is happening
So subscription items actually have specific IDs to them, to update an existing subscription item, you need to include its ID along with the price that you want to update it to
Without the ID, our API thinks you want to add an item to the subscription rather than update an existing one
If you retrieve the subscription you can see its existing subscription item will have an ID of si_NzszCqE2zl7UU4
Ok got it, so the super quick fix is just to add an id field to the items object? right next to price?
Yes