#maxv9161_api

1 messages ¡ Page 1 of 1 (latest)

bronze jungleBOT
#

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

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

versed needle
#

hi there!

#

can you share the request ID (req_xxx) where you used expand?

scenic atlas
#

Hello,
Yes, one sec

#

Cannot find it for some reason, this is the request that I sent
Request to Stripe: {
api_version: '2025-04-30.preview',
method: 'GET',
path: '/v1/payment_intents/pi_3SDkI9FdCE6n8elI0bwP4F6p?expand[0]=amount_details',
request_start_time: 1759403099807
}

versed needle
#

I would need the request ID. let me see if I can find it myself.

#

did you made the request recently? like a few minutes ago? otherwise can you resend the request?

#

there you only expand amount_details, but I think you want to exmapd amount_details.line_items.

scenic atlas
#

Oh yeah, wow. that was it, I missed it, thank you!

On the same topic, is there any way to verify that the data I sent is viable? (at least by sent what is needed).
Went via the document but wondering if there is a better way to validate?

versed needle
#

assuming your are following the doc and API calls are successful, then it should be correct! I'm not aware of any way to validate this further.

scenic atlas
#

Got it,
And another question, all the request should be made with 2025-04-30.preview ?
For example the confirm is made with the default version

versed needle
#

when you set amount_details you have to use the preview version. but for other API calls you don't have to.

scenic atlas
#

emm not sure I understand.
If I use confirm for payment_intent where I have amount_details will it matter if for that call I use the preview version or the regular one?

versed needle
#

but you don't set amount_details when you call /confirm, so it doesn't matter.

scenic atlas
#

got it
Thank you!