#NESH

1 messages · Page 1 of 1 (latest)

uncut fogBOT
slender vault
#

Hi! Let me help you with this.

#

That doesn't seem right. That's an updated event, in fact. Could you please share the event ID please?

storm sky
#

source customer portal:
evt_1NXNTHJbFADqUCtGvKgcFlFw

source api:
evt_1NXNTOJbFADqUCtGvwVdiPI4

I catch subscription updated event and handle the cancellation:

#

in both cases subscription.status was active and I ended up with handling same "event" twice

slender vault
#

Only one of these events has the status changed.

storm sky
#

what should i look for in this case, to check if cancel_at_period_end went from false to true?

slender vault
#

Yes

storm sky
#

how to access previous attributes in .net sdk

slender vault
#

It should be a part of JSON request body. You are able to see it if you print the event payload?

storm sky
#

I see it, I was thinking more is there a chance to access properties of the "PreviousAttributes" with fluent API, something like this

slender vault
#

Is it working? Sorry, I am not that familiar with .NET

storm sky
#

ah okay. No, it's not working this way as it needs some parsing from json first I guess

slender vault