#osweb
1 messages · Page 1 of 1 (latest)
Will the first month be more?
yes
Got it
Yeah you can create an invoice item for the first month's invoice: https://stripe.com/docs/api/invoiceitems/create
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
For the additional fee
thats the backend stuff that i will follow, do i need to change or add anything on the stripe dashboard in addition to messing with the back end ?
do i need to change my /create-subscribe logic and add the invoiceItem logic ?
Yes
You need to add invoice item at some point
either before sub is created
or after when first invoice is in draft
What do you mean?
for example, i should keep the create-sub logic as is, just add the invoiceItem logic before or after ?
Up to you
Recommend doing after so you can add invoice item directly to the draft invoice
awesome! i will do that, can you also share a doc on how to add an invoice item on stripe dash ?
Not sure
We don't know much about dashboard in here
I can help with api questions
got it, i'll try some stuff out and keep you posted. thank for your time.
No problem
Also since you'll be creating invoice item after subscription, you can pass the invoice id to apply it to here: https://stripe.com/docs/api/invoiceitems/create#create_invoiceitem-invoice (must be in draft state)
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.