#petersilie1709
1 messages · Page 1 of 1 (latest)
Hello 👋
The receipt_number field on the charge object would get you that
https://stripe.com/docs/api/charges/object#charge_object-receipt_number
You can expand latest_charge parameter on the PaymentIntent to get the charge object
https://stripe.com/docs/api/payment_intents/object#payment_intent_object-latest_charge
https://stripe.com/docs/api/expanding_objects
I havn't stored them so far. Can I get them by using the checkout_id?
When you say haven't stored them, what exactly do you mean?
You can get them using Checkout yes but you'd need to go from Checkout -> PaymentIntent -> Charge
Ok, I have also the Payment Intent
Ihave a lot of payments and I want to get all the reciept numbers. Not stored meens, that I only have things like cutomenr_id and so on, onyl what I really need.
And btw, all with connected accounts.
Now I want to get all the reciept number to fill a new field in my DB, thet my costomer (connected account) can search for it.
You'd need to retrieve the PaymentIntents individually and expand the charges when calling the API to get the receipt number
Ok, I think I know what to do. Thanks so far, I now playing around a little bit.