#jegodin

1 messages · Page 1 of 1 (latest)

twilit agateBOT
wispy kettle
#

If you're seeing the coupon & discount applied, then I'd say so

#

This just means the coupon is removed from the customer (presumably after it is consumed by the invoice)

#

Can you share the event id of one of those events?

#

evt_123 eg

alpine lava
#

Here's part of the flow in order:

2022-11-17 09:43:46   --> customer.discount.created [evt_1M5AFhK2lJUey1SqDmWPBJPg]
2022-11-17 09:43:46   --> customer.discount.deleted [evt_1M5AFhK2lJUey1Sq7dvfnx28]
2022-11-17 09:43:46   --> invoice.created [evt_1M5AFiK2lJUey1Sq1LJCKC1j]
2022-11-17 09:43:46   --> invoice.finalized [evt_1M5AFiK2lJUey1SqTtwMQksG]
2022-11-17 09:43:46   --> invoice.paid [evt_1M5AFiK2lJUey1SqrmINw4Yy]
2022-11-17 09:43:47   --> invoice.payment_succeeded [evt_1M5AFjK2lJUey1SqvUiBJKhh]
2022-11-17 09:43:47   --> customer.subscription.created [evt_1M5AFjK2lJUey1Sqk8BpfoNg]
#

I can give you the whole list of events for this checkout if it helps.

wispy kettle
#

Yep, so it makes sense that these happen all at once, since you create the subscription with the coupon and it gets used right away

alpine lava
#

I guess it's okay, looking at the invoice created event, i suppose this reads as we applied a reoccurring membership for $199/year and on this invoice it's discounted by $199, is that correct @wispy kettle

          {
            "id": "sli_1e7024K2lJUey1Sqe0fbcd53",
            "object": "line_item",
            "amount": 19900,
            "amount_excluding_tax": 19900,
            "currency": "usd",
            "description": "1 × Membership Subscription (Use This One) (at $199.00 / year)",
            "discount_amounts": [
              {
                "amount": 19900,
                "discount": "di_1M5AFeK2lJUey1SqO7o0TaA8"
              }
            ],
            "discountable": true,
            "discounts": [],
            "livemode": false,
            "metadata": {},
            "period": {
              "end": 1700235822,
              "start": 1668699822
            }
inner storm
#

Hello! I'm taking over and catching up...

#

Yep, that's correct!