#dineshkumar_error
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/1308759393839353856
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- dineshkumar_docs, 23 hours ago, 54 messages
Can you share the ID (req_xxx) of the API request? https://support.stripe.com/questions/finding-the-id-for-an-api-request
Find help and support for Stripe. Our support site provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
this request ID req_9wMQQfxkk7rjS8
Yes you can only use one-time items with that API as it only applies to the next invoice
If you want to add a new reurring item to the subscription then you should update the subscription directly
if I purchase same piceid i want to add quantity 1+1 =2,
if new prcie id want to add new line item for next upcoming invoice/subscription with prorate amount
please help on this...
Sure, then you can just update the existing item on the subscription to bump the quantity: https://docs.stripe.com/api/subscriptions/update#update_subscription-items-quantity
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
how to add a new recurring
item to the subscription, give me example code and doc link, please...
https://docs.stripe.com/billing/subscriptions/upgrade-downgrade#changing is a basic outline
when add new recurring item can we get current month prorate amount?
๐ taking over for my colleague. Let me catch up.
you just need to add proration_behavior: always_invoice to get the prorations applied
yes i added already in this subscription sub_1QNBcWBUmBAZBIgt8j0U1KOI
what's the issue exactly?
I created subscription with prorationbehavior = "always_invoice", and billingcycleanchorconfig = new subscriptionbillingcycleanchorconfigoptions
{
dayofmonth = 21,
},
var subscriptioncreateoptions = new subscriptioncreateoptions
{
customer = "cus_p5wqffoob4etms",
items = new list<subscriptionitemoptions>
{
new subscriptionitemoptions
{
price = "price_1qfh2vbumbazbigtyv51p81a", // monthly property website
},
new subscriptionitemoptions
{
price = "price_1omrztbumbazbigtocr7ti0u", // monthly agent website
},
},
billingcycleanchorconfig = new subscriptionbillingcycleanchorconfigoptions
{
dayofmonth = 21,
},
prorationbehavior = "always_invoice",
};
would you mind sharing the request ID?
yes that's correct
since the update was made today and the billing_cycle_anchor is set on the 21st this means that you will have a billing period of 1 day (20-21)
request id is req_Bo7X4AH0kh0Fli
and the proration will be calculated accordingly
subscription id is sub_1QNBcWBUmBAZBIgt8j0U1KOI
upcoming invoice is fine
i want add same prodcut priceid price_1qfh2vbumbazbigtyv51p81a or price_1omrztbumbazbigtocr7ti0u any one or both for upcoming invocie..
you already did no?
i alrady no did
@fervent badger I'm not following
i want again again add/purchase this items will need to add upcoming invoice, if existing invoice item will need quantity increase, or nont-existing item new line item will need to add..
could you undestand my above last question
could you undestand this?
no sorry I'm not sure I do
if you prefer to get support in your native language you can contact https://support.stripe.com/?contact=true
Find help and support for Stripe. Our support site provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
this is my scenario
Customers will receive an invoice on the first day of each month, listing all their purchased products, and the payment for the remaining days of the current (or first) month should be collected immediately as a one-time payment.
i tried this code
var subscriptioncreateoptions = new subscriptioncreateoptions
{
customer = "cus_p5wqffoob4etms",
items = new list<subscriptionitemoptions>
{
new subscriptionitemoptions
{
price = "price_1qfh2vbumbazbigtyv51p81a", // monthly property website
},
new subscriptionitemoptions
{
price = "price_1omrztbumbazbigtocr7ti0u", // monthly agent website
},
},
billingcycleanchorconfig = new subscriptionbillingcycleanchorconfigoptions
{
dayofmonth = 21,
},
prorationbehavior = "always_invoice",
};
i want add/purchase same price = "price_1qfh2vbumbazbigtyv51p81a", // monthly property website with same subscription
if it's the same price you just need to update the quantity
ok
please give me example code and doc for update the quantity
current month prorate amount we will get immediately, when update the quantity?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
ok
if you pass the proration_behavior always invoice then yes
yes
please example code and document link, please..
add new subscription item on exsiting subscription , for this please give example code and docs..
hi! I'm taking over this thread. give me a few minutes to catchup.
If I understand correctly, you want to increase the quantity of an existing Subscription?
and do you want the customer to pay immediately, or you want them to pay in the upcoming invoice?
yes
I want the customer to pay immediately
current month prorate amount will pay immediately, next month amount will to pay in the upcoming invoice
then you call the Update Subscription endpoint (https://docs.stripe.com/api/subscriptions/update) and set:
- the
quantityyou want - and also
proration_behavior: always_invoice
another one scenario is
i want add new item and current month prorate amount will pay immediately, next month amount will to pay in the upcoming invoice
I'm not sure I completely understand. but for now, I recommend testing what I shared above in test mode, and see if it works for you.