#A M
1 messages · Page 1 of 1 (latest)
Hi there, can you share with me the subscription ID?
OK. When your customer is on trial, Stripe will not charge them until the trial ends. When you set trial_end to now, it tells Stripe to end the trial start the charging the customer immediately, and that's why an invoice was generated and the billing_cycle_anchor is updated to 2022-12-20
So when will I get a webhook that says your billing_cycle_anchor is now 2023-01-20?
Because I was under the impression that each month when an invoice will be created, the billing_cycle_anchor will be the next billing date. Meaning on 2023-01-20, it will process the invoice and I will get 2023-02-20 as billing_cycle_anchor. Isn't it true?
Here is the description I read on Stripe documentation.
billing_cycle_anchor
(timestamp)
Determines the date of the first full invoice, and, for plans with month or year intervals, the day of the month for subsequent invoices. The timestamp is in UTC format.
Can you share with me the webhook event ID?
evt_1MGzB1SDcNFSccSa9WYiKIjC
No, the billing_cycle_anchor is not the next billing date.
Ok, can you tell me which field from the webhook we can pick as next_billing_date?
You can use current_period_end https://stripe.com/docs/api/subscriptions/object#subscription_object-current_period_end
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Ok, thank you for the help and assistance. Bye for now