#smitit1999_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/1230483495881801898
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
👋 happy to help
Thanks!
I understand that it is the expected behavior. But why is it so? Shouldn't a line item with type subscription have the metadata of the corresponding subscription item. It doesn't make any sense to have the subscription's metadata on the line item.
I don't think they map in this way
you can always get back to the subscription's items and get the metadata from there
yeah but I am anyways relying on the webhook and iterating over the invoice item and for each item with type subscription I would have to go ahead and make an external call to fetch the subscripiton item :/
what are you trying to achieve exactly here?
so I want to sort the line items of an invoice based on a custom logic and for that I add the field in the metadata. For line items with type invoice item it works fine because the metadata is readily available but for line items with type subscription invoices the information isn't readily available as the metadata from subscription item isn't copied to the line item. So I would have to fetch the subscription item every time I have to sort the invoice which is a hindrance for me.