#nachofranco-subs-invoice-metadata

1 messages ยท Page 1 of 1 (latest)

maiden badgeBOT
small shuttle
#

I don't believe we support that.
Can you elaborate on the usecase?

fresh kite
#

yes, I created a subscription with metadata={"my_id": "abcde"} and for that I have set up the webhook for the invoice.create event, I'd like to receive the metadata of the subscription as part of the metadata of the invoice, so with {"my_id": "abcde"} I can tell which is the related internal resource and company (I'm handling within the same app a set of different stripe accounts)

small shuttle
#

An Invoice should have the subscription_details[metadata] property which is a snapshot of the Subscription metadata at the time of Invoice finalization.

fresh kite
#

in short, is there a way to make a passthrough of that metadata I have in the subscription to the invoice?

small shuttle
#

sorry for the wrong answer earlier

fresh kite
#

but not at the invoice.created event, right?

small shuttle
#

Not at creation, no.

fresh kite
#

๐Ÿ˜ฆ

#

ok, that's all, I'll try to find another way to handle it

small shuttle
#

Hang on, double checking something

fresh kite
#

sure, any help is very welcomed!

small shuttle
#

Can you share ID of the test subscription you created?

fresh kite
#

sure, one sec

maiden badgeBOT
#

nachofranco-subs-invoice-metadata

fresh kite
#

looks like it's there!

#

invoice.created event, invoice object has subscription_details.metadata from the subscription

#

๐Ÿ˜„