#marve_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/1392608802251210922
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi hi! Can you tell me more about what exactly you're trying to accomplish?
So what we want to do is pass some key value pairs to our products and prices so that when a user subscribes to one of these and the invoices are created, we can access this metadata through the line items and query our db more easily (we want to store our own ids in the metadata)
Am i making sense?
You can add metadata to the Subscription that gets created, but I don't think you can add it to the one-off line items you're creating.
O got it, so can't do it per line item
Because the field does exist: https://docs.stripe.com/api/invoices/object?api-version=2025-06-30.basil#invoice_object-lines-data-metadata
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
But maybe has to be added per subscription line item at some point? I'm not sure (we're using checkout).
You can update a Line Item to add metadata: https://docs.stripe.com/api/invoice-line-item/update#update_line-metadata
You're right, i dont see the possibility to add metadata to line items from checkout session
Thing is we want this metadata to be in every line items in every invoice created subscriptions
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Actually yep, you're right - that should work.