#hashgari - Metadata

1 messages · Page 1 of 1 (latest)

cedar jungle
#

Hello! Can you share a screenshot of what you're seeing?

grave topaz
#

Sure! One moment.

cedar jungle
#

Can you paste that Price ID here for me?

grave topaz
#

price_1Jv7tTJBHDfeY42yhNCo3vmo

cedar jungle
#

Thanks, looking...

#

That Price has no metadata.

#

Where did you set the metadata you expect to see there?

grave topaz
#

Using the Stripe::InvoiceItem.create The returned object shows the metadata was accepted.

cedar jungle
grave topaz
#

req_mfnoLCfiBaOaAL

#

That request ID relates to this object price_1JwBoHJBHDfeY42yjRFlGogq

#

Still no metadata shown

cedar jungle
#

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.

grave topaz
#

How are the InvoiceItem and Price objects related in this sense? Why when I create an InvoiceItem it shows me an archived price?

cedar jungle
#

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.

grave topaz
#

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.

cedar jungle
#

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.

grave topaz
#

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.