#Scott
1 messages · Page 1 of 1 (latest)
I guess you would want to go backward: List all payment on that Connected User, and for each looking for the original Destination Charge
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);
Those py_ object is belonged to the Connected Account actually
You would want to look at source_transaction instead
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
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);