#yuselenin_api
1 messages ¡ Page 1 of 1 (latest)
đ 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.
Are you hoping to update the plan between different prices in the same product, or to different products?
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"
}
}
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
Oh let me try sending the subscription ID
hello! just want to check in to see if you've found one
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"
}
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
Yes, that was it, thanks.
ok cool, happy to help!