#yuselenin_api

1 messages ¡ Page 1 of 1 (latest)

celest cedarBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1419806548145733823

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

limber whale
#

Are you hoping to update the plan between different prices in the same product, or to different products?

glossy steppe
#

different prices, but also different products

#

"products": {
"0": {
"prices": {
"0": "price_1S0noJArTlH6N1gZnLTz38Sp"
},
"product": "prod_SwhCeuTEyzEJga"
},
"1": {
"prices": {
"0": "price_1S0nttArTlH6N1gZWyMTb07S"
},
"product": "prod_SwhIxLtS9u04pE"
},
"2": {
"prices": {
"0": "price_1S0nttArTlH6N1gZxUYdPq1F"
},
"product": "prod_SwhIDnpNeJlnDH"
}
}

celest cedarBOT
sly wing
#

hello! fyi i am taking over the thread, give me just a bit to catch up

#

it looks like the customer for the request you shared doesn't have any subscriptions, so it's not really clear to me what they're upgrading. can you give me more context on what you're trying to do exactly and how it isn't working?

#

if you can share a specific subscription ID you're trying to upgrade that might help

glossy steppe
#

Oh let me try sending the subscription ID

sly wing
#

hello! just want to check in to see if you've found one

glossy steppe
#

I have new error

#

invalid_request_error
The session's customer does not match the subscription's customer.

#

req_Pe8BBqFr30mib4

#

{
"configuration": "bpc_1SAJ8OArTlH6N1gZRiGZSSFF",
"customer": "cus_SwhGCwDX7h2Zk0",
"flow_data": {
"subscription_update": {
"subscription": "sub_1S0noKArTlH6N1gZG7kvDo6b"
},
"type": "subscription_update"
},
"return_url": "https://staging.easy-mgt.com/dashboard/shortcuts"
}

sly wing
#

that subscription is associated with this customer cus_SwhCJyb65mi3vP

#

can you try using that ID instead?

#

i think that's also related to the problem you posted before

glossy steppe
#

Yes, that was it, thanks.

sly wing
#

ok cool, happy to help!