#joshualaba

1 messages · Page 1 of 1 (latest)

quartz jacinthBOT
onyx nimbus
#

How can I help?

mystic ibex
#

Is there someone I can know all the cases in which the above event will be sent via webhook?

onyx nimbus
#

Occurs whenever a subscription changes (e.g., switching from one plan to another, or changing the status from trial to active).

mystic ibex
#

Yeah i saw that

#

I have an issue:
For example:

  1. When I create a new subscription,
  2. My card gets charged so i receive invoice.paid

I also receive a customer.subscription_updated but this shouldnt happen right?

onyx nimbus
#

What's your subscription ID?

mystic ibex
#

Im doing it on trial

#

test**

#

But 1 moment

#

sub_1NYVRWIbfASDb7isdik9FTUH

#

Are u able to check for me

onyx nimbus
#

Sure one sec

mystic ibex
#

Thank u

onyx nimbus
#

If you check its previous_attributes hash

    default_payment_method: null,
    status: "incomplete"
  }

The status was incomplete and now active, that's why you have a customer.subscription.updated event

mystic ibex
#

the status is originally incomplete -> active

#

so when does this status change occur?

onyx nimbus
#

When the first invoice is paid successfully.

mystic ibex
#

is there a place where I can check all the status changes?

Also 1 more qn, does the updated event occur when subscription renews?

onyx nimbus
#

As I explained before, any changes to the subscription will trigger that event.

#

Yes

mystic ibex
#

Okayy

#

Is it right to say all subscriptions start w an incomplete status and only change to active when the 1st payment is made?
What if I update an exisiting subscription, does the status go back to incomplete if payment is not yet made for it?

onyx nimbus
#

It depends on what is updated on the subscription.

#

Can you tell me what probem you are trying to solve?

mystic ibex
#

I want to be able to track the customer.subscription_updated only when customers change a plan eg amount or billing date etc.

onyx nimbus
#

Listen to customer.subscription.updated then

mystic ibex
#

I think this is good enough for now, thanks jack! have a good day