#sam-porter-bridges_api
1 messages ยท Page 1 of 1 (latest)
๐ 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/1289241070026358857
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi there ๐ I'm working on double checking, but am fairly certain this isn't something that is supported currently and that your workaround would be a good approach.
any idea if Stripe has plans to improve upon that?
Ah, so you can't put the metadata on the invoice line items, but there is a way to pass metadata to the Invoice object via invoice_creation.invoice_data.metadata:
https://docs.stripe.com/api/checkout/sessions/create#create_checkout_session-invoice_creation-invoice_data-metadata
I saw that, i do plan to use that. that gets me about 75% of the way there. i can handle the rest by checking the price ID on each line item to know which one is which class ID on our end, and then update the metadata
assuming i can still update invoice line item metadata on a paid invoice, yes?
I'm fairly certain you can. If my memory isn't failing me the only caveat that might exist there is if the invoice line item was created from a Subscription Item.
thanks for the clarification