#narnau

1 messages · Page 1 of 1 (latest)

void apexBOT
vagrant fractal
#

Hi there

astral plover
#

So, first I've to create the subscription, and then create a separate invoiceItem?

#

Because if I try to add he discountable:false to the add_invoice_item object, stripe throws an error

vagrant fractal
#

You would create the Invoice Item and then create the Subscription

#

That way the initial Invoice for the Subscription will pick up the Invoice Item

#

The add_invoice_item param on the Subscription endpoint doesn't support discountable

#

So you have to use the Invoice Item endpoint directly

astral plover
#

Okay, so I create the invoice item without any subscription, then I create the subscription, and then? I don't have to tell the invoice item which subscription is related to it?

vagrant fractal
#

Nope if you don't specify any Sub or Invoice when creating the Invoice Item the next finalized Invoice will pick up that Invoice Item

astral plover
#

ah, ok...!

vagrant fractal
#

Since you haven't created the Sub yet you can't specify it 🙂

#

And you don't want to create the Sub first because then the Invoice will already be finalized

astral plover
#

Now I understand. It's weird but at least now I understand haha

vagrant fractal
#

Yeah a little strange

#

Would be easier if add_invoice_item supported discountable

#

Hopefully in the future it will

astral plover
#

thank you @vagrant fractal !