#sai-rez_webhooks

1 messages ¡ Page 1 of 1 (latest)

patent shaleBOT
fickle widgetBOT
#

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

patent shaleBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1258007603280085007

📝 Have more to share? Add details, code, screenshots, videos, etc. below.

fallow python
#

hi! well there's a created field on the Subscription object that's in the event, for example.

regal citrus
#

Hey! I did notice that but wondered how that would work in a condition? I have some logic that I only want to run once when a sub has just become active

fallow python
#

created >=(now - 5 minutes)

something like that? depends what you're looking for.

regal citrus
#

I worry that might not work for users that fail but then come back to confirm after a time if that makes sense

#

My previous solutions seems to work except for the 100% discount case

fallow python
#

is there a reason you don't just use invoice.paid for this?

#

invoice.paid + invoice.billing_reason="subscription_create" === "new subscription just been paid for(or had a discount) , give the customer access to the product".

regal citrus
#

Hmm that's interesting! To confirm, for future invoice.paid events , what would the invoice.billing_reason be?

fallow python
#

subscription_cycle

regal citrus
#

Ok nice, I'll have a play around with the invoice.paid event and see, thanks for providing the docs!