#arvindkgs-Invoice

1 messages · Page 1 of 1 (latest)

slow bane
#

Hi there, I can see you applied two discounts to this invoice, and this request is successful.

brisk sable
#

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?

slow bane
#

The discount is reflected in total_discount_amounts

brisk sable
#

@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

slow bane
#

Can you send me the webpage URL?

brisk sable
#

@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

slow bane
#

billing_cycle_anchor is a param for subscription, how did you use this param?

brisk sable
#

@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

slow bane
#

Ok, did you also apply the discount to the subscription?

brisk sable
#

@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

slow bane
#

can you send me the ID of this new subscription?

brisk sable
#

Subscription ID without billing_anchor - sub_1KVXxPBuQq6cUmE7yQ0MhJbS
the resulting invoice ID that applies discount - in_1KVXxPBuQq6cUmE7NQORC7Xt

slow bane
#

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

brisk sable
#

Sure