#rarcif
1 messages · Page 1 of 1 (latest)
As per the API reference, it's also a hash that accepts a range of timestamps: https://stripe.com/docs/api/balance_transactions/list#balance_transaction_list-available_on
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
I am not finding it. The link opens the default page for balanceTransactions https://stripe.com/docs/api/balance_transactions/list
Do you mean I can pass it as an array with both desired timestamps?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
For example in the following code:
await stripe.balanceTransactions
.list({ available_on: 1688083200 }
I'll get the results for a specific timestamp. How would I pass the range of two timestamps?
Does this request work?
yes, but only for the specific timestamp. I actually have an additional object for stripeID but it is not relevant right now. I am trying to pass the range of timestamps on the field "available_on"
Would I pass it as an array with both timestams or?
await stripe.balanceTransactions.list({ available_on: { gt: 1688083200, lt: x } }```
Might work