#hananafzal88-Connect

1 messages · Page 1 of 1 (latest)

broken idol
dusty cave
#

yes @broken idol can you provide me the api endpoint url for getting all the transactions transfered into bank for a connected account

#

var options = new BalanceTransactionListOptions
{
Limit = 3,
};
var service = new BalanceTransactionService();
StripeList<BalanceTransaction> balanceTransactions = service.List(
options);

#

but in that api i am not sending any connected account id

broken idol
#

please remove your apiKey from discord, it's a public place, thanks

dusty cave
#

its a test

broken idol
#

Still, it's better to remove it.

dusty cave
#

Done

#

now please tell me that here is no account_id param

#

so how i will get specific account id balance transactions?

broken idol
#

are you using .NET SDK?

dusty cave
#

yes

broken idol
#

Great, you can pass in the stripeAccountID via the RequestOptions

#

StripeConfiguration.ApiKey = "{{PLATFORM_SECRET_KEY}}";
var customerOptions = new CustomerCreateOptions
{
Email = "person@example.edu",
};
var requestOptions = new RequestOptions();
requestOptions.StripeAccount = "{{CONNECTED_ACCOUNT_ID}}";
var customerService = new CustomerService();
Customer customer = customerService.Create(customerOptions, requestOptions);

#

Here is an example with CustomerService

#

So in your case, you just need to create a RequestOptions, and pass it to the BalanceTransactionService, i.e.,

  options, requestOptions); 
dusty cave
#

ok great

broken idol
dusty cave
#

var options = new BalanceTransactionListOptions
{
Limit = 3,
};
var service = new BalanceTransactionService();
StripeList<BalanceTransaction> balanceTransactions = service.List(
options);
one more thing if i dont want to set any limit and get all the list then what i should do

broken idol
dusty cave
#

there is no option to get unlimited records?

broken idol
#

I'm afraid not, we don't want to cause OutOfMemory errors in your servers and ours.

dusty cave
#

ohhh ok

#

thanks buddy

#

@broken idol how can i capply pagination

#

i mean there is no option to give him pageno and pagesize

#

so how i will achieve pagination functionality

broken idol