#Jordy

1 messages · Page 1 of 1 (latest)

opal jasperBOT
white field
#

Hi 👋

What is the error message you receive?

pulsar cargo
#

Hey Snufkin, thanks for your help

white field
pulsar cargo
#

req_kxO7WIRT7ixsQX

white field
#

You cannot update a Subscription with a Customer, they must be created with that Customer.

pulsar cargo
#

How does stripe know what customer it is then? Big picture, I'm trying to allow one customer to switch from one plan to another of their choosing but the client wants the billing period to start with the current date and not the previous plan's start date

white field
#

The customer ID is required when you create the Subscription.

#

You can definitely update the Prices in the Subscription Items

pulsar cargo
#

I'm not changing the prices though, just the product the customer is using

#

subscription A to subscription B

white field
#

The Price object is unqiue for each Product

pulsar cargo
#

I apologize I don't know all the terminology, that's probably making it more confusing and harder for you

white field
#

I think you are misunderstanding the relationships between the Objects here

pulsar cargo
#

I agree

white field
#

So each Price is related to a single Product

#

So if you are changing the Product then you are changing the Price

#

The Subscription object is related to a single Customer

#

You can freely change the Products associated with a Subscription via their related Prices. This changes what products a Customer is subscribed to

pulsar cargo
#

So would I use the update a price post call then?

white field
pulsar cargo
#

Ok thanks Snufkin. I will review and then reach out if I have any questions

#

Or better yet, anything else I should know before leaving?

white field
pulsar cargo
#

On the product page, where do I find the id with the "si" prefix? I only see "prod"? This is for a subscription if that matters

white field
#

The si_ ID is for the Subscription Item. It's not on a Product page

pulsar cargo
#

So I must have set these up incorrectly then I'm guessing

#

As products rather than subscriptions

white field
#

No no no

#

There is still a lot of confusion about how these objects work

pulsar cargo
#

Ah, ok

white field
pulsar cargo
#

will do