#JohnTheFrog
1 messages ยท Page 1 of 1 (latest)
Hello JohnTheFrog, we'll be with you shortly! 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.
โข https://discord.com/channels/841573134531821608/1163405312250875925, 2 days ago, 8 messages
Let's say I have a 4 positions on bought subscirption, and a promotional code for one of them. Is this possible?
What do you mean by "4 positions"?
Are the promo codes are for the whole subscription?
I want to apply i.e. 5% discount on a one position, not all 4 that user is going to buy
and display that position discount on invoice
is my way of thinking right, or this does not work like that?
But what is "position"? You mentioned that word multiple time, but never explained it.
The position is invoiceItem
Oh, now that makes sense ๐
Probably I am looking for something like
invoices->retrieve(in_aaaa, [ `expand' => 'invoiceItem.product.coupon'
but I am just guessing (a lot)
Having a look.
YEs it looks like each invoice item can have a discount: https://stripe.com/docs/api/invoices/line_item
so when you retrieve an Invoice, you can use expand: ["lines"] to check if the line has a descount or not applied
Oh ok thanks
Happy to help ๐
๐ taking over for my colleague. Let me know if there's any follow-up Qs I can answer!
No, thakn you : )