Stripe API: Get List of Payments Recevied in GBP

Viewed 40

I am attempting to get a list of payments made to our Stripe account within a date period in GBP.

I am using the Stripe.Net nuget package.

When i call for a list of events and then filter down to charges i get the data i want but the charges are in the currency charged to the customer.

Is there a way to get a list of all payments/refunds within a time period in a single currency please?

Any help would be greatly appreciated.

1 Answers

You can use the Search API with the created and currency parameters to return the filtered data you need, with either Charges or Payment Intents objects.

var options = new ChargeSearchOptions { Query = "currency:'gbp' AND created>1620310503" };

var service = new ChargeService();
service.Search(options);
Related