#Vinit_Churi

1 messages ยท Page 1 of 1 (latest)

tall viperBOT
ebon mortar
#

๐Ÿ‘‹ happy to help, please bear with me as it's a bit busy, I'll get to your question asap, sorry in advance

sick lake
#

hello @ebon mortar could you please help me with my query?
I did figure out this parameters
"the customer id" &
"the customer subscription id"
what parameter do I need to pass for the api to know whatever plan the user wanting to switch to

ebon mortar
#

there are a couple more params that you need to pass and some of them depend on the behavior you want

sick lake
#

in which parameter can I pass the plan id or plan price my user is intending to switch to

ebon mortar
sick lake
#

I'm sending the price Id of the plan which the user want's to upgrade to and I'm getting this error

ebon mortar
#

if you're using Postman I would suggest looking at our official Postman directory

remote swift
#

as the error mentions, you need to change the param to subscription_items[0][price].

ebon mortar
sick lake
#

yes I'm using the offical stipe postman collection

#

I have made a fork of the collection

sick lake
remote swift
#

not sure what you mean by that.

#

looks like the request you shared would work, if you fix that error.

sick lake
#

ok let me try
please wait 2-3 min. till I test things, thanks for your patience

#

Now I'm getting this error

remote swift
#

can you share the request ID req_xxx for that error? it's the in the HTTP response headers.

sick lake
#

here sir

remote swift
#

no, I mean please post the string req_xxx here(paste it here)

sick lake
#

{{baseUrl}}/v1/invoices/upcoming?customer=cus_MTj6WrH66KsUve&subscription=sub_1LkleACy95Kg2yHQ78cIV4r4&subscription_items[0][price]=price_1L2vqOCy95Kg2yHQ0XUMrwcI

#

๐Ÿ‘†

#

found it sir here
req_pyqZUHxPpDXX9s

#

๐Ÿ‘† ๐Ÿ˜…

remote swift
#

in your case that's si_MTj6AVUVitPiHD I think.

sick lake
#

existing plan id?

sick lake
remote swift
#

subscription_items[0][id]

sick lake
#

could you please wait 2-3 min till I try out changes

sick lake
remote swift
#

it's the ID of existing item on the subscription that you're updating