#brotzka-de-en_best-practices

1 messages ยท Page 1 of 1 (latest)

raw harborBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always 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/1266327919911768087

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

neat dune
#

The only workaround I found would be to use webhooks and listen to the invoice.created event pulling the metadata from the parent subscription and adding it to the invoice

meager pond
#

๐Ÿ‘‹ happy to help

#

Hey ๐Ÿ˜‰ Is it possible to have metadata from a subscription automatically synced/added to all subsequent invoices?
that's already the case

neat dune
#

Oh, that's great! Thank you ๐Ÿ™‚

raw harborBOT
neat dune
#

And this works for invoices that are automatically generated by an subscription as well?

daring knoll
neat dune
#

Ah, I see. Is this searchable as well?

daring knoll
neat dune
#

๐Ÿ˜„

#

Okay.. But then I think that I need to work with webhooks.. I need some of the metafields from a subscription directly as searchable metadata on the invoice.

daring knoll
#

you can call the Invoice.update API whenever an invoice is created and copy the subscription metadata manually