#dineshkumar_error

1 messages ยท Page 1 of 1 (latest)

glossy krakenBOT
#

๐Ÿ‘‹ 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.

uneven hemlock
fervent badger
#

this request ID req_9wMQQfxkk7rjS8

uneven hemlock
#

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

fervent badger
#

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...

uneven hemlock
fervent badger
uneven hemlock
fervent badger
glossy krakenBOT
primal loom
#

๐Ÿ‘‹ taking over for my colleague. Let me catch up.

#

you just need to add proration_behavior: always_invoice to get the prorations applied

fervent badger
#

yes i added already in this subscription sub_1QNBcWBUmBAZBIgt8j0U1KOI

primal loom
#

what's the issue exactly?

fervent badger
#

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",               
        };
primal loom
#

would you mind sharing the request ID?

fervent badger
#

i get invoice is

#

in_1QNBcWBUmBAZBIgtfokUbuLK

primal loom
#

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)

fervent badger
#

request id is req_Bo7X4AH0kh0Fli

primal loom
#

and the proration will be calculated accordingly

fervent badger
#

subscription id is sub_1QNBcWBUmBAZBIgt8j0U1KOI

primal loom
#

yes I saw it

#

and the result is expected

#

I'm not sure what's your question though

fervent badger
#

upcoming invoice is fine

#

i want add same prodcut priceid price_1qfh2vbumbazbigtyv51p81a or price_1omrztbumbazbigtocr7ti0u any one or both for upcoming invocie..

primal loom
#

you already did no?

fervent badger
#

i alrady no did

primal loom
#

@fervent badger I'm not following

fervent badger
#

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

primal loom
#

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

fervent badger
#

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

primal loom
#

if it's the same price you just need to update the quantity

fervent badger
#

ok

#

please give me example code and doc for update the quantity

#

current month prorate amount we will get immediately, when update the quantity?

primal loom
fervent badger
#

ok

primal loom
fervent badger
#

oh ok..

#

also we can add new subscription item on exsiting subscription correct?

primal loom
#

yes

fervent badger
#

add new subscription item on exsiting subscription , for this please give example code and docs..

onyx escarp
#

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?

fervent badger
#

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

onyx escarp
fervent badger
#

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

onyx escarp
#

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.

fervent badger
#

ok

#

sure, i will test , thanks for help...