#mark-a_api

1 messages ¡ Page 1 of 1 (latest)

topaz frostBOT
#

👋 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/1308557702426791985

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

white ingot
#

Hi there

misty depot
#

Howdy

white ingot
misty depot
#

OK, excellent. I'll try that. Thank you.

white ingot
#

Sure thing!

misty depot
#

I'm not seeing an AddExtraParam option on the InvoiceItemPriceDataOptions. Is it someplace else? Also, the link you first pasted above (https://docs.stripe.com/api/invoiceitems/create#create_invoiceitem-price_data-metadata) briefly goes to the invoice item create section of the API docs, then within less than a second jumps to the beginning of the docs, as if the anchor is invalid or something. I'm using .net v47.0.0 and v2024-10-28.acacia for webhooks in our Test env.

white ingot
misty depot
#

Same thing. It jumps back to start of API docs. No data on invoice item price data metadata.

#

Might I be seeing different API docs based on our Live version of API, etc.?

white ingot
#

Ohh I see what you mean

#

Okay, so it looks like this functionality (adding metadata on an inline price) isn't available yet

misty depot
#

Bummer. Going to have to rethink this whole thing of inline prices. Any work-arounds?

white ingot
#

You can split this up into two: create the Price (with metadata) first, then create the InvoiceItem and use price instead of price_data

misty depot
#

This is for free-form Amounts, which seem to only be available with inline price or customer-chooses-price, which has other limitations.

#

Only other option I can think of is to retrieve the used inline price after the fact and assign metadata then, if at all possible.

#

Oh, or I gues I could create a one-off price wiht current amount.

white ingot
#

Hm, let me test that out. Inline price data is used to create a Price object but that Price object is automatically archived

white ingot
misty depot
#

ok, I'll try working with one of those options. Thank you.

#

One-off price seems like probably the best option here. Do you know if/when the ability to add the metadata there might be available? Seems like an oversight, as it's valid data in the Price object.

white ingot
#

I tested trying to add metadata to an inline price but received an error. since inline prices area automatically archived, they can't be updated after the fact

misty depot
#

OK, I'll go with the one-off price.

white ingot
#

This is something else to keep in mind if you ever needed/wanted to update metadata on those inline prices; you won't be able to

misty depot
#

Yep, OK. Thanks.

white ingot