#arvindkgs-Invoice
1 messages · Page 1 of 1 (latest)
Hi there, I can see you applied two discounts to this invoice, and this request is successful.
But the amount should have reduced right? I don't see the amount deducted from the invoice
@slow bane why doesn't the invoice reduce the amount_due if the discount is applied?
The discount is reflected in total_discount_amounts
@slow bane Why does the invoice web page not reflect it? Shouldn't it show the reduced amount?
@slow bane If I add discount coupon directly in the Stripe dashboard, I see the amout due reduced
Can you send me the webpage URL?
@slow bane I think it is because I am setting billing_cycle_anchor where I am setting it to a future date
@slow bane Removing billing_cycle_anchor applies the discount and the amount due is reduced.
@slow bane why does adding billing_cycle_anchor to a future date, not apply discount to the invoice amount_due
billing_cycle_anchor is a param for subscription, how did you use this param?
@slow bane I added to the subscription. I am setting it as follows -
{
"metadata": {
"tenant_id": "2cf19732-0c7b-42e4-a0a2-90fd9c0e7111"
},
"collection_method": "send_invoice",
"days_until_due": "30",
"backdate_start_date": "1645171200",
"items": {
"0": {
"quantity": "1",
"price": "price_1KVX9cBuQq6cUmE7iODbojye",
"tax_rates": {
"0": "txr_1KVKHvBuQq6cUmE7lvmOUWU2"
}
}
},
"billing_cycle_anchor": "1646121600",
"customer": "cus_LBuzt1dNfnCO2Z"
I want the billing anchor to the beginning of the month
@slow bane This is reproducible
Ok, did you also apply the discount to the subscription?
@slow bane Yes, I have tried it multiple times. Adding billing_cycle_anchor does not apply discounts to invoice. Not adding it applies the discount in the invoice. NOTE: though the invoice response shows discounts in total_discount_amounts it does not apply to the amount_due
can you send me the ID of this new subscription?
Subscription ID without billing_anchor - sub_1KVXxPBuQq6cUmE7yQ0MhJbS
the resulting invoice ID that applies discount - in_1KVXxPBuQq6cUmE7NQORC7Xt
@slow bane You can verify it here https://dashboard.stripe.com/test/invoices/in_1KVXxPBuQq6cUmE7NQORC7Xt
@slow bane JFYI earlier invoice that did not apply the discount - https://dashboard.stripe.com/test/invoices/in_1KVWi6BuQq6cUmE7CT28KGeO
And earlier associated subscription with billing_anchor https://dashboard.stripe.com/test/subscriptions/sub_1KVWi6BuQq6cUmE7CUenPg2X
I'm sorry but it seems like we cannot resolve the problem in the discord thread, can I ask you to write in to use and we'll follow up from the support ticket? https://support.stripe.com/contact
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
Sure