#gecko-invoices-subs

1 messages · Page 1 of 1 (latest)

hexed lance
#

Hi there. When using Subscriptions, the Subscription automatically generates an invoice at the beginning of each billing_cycle. So yes, all invoices that are related to a Subscription will be the original Subscription.

fluid whale
#

Hi Bismarck

#

Great. So the subscription is same. Invoice and payment intent will be period specific values. Right?

hexed lance
#

Pretty much, yes.

fluid whale
#

Any metadata that is used from checkout session will not be preserved in future invoices. Correct?

hexed lance
#

Sorry, missed this follow up

#

No I don't believe so. The metadata from the Checkout Session that you pass with subscription_data.metadata will get carried down to the Subsription object's metadata. But that metadata won't appear on the invoices.

fluid whale
#

Ok I assumed so. It means that I can’t query a subscription (expand) from an invoice’s subscription ID, and expect to find the metadata preserved in future periods. Correct?

hexed lance
#

That should work just fine.

fluid whale
#

@hexed lance (tagging in case this scrolled up past your current cases. Apologies if it annoyed. )

#

😅

hexed lance
#

Yeah no need to tag

fluid whale
#

So metadata is preserved?

hexed lance
#

You should be able to retrieve an invoice at any point and expand the Sub and the original metadata on the Subscription will be there

fluid whale
#

Ok. Wow. Didn’t expect. Thanks!

#

Thought I had to do it on my side

#

Thanks much for great advice as always!