#ajit
1 messages · Page 1 of 1 (latest)
Hello! If you want to update an existing Subscription Item you need to pass in the ID of the one you want to update.
No, not the Subscription ID, the Subscription Item ID: https://stripe.com/docs/api/subscriptions/update#update_subscription-items-id
ok i understood
thanks
Also , i have one more question
I have created a customer and its customer id with price Id to subscription .
is the customer is chargeable on next cycle ? i don't see any option to add credit card
Not sure I understand, can you provide more details? Can you provide the request IDs for the API calls you made? Here's how you can find a request ID: https://support.stripe.com/questions/finding-the-id-for-an-api-request
Actually , i did not made any request to stripe API . I am just creating subscription API . as of now i am just write code to subscribe a customer to stripe
let subscription = await stripe.subscriptions.create({
customer: organization.stripeCustomerId,
items: [{ price: plan.stripePriceId }
]
});
That code makes an API request to Stripe.
in above code , i did not passed credit card detail of customer
how will stripe charge the customer
Can you go into the Stripe Dashboard, navigate to Developer > Logs, and find the requests there?
i can see my old request that i used to create price
You may need to toggle the test mode switch in the upper right.
Also wondering if you're following a guide or anything? Have you looked at our Subscriptions documentation here? https://stripe.com/docs/subscriptions