#eric-j_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/1479436543520145468
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
๐ You should be able to find the shipping_details nested within the collected_information on the Checkout Session
Oh! I thought that was to be used when Updating a Checkout Session to supply previously collected shipping information from elsewhere? Maybe I'm wrong!
It can actually be used that way too, but it will also contain the customer-supplied details from the session too
Also, there used to be a top-level shipping_details field, so that may be why you were expecting it there, but this got moved into collected_information about a year ago: https://docs.stripe.com/changelog/basil/2025-03-31/checkout-session-remove-shipping-details
To caveat this, it can only be set when updating embedded or custom sessions: https://docs.stripe.com/api/checkout/sessions/update#update_checkout_session-collected_information
Ok got it! Thank you, will try it out. Since I can see it in the documentation when the latest version is selected I expected it to be there.
"shipping_cost": null,
"shipping_details": null,
"shipping_options": [],