#a2e_lance-dutch

1 messages ¡ Page 1 of 1 (latest)

fathom orbitBOT
#

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

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

pine hearth
#

hi

wheat mauve
pine hearth
#

I am not seeing the request show up in the developer logs but here is a screenshot of me calling it

wheat mauve
#

What did you expect to see here?

#

I deleted your messages as it has your customer's full name

#

This is a public server so I want to be careful

#

Please note that there is not 100% parity between the dashboard and the API

#

Do you how you updated the refund to surface that?

fathom orbitBOT
pine hearth
#

Our customer-service team submits the refund. They go to the payment -> hit ellipses to refund -> fill out refund form which includes the free-text box.

#

Is there a way to access the data from the free-text box?

urban needle
#

Unfortunately not, I just double checked and that timeline entry is in a separate object called a Note and only the dashboard can make or retrieve them. I can add to the feedback requesting to expose this in our REST API as well but for now there isn't a way of accessing it programmatically that I'm aware of.

pine hearth
#

ah that's unfortunate... is there another way we can add metadata to the invoice that's accessible?

urban needle
#

Yes, albeit you may need to apply it via the API in certain webhook events depending on what you mean there. Can you tell me more about what metadata you want to apply and when?

pine hearth
#

We have a set of our own "refund reason" codes we would like to attach to the invoice when we issue a refund. This helps us in our reporting to understand why a refund takes place.

#

Ideally, this can be applied by a customer service agent on the stripe dashboard directly

#

and accessible to get via API

urban needle
#

Gotcha, it is possible to set object metadata via the dashboard but unfortunately it isn't possible to set that via the refund dialogue when creating a refund. So technically possible, but it would be a more manual process with extra clicks and typing.

#

Not thinking of a better option that uses the dashboard though unfortunately. Like the only other thing I can think of that fits would be to create a Stripe App that shows on your invoices dashboard page and lets you specify this info in it, you can make whatever API calls you want through the app so this would be possible, but that is quite a bit of dev overhead for that.

pine hearth
#

Ah I see.
Going back to the object metadata option... can the same be done on the Payment Intent object?