#jd-dev_api
1 messages ยท Page 1 of 1 (latest)
๐ 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/1430154288470036613
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
๐ Hi there! Let me take a look
alright waiting for you
The amount_details.line_items field isn't included as part of a Payment Intent object by default, but it can be expanded: https://docs.stripe.com/api/payment_intents/object#payment_intent_object-amount_details-line_items
So to receive the expanded line items in the response, you would need to include expand: ['amount_details.line_items'] in your creation request
hey i dont' see any details about the api link you shared... i tried to use the expand but it's giving me error... check out this req_ns8L5FoWmawFQu
can you confirm that i am using the correct api version because that the version recomended in the line items documentation i shared earlier
Yeah, sorry, I shared a non-preview version of the docs. This should be the correct URL: https://docs.stripe.com/api/payment_intents/object?api-version=2025-09-30.preview&rds=1&lang=node#payment_intent_object-amount_details-line_items
It looks like you've got too many quotes: "'amount_details.line_items'"
al right thanks for your help... i just have one last question if we can expand it it means that there is a seperate api that we can use to just fetch these line items instead of expanding payment intent... can you give me a reference of that api? because i couldn't find it... thanks
Let me take a look, but I believe it's just part of the Payment Intent API
alright thanks anyway