#sanjeetkumar_api

1 messages ¡ Page 1 of 1 (latest)

fathom oarBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1268883465030598717

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

undone thunder
#

hi! what does your exact code look like, what exact value are you getting back in response?

dense flare
#

I am getting all transactions from 1st Jan

#

But I want the transactions from the given date

undone thunder
#

the API request you shared seems ike it should be doing that. If you're saying it's not then I need more context in order to dig in, such as exact code and the exact raw response you're seeing.

fathom oarBOT
dense flare
#

public static async getTransactions(
bankAccountId: string, fromDate?:number, bankTransactionId?:string,
) {
try {
const transactions = await StripeService.STRIPE.financialConnections.transactions.list({
account: bankAccountId,
transacted_at: { gte: fromDate },
starting_after: bankTransactionId,
});
return transactions;
} catch (error) {
Logger.error('Error while fetching transactions for bank account', error);
throw error;
}
}

#

this is the code

#

data received by stripe

orchid ember
#

Can you share the JSON response returned from the API? Unfortunately we don't log those

dense flare
#

its not in stripe logs, but I got response with transactions

#

See its not showing here

orchid ember
#

Yeah as I said we don't store the GET request responses, you'd need to share the JSON from your code integration where you make the API request

dense flare
#

Ohk Got it

orchid ember
#

In any case we think this is a bug on our end so we'll file it with the team

dense flare
#

Yeah please check it, that any other developer reported or not.

#

I can't provide the JSON response right now as I am from India and working for the US company so I can do only when my US team is online

#

But at least can you confirm that is it a right way for getting bank transactions after specific date?

orchid ember
#

Those are the correct API parameters to use yes: https://docs.stripe.com/api/financial_connections/transactions/list#financial_connections_list_transactions-transacted_at

But, as explained, there is seemingly a bug where we aren't applying the timestamp to filter/query the data. So we'll need to investigate and fix