#vinkesh
1 messages · Page 1 of 1 (latest)
Hi there, how can I help?
I have scenario where a customer needs to pay 1000 in 3 installment with discount of 100
so coupon amount is 33.33 for each payment
Is there is way i can 33.34 on one of the installemnts
in palce of 33.33
using api
So it's a monthly subscription, and you want to apply a different discount for the 3rd month?
yes
Ok, you can crate subscription schedule with two phases
- for the 1st two months, apply a coupon with 33.33 discount
- for the 3rd month, apply a coupon with 33.34 discount
so in this case i need to create 2 different coupon
Yes you are right
okay
one other scenario same for back date subscription
1000 payment 333 each i know that we can add invoiceitem for future/current subscription what we need to do for the back date
Is there is way to 334 on one of the payment
I'm not sure if I understand you
okay let me rephrase
i have subscription that is supposed to start last month but customer register this month. amount will be 1000 in 3 installments. it'll 666 for first as they registered late but Is there is way i can grab 334 for last month in place of 333
so that i can have whole payments of 1000 in place of 999
Add an invoice item of $1 for the 2nd invoice (i.e., last month's invoice)
how any exmaple i can follow
No I don't have an example, https://stripe.com/docs/api/invoiceitems/create this it he API to create an invoice item.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
i know how to create invoice item
But not sure how to tell which invoice to add invoice item
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
not sure but its not clear It is an example of 3 but there can be 6-7 installments