#Scott

1 messages · Page 1 of 1 (latest)

cursive shadowBOT
west osprey
#

I guess you would want to go backward: List all payment on that Connected User, and for each looking for the original Destination Charge

exotic zenith
#

I use this to get the transfers with the specified connect id in the options but the destination payment ID starts with "py" so when I try to get it, I get an error that it doesn't exist.

            var service = new TransferService();
            List<PaymentIntent> intent = new List<PaymentIntent>();
            StripeList<Transfer> transfers = service.List(options);
west osprey
#

Those py_ object is belonged to the Connected Account actually

#

You would want to look at source_transaction instead

exotic zenith
#

Got it.
Used the transfer service and expanded the source transaction.

#
var options = new TransferListOptions
            {
                Limit = 3,
                Destination = "STRIPE_CONNECT_ID",
                
            };
            options.AddExpand("data.source_transaction");

            var service = new TransferService();
            StripeList<Transfer> transfers = service.List(options);

            return new JsonResult(transfers);