#zeb_subscriptionitem-metatadata

1 messages ยท Page 1 of 1 (latest)

tribal bayBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).

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

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

simple sail
#

Hi ๐Ÿ‘‹

I've reviewied the Subscription and the request you used to update it and I see the metadata. Can you clarify what API requests you are making where you do not see the metadata present?

sage spear
#

But also, just viewing the upcoming invoice in the subscription page on the dashboard

#

That's what I mean about Dev Tools--I thought maybe the Metadata just wasn't visible on the invoice page, but it's now {}, and I haven't done a local mutation since the subscription update with the request ID I linked.

simple sail
#

Sorry I can't view that link and we don't know much about what the Dashboard does and doesn't display.

#

But looking at that URL, it looks like you are looking at the Invoice

#

Metadata set on the Subscription does not copy to the invoice

sage spear
#

"items": {
"object": "list",
"data": [
{
"id": "si_QE4qutc8pcMnB0",
"object": "subscription_item",
"billing_thresholds": null,
"created": 1717428027,
"discounts": [],
"metadata": {
"classUIDs": "- 665a34e2860874cf728263e8 - 665a34e3860874cf728263ec - 665a34e4860874cf728263f0 -",
"description": "Classes for the next billing cycle:665a34e2860874cf728263e8 at Jun 7 at 9:00 AM665a34e3860874cf728263ec at Jun 10 at 9:00 AM665a34e4860874cf728263f0 at Jun 11 at 9:30 AM"
},

#

^^that's where I'm seeing the metadata come back.

simple sail
#

Yup, on the Subscription Item

sage spear
#

Setting on items.metadata within the subscription, with the hopes that I would be able to see it anywhere

#

Invoice page, subscription, I don't mind

#

OK cool, I have it in the Network request...is there a way for me to surface it / customize the sub page so non-devs can see it?

simple sail
#
  1. As I said, I cannot speak to what the Dashboard will display but you can always see it in the API if you retrieve the Subscription
  2. Invoice Items are generated from Subscription Items but they are not the same and the metadata will not propagate
sage spear
#

Is there someone who does know what the dashboard can display?

#

At this point, that's all I need, feels super-close now that you directed me away from the Invoice request-and-page

simple sail
#

This server is specific to helping developers integrate with Stripe APIs so that is what we are experts in. For help with the Dashboard, I recommend you reach out to Support here: https://support.stripe.com/contact

sage spear
#

All good man, I'll just set metadata on the subscription itself. Thanks for rubber-ducking!

simple sail
#

Happy to help talk it out ๐Ÿ™‚