#DavidGallardo-invoices

1 messages · Page 1 of 1 (latest)

dim grove
#

hello! can you share the request id? And what you were expecting to see instead?

terse thicket
#

hello

#

req_gNa5SAPsfwHKC1

#

Response with 0 amount for pay

vast crow
#

Can you share the API response to that request? We don't log them so I can't see it

terse thicket
#

Yes, response, but with 0

vast crow
#

Can you paste the full JSON response please

#

(remove any PII)

terse thicket
vast crow
#

Looks like there's a discount applied:

"discount": {
    "id": "di_1KswRUFM9jDuA8CD280fD8w9",
    "object": "discount",
    "checkout_session": null,
    "coupon": {
      "id": "Xa3X7zb9",
      "object": "coupon",
      "amount_off": 32369,
      "created": 1650354309,
      "currency": "eur",
      "duration": "forever",
      "duration_in_months": null,
      "livemode": true,
      "max_redemptions": null,
      "metadata": {},
      "name": "Lourdes",
      "percent_off": null,
      "redeem_by": null,
      "times_redeemed": 1,
      "valid": false
    },
    "customer": "cus_GcnT4AA7tcEsKS",
    "end": null,
    "invoice": null,
    "invoice_item": null,
    "promotion_code": null,
    "start": 1651010400,
    "subscription": "sub_1KswRUFM9jDuA8CDA2ImFAQQ"
  },
#

Hmmm, don't think that's for the full amount

#

Ah, I think its because you're passing both subscription & subscription_items paramaters

#

You can't use both

#

So in this example, sub_1KswRUFM9jDuA8CDA2ImFAQQ is subscribed to price_1LE88nFM9jDuA8CDECIUI51S

#

But there's also the existing discount on the sub, which deducts €323,69

terse thicket
#

How to remove discount?

#

I dont see in Stripe Dashboard

#

To calculate the cost I have to add the existing subscription.

#

A line with the 39 items that you already have contracted
and two lines with the new different items that you are going to hire.
It returns the total to pay.

vast crow
#

You'd remove it from the subscription

terse thicket
vast crow
terse thicket
#

Thanks

#

i repair....

#

kissess, thank for all