#CalebR-Connect-Reports
1 messages · Page 1 of 1 (latest)
Hi there! Give me one sec
Do you have a request ID when you try to run the report while setting the connected account but it errors?
Ah, actually.
You want to look at the Connect specific reports: https://stripe.com/docs/reports/report-types#connect
For instance you probably want one of the connected_account_payouts.itemized.x reports
Have you tried those?
Ah, that is helpful. Let me see if that gives the correct information
So that finds the payouts, however, the payment_intent_id column is coming back empty.
Ah you are likely using Transfers (either through destination charges or Separate Charges and Transfers, which means that the payments on the Connected Accounts will not be PaymentIntent objects, but payment objects instead (py_xxxxx).
These payment objects are the result of a transfer on the Connected Account
And are the same as Charge objects
Yes, we are using destination charges
Okay, but is there a way to connect the charge_id back to the payment intent that originated it?
When I try to retrieve a charge via the API, I get a 404.
Are you passing the Connect Account header?
That charge lives on the Connected Account
Yes you can trace back to the original PaymentIntent, give me a sec to write out the steps to do that.
Is there documentation on how to specify the Connected account? I'm using the Ruby API client
Yep, take a look at: https://stripe.com/docs/connect/authentication
To trace backwards from the payment on the Connected Account, you want to look at the source_transfer property: https://stripe.com/docs/api/charges/object#charge_object-source_transfer which will give you the transfer ID. From there you can utilize the source_transaction property (https://stripe.com/docs/api/transfers/object#transfer_object-source_transaction) which will give you the original charge that created the transfer. And from there you can access the PaymentIntent.
You can use expand to limit the amount of API calls necessary here: https://stripe.com/docs/api/expanding_objects
Okay, that did it. Is there any way to do that connection with a report, or are we just going to have to backtrack through the API for every transaction?
If I remember correctly you can only get the source ID (the transfer) from the Payout Recon Report and then you do need to backtrack from there. I would test this though with the columns in the payout reconciliation reports, I haven't played with these reports in a while.
Okay, thanks. This was quite helpful.