#comfy-metadata-connect
1 messages · Page 1 of 1 (latest)
Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- maximum.comfy, 5 hours ago, 13 messages
- maximum.comfy-account-support, 2 days ago, 11 messages
here's what I'm trying to do if it makes sense, but metadata doesn't seem to be allowed as a child of transfer_data and so the metadata just gets lost
Hi, the metadata you set the request from the platform account will not automatically transfer to the objects on your connected accounts. You'd need to attain the charge object from the transfer to then make a call to update it with the metadata.
We document some of how this works here, https://support.stripe.com/questions/how-metadata-works-with-related-objects. The specific steps are:
Get the corresponding payment id. To do this, get the id of the transfer associated with the charge which is in the transfer property on the charge object. Then, you would retrieve that transfer and you’d see the destination_payment property corresponding to the payment on the connected account (py_XXX).
You can get all of this in one API call by using the expand feature, https://stripe.com/docs/api/expanding_objects and passing transfer to get the transfer property expanded in the response. This gives you access to the payment id (py_XXX) directly in that API call. Then, you can make a call to update the charge with the metadata: https://stripe.com/docs/api/charges/update
There is not a document directly showing the steps
If I'm trying to update the transfer metadata should I use this? https://stripe.com/docs/api/transfers/update
OK so update the transfer not update the charge?
That is correct
OK thank you, wish me luck
Sure!
comfy-metadata-connect
I got it working 🙂 just FYI I found the transfer ID by expanding latest_charge
nice!