#Jordy
1 messages · Page 1 of 1 (latest)
Hi 👋
What is the error message you receive?
{
"error": {
"code": "parameter_unknown",
"doc_url": "https://stripe.com/docs/error-codes/parameter-unknown",
"message": "Received unknown parameter: customer",
"param": "customer",
"request_log_url": "https://dashboard.stripe.com/test/logs/req_kxO7WIRT7ixsQX?t=1676047833",
"type": "invalid_request_error"
}
}
Hey Snufkin, thanks for your help
Can you provide the request ID for this request?
Here's how you can find a request ID: https://support.stripe.com/questions/finding-the-id-for-an-api-request
req_kxO7WIRT7ixsQX
You cannot update a Subscription with a Customer, they must be created with that Customer.
You can see the available parameters for the Update request here: https://stripe.com/docs/api/subscriptions/update
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
The customer ID is required when you create the Subscription.
You can definitely update the Prices in the Subscription Items
We have a section in our docs that covers this pretty well: https://stripe.com/docs/billing/subscriptions/change
I'm not changing the prices though, just the product the customer is using
subscription A to subscription B
The Price object is unqiue for each Product
I apologize I don't know all the terminology, that's probably making it more confusing and harder for you
I think you are misunderstanding the relationships between the Objects here
I agree
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
So would I use the update a price post call then?
No. You will use the Update Subscription API cal. You will want to review this doc closely to make sure you understand how this will impact the Subscrption: https://stripe.com/docs/billing/subscriptions/upgrade-downgrade
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?
You will want to understand how any changes you make will impact prorations. We cover this here: https://stripe.com/docs/billing/subscriptions/prorations
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
The si_ ID is for the Subscription Item. It's not on a Product page
So I must have set these up incorrectly then I'm guessing
As products rather than subscriptions
Ah, ok
I strongly suggest you review our docs in general about how Subscriptions work. https://stripe.com/docs/billing/subscriptions/designing-integration
Then if you have specific questions about specific areas in the docs we can discuss them here.
will do