#Leiha
1 messages ยท Page 1 of 1 (latest)
What API version have you been using before?
2019-xx-xx
I see. It is not included anymore and it is intended. But you can still list all refunds by charge: https://stripe.com/docs/api/refunds/list#list_refunds-charge
so if understand correctly : i receive the event of charge refunded and i must send another request for find all refunds previously set in context of the event. ok
Yes
for my understanding why don't put the related refund request id in the related event in you're side ?
And why don't alllow to pass metadata specific for refund request ( the metadata present in the event is the intent metadata )
I am not aware of the intentions behind it. Perhaps in order to make the requests faster by not querying another database table. But it's just my guess.
When you create a Refund object you can pass metadata: https://stripe.com/docs/api/refunds/create#create_refund-metadata
with the old api version it's was not possible ( the specific metadata wasn't present after , in the events ) now yes ?
if it's yes it's good ๐ because that resolve many things for me
for example the metadata present in evt_3MvzJoFFjqQnSDwD0T22zdoT is not passed in refund request but intent request
I am not sure about the old version. Our docs only specify the latest version of the API.
so the data will be merged ?
charge.refunded contains the Charge object, not the Refund object.
No, each object has its own metadata.
When you query the Refunds, you will get the metadata in the Refund object.
ok i understand so i retrieve the list of refund who will her own meta data passed in the related request
it will be ok i have the informations for modify correctly my program ty @hardy beacon ๐ ๐
have a nice day ๐
๐
fyi the doc is not up to date no ? : "Returns a list of all refunds youโve previously created. The refunds are returned in sorted order, with the most recent refunds appearing first.** For convenience, the 10 most recent refunds are always available by default on the charge object**.
"
Hm, let me check.
Oh, I'm so sorry. My bad.
You can conditionally include the refunds in the Charge object if you expand it: https://stripe.com/docs/api/charges/object#charge_object-refunds
understood ๐ ๐ again
Sorry for misunderstanding!
no problem you are not a machine ๐
For now, haha ๐
^^