#hashgari - Metadata
1 messages · Page 1 of 1 (latest)
Can you paste that Price ID here for me?
price_1Jv7tTJBHDfeY42yhNCo3vmo
Thanks, looking...
That Price has no metadata.
Where did you set the metadata you expect to see there?
Using the Stripe::InvoiceItem.create The returned object shows the metadata was accepted.
Can you give me the request ID for that? Here's how you can find a request ID: https://support.stripe.com/questions/finding-the-id-for-an-api-request
req_mfnoLCfiBaOaAL
That request ID relates to this object price_1JwBoHJBHDfeY42yjRFlGogq
Still no metadata shown
Looking...
Ah, okay, so the problem is that Price metadata and Invoice Item metadata are separate and distinct. You can view Price metadata in the Dashboard, but I don't believe Invoice Item metadata can be viewed in the Dashboard.
How are the InvoiceItem and Price objects related in this sense? Why when I create an InvoiceItem it shows me an archived price?
An Invoice Item represents a specific item on a specific Invoice. A Price represents one way a Product gets paid for (amount, recurring info, etc.). An Invoice Item will often represent the application of a Price to a specific Invoice.
Is there a way to pass the metadata to the newly created price without making an additional call? I noticed the price_data attribute but cannot pass more meta_data.
At a high level what are you trying to do? I think it would help if I had more details about the flow you're trying to build.
I have users subscribe to a free service which allows them access to do more within the application. One such feature is the ability to purchase leads (sales lead). When they purchase leads, I use the create and invoice item API to add it to their subscription so at the end of their billing cycle they are billed for the free subscription but any leads they purchased. With each invoiceitem I create, I pass in database related metadata to keep track of exactly what ids they are purchasing, etc. I would like this data to be available within the Dashboard.