#soma-currencies
1 messages · Page 1 of 1 (latest)
Hi there, no API but we have them listed here: https://stripe.com/docs/currencies
so, they must be hardcoded?
Yeah if you need them, what's the use-case here?
allowing the user to filter the transactions by currency
Okay that's different
The above is presentment currency
But funds will only settle in the settlement currency for the account
So that is the only currency that they will be able to filter by
and yet according to this https://stripe.com/docs/api/balance_transactions/list?lang=node#balance_transaction_list-currency you can pass the currency as a filter param
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
isn't it?
Yes sure, but you would only need the currency options for the settlement currencies that your Connected Accounts support
and how can I get those programmatically?
I assume this is for Custom Connect, right?
yes
Then you retrieve the external account of the Connected Account and examine its currency: https://stripe.com/docs/api/external_account_bank_accounts/object#account_bank_account_object-currency
That will be the settlement currency for the account
Then you show balance transactions in that currency
Sure!
oh, one more thing is disturbing me
for filtering transactions by created... I am assuming that for a specific date I need to pass a {created :{gte: 0000, lte: 0000}}
Yep it is all by unix timestamp
So yeah if you set two timestamps then it will retrieve the data between those
in seconds, no miliseconds
Yes unix is in seconds: https://www.unixtimestamp.com/