#zonos-dustin
1 messages ยท Page 1 of 1 (latest)
Hello ๐
Can you share an example invoice/request ID you're working with so that I am on the same page?
req_vJyBP164byqr22
in_1N5WOjLTGhL6KyayP2zoNLJ2
Cool thanks for sharing these,
so your invoice has
50000 quantity x Line Item 1
50000 quantity x Line item 2
1 quantity x Line item 3
Total amount = $552
The credit note you're trying to generate is for
5000 quantity x Line Item 1
5000 quantity x Line Item 2
1 quantity x Line Item 3
Correct. The resulting credit appeared to default and allocate to out_of_band_amount. I was hoping to have the resulting amount to apply to credit_amount to apply a credit on the account.
Ah gotcha. I think you'd need to specify the credit_note amount here since its a paid invoice
Ok. So there is no way to change the default behavior or flag it to allocate the calculated total to that field? I should calculate the refund value and pass it in the credit_note field?
Yeah unfortunately not possible with the API today. You'd need to pass the amount manually to credit_note field
Sure thing!
My invoices in this scenario are a product of a subscription billing period that has ended.
The test I was doing was a credit after an invoice was created and finalized.
I will have credit notes that I will need to create before the billing period has ended. Is there a way to stage a credit note line item so that when an invoice is created, it will include the credit notes? Much like how pending invoice items behave?
๐ hopping in here since hanzo has to head out
Ok thx.
The only way I can think to accomplish this is to hold pending credit notes on my end, and wait for a webhook for the invoice to be created, then creating those credit notes within the invoice finalization period. But if there is an easier way, I would love to know.
If you're asking whether it's possible to create a credit note for an Invoice that hasn't yet been created then the answer is no
Can you clarify why you want this behavior though? This is the first time I've heard someone ask for thisx
We are using Subscription usage to bill for different fees for our services on orders.
For instance, a customer has a weekly subscription where we subscribe them to a set of fees.
In this test scenario, we have 3 subscription items:
- A percentage based fee
- A per order fee
- A net amount fee (for a total that we pay on their behalf)
We do this so we can manage pricing in Stripe for discounts, tiered pricing, etc.
All these fees aggregate under a subscription item usage. If there is a partial or full refund on an order, we do not want to decrease the usage, we just want to append credit notes to the invoice for each order refund.
However, if it is within the billing period, we need a way to submit that refund, and I would prefer to keep it the same way wether we are in the billing period, or after.
Ahhh I see - the issue here is that you metered prices are billed at the END of the period so there's no invoice to add the credit note to until after the period is over
Correct.
Gotcha - definitely an interesting case there
Unfortunately there isn't really a way around that for now - you'd have keep track of those pending credit notes yourself.
Ok. That's what I thought. Thank you
When a subscription hits it's period end, how much time would we have to add the credit notes before the invoice is locked?
You'd have around an hour - but you can always extend that time if you want (by setting auto_advance: false when the Invoice is created so that it doesn't get automatically finalized)
But also for credit notes you can add them even after the Invoice has been finalized
True. I think the customer experience would be better to reduce the invoice amount if the given billable item was refunded before the billing period ended.
Is there any documentation on that time window following the end of the subscription?
Yup we talk about it here https://stripe.com/docs/billing/invoices/subscription#adding-draft-invoice-items