#でんでんAIO-webhook

1 messages · Page 1 of 1 (latest)

daring pulsar
#

Can you give an example where are you seeing those?

#

the properties should be listed there

terse barn
#

I did a check here.

daring pulsar
#

Yes that's correct. where do you see subscription_cycle and subscription_update?

terse barn
#

In the billing reason of the invoice object.

#

The relevant section reads as follows

#

billing_reason
string
Indicates the reason why the invoice was created. subscription_cycle indicates an invoice created by a subscription advancing into a new period. subscription_create indicates an invoice created due to creating a subscription. subscription_update indicates an invoice created due to updating a subscription. subscription is set for all old invoices to indicate either a change to a subscription or a period advancement. manual is set for all invoices unrelated to a subscription (for example: created via the invoice editor). The upcoming value is reserved for simulated invoices per the upcoming invoice endpoint. subscription_threshold indicates an invoice created due to a billing threshold being reached.

daring pulsar
#

ah that's value for the billing_reason parameter

#

It's pretty much explained there, isn't it?

#

subscription_update is from when the Subscription is updated via API, i.e Update Subscription API

#

subscription_cycle is from when it's automatically renewed

terse barn
#

So the webhook that occurs when a customer makes a recurring payment is subscription_cycle?

daring pulsar
#

yes

terse barn
#

OK!Thank you!