#CalebR-Payouts
1 messages ยท Page 1 of 1 (latest)
Thanks. Is it possible to expand as far as the original payment intent without separate API calls for each charge?
I think so, let me try
Thanks
I tried and got Stripe::InvalidRequestError ((Status 400) (Request req_OX9VHWJRMbuFks) You cannot expand more than 4 levels of a property)
All good, it looks like the call you linked to will give me the payment intent id, which is the main piece of data that I needed from this call anyway
Thanks for your help!
let me know if you need any more help
Sorry, another question: I tried this with a recent payout for one of our platform accounts. The payout lists 29 charges in the dashboard, but I only get 10 balance transactions back with that call
yes because it's a paginated list
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
if you're using one of our SDKs you could use https://stripe.com/docs/api/pagination/auto
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
We're using the Ruby SDK, so I'll try that, thanks.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Hi ๐ jumping in so my teammate can take a break. You can also adjust the limit that is used to determine the maximum number of records that should be returned (up to a max of 100) by our list functions. By default that limit is set to 10.
https://stripe.com/docs/api/balance_transactions/list#balance_transaction_list-limit
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Thanks for the tip!
So using limit: 100 and auto_paging_each together would minimize the number of API calls needed to accomplish the task?
Exactly!
Great, thanks. Most of our payouts so far are under 100 items, so that will speed up the processing a lot over 10 per page.
Less latency for us, and less hammering endpoints on your side
Sounds like a win-win to me ๐
Does the auto paging option also have a retry built in if we do hit a rate limit error?
I believe it continues to use the retry logic from the client library. If I recall correctly, the auto-paging function still makes a request each time you retrieve the next page of results, it just forms the request for you so you don't have to track indexes.