Is auth numbers field guaranteed to be there if the product supports auth - authentication

If I check that the institution supports auth as a product, would account number and routing number be guaranteed to be there in the numbers field in the auth response?

Sort of.
If the account is from a US bank account, AND if the call doesn't result in an error, you're guaranteed to get account number and routing number. However, that doesn't mean that all Auth calls will return account + routing number.
For example, Auth if you call Auth on an Item that just has a credit card account, you'll get an error response back [this prevents you from getting billed for calls that don't return anything useful]. Or, if you call Auth on a bank account that is from outside the US, you'll get the numbers associated with the transfer system used by that bank (account number + routing number is a US-only system).

Related

Empty all accounts in a smartcontract for a banking application

I am working on a sample banking code in solidity. I wanted to use a so called "TakeAllTheMoney" and run function (just to give you an idea about the role of the function).
This function should only be executable by the deployer of the contract and should give him the possibility to take all the money on the bank and transfer it to his account.
Problem: How can I empty also the account of the other user of the bank? Meaning that when a different user - not the deployer of the contract and of the function - uses the contract after the "TakeAllTheMoney" function is employed, he also sees 0 on his account.
Many thanks in advance
function TakeTheMoneyAndRun() public{
require (msg.sender==Owner);
balance[msg.sender] -= balance[msg.sender];
(msg.sender).transfer( address(this).balance );
Expected results after employing this function:
Balance Bank = 0
Balance person that employed contract and function = 0 (since it went on his metamask account or similar)
Balance of every other user = 0
Again, thanks!
You are mixing two things. User's amount in metamask and user sent amount to Bank in your case is Smart Contract and stored in some variable. So the amount you see in the metamask is the amount User own and has no link with the Smart Contract until and unless you send the money to the Smart Contract.
The Smart Contract in your case "Bank" the money sent by the user is store in the Smart Contract and the tracking of money recieve is stored in the array. Smart Contract itself does not holds the record of the previous transaction. So if you want to delete the Smart contract balance tracks of the User you have to empty that particular array. Although it sounds fishy if you want to implement it and wants to make the user accounts to zero in the Smart Contract.

Yodlee - How I can identifying the itemAccountId for a specific account number

As per the api description the call : getItemSummaryForItem1 should be used to fetch the itemAccountIds for a site account. The response of this call has only last four digits of the account number. I need to identify which item summary corresponds to which account in the list of bank accounts under this site account. Is comparing the last 4 digits alone is sufficient?
Thanks.
You need not call getItemSummaryForItem1 to get itemAccountIds for a site account as Yodlee has enhanced the response of getItemSummariesForSite which now returns both itemID and itemAccountId hence you need not worry about any mapping.
Just to answer the last part - Yes the last 4 digits of the account number is enough.

Retrieving a consumers full account number (non-masked)

Is there an Api that will give me access to a consumers full account numbers (non-masked)
Using: getItemSummariesForSite will bring back a list off accounts, however the accountNumber is masked.
Thanks
It depends upon the site, if FI provides the non-masked Account number then you can get it. But you need to connect with the Sales Representative for the same. By default you'll get the masked account number.

Can balanced accept Bank Account other than country US?

Can balanced accept bank account from other countries apart from US?
If yes how the routing numbers and account number format should be?
Also
When am creating a test bank account using balanced.js, the account type is set to 'checking' even though i sent type as 'savings'. Is the test bank account always has type 'checking'?
No.
https://support.balancedpayments.com/hc/en-us/articles/200135940-Is-Balanced-available-internationally-
https://support.balancedpayments.com/hc/en-us/articles/201886494-International-ACH-Transfers-IATs-Not-currently-available-
As for the account type issue make sure you pass "account_type" instead of "type" for balanced.js v1.1.

Get transaction by item account id

Hi I am using rest api to access yodlee aggregation services. i am not able to search transaction by item account id. My rest query is as follows
parameters = {
'transactionSearchRequest.searchFilter.itemAcctId'=>itemId,
'cobSessionToken'=>cobSessionToken,
'userSessionToken'=>userSessionToken,
'transactionSearchRequest.containerType'=>con_name,
'transactionSearchRequest.lowerFetchLimit'=>0,
'transactionSearchRequest.resultRange.endNumber'=>500,
'transactionSearchRequest.higherFetchLimit'=>500,
'transactionSearchRequest.resultRange.startNumber'=>1,
'transactionSearchRequest.ignoreUserInput'=>'true',
'transactionSearchRequest.searchFilter.transactionSplitType.splitType'=>"A"
}
The response is always all the transactions for the user instead of transactions for a particular item account id.
Any help is appreciated
You are passing ItemId but the parameter passed should be ItemAccoutnId.
Difference between ItemId and ItemAccountId -
when you link a site say "Citibank" then an itemId is created and then say you have a saving and a checking account under Citibank then both these accounts will have an unique identifier called itemAccountId.
Hence the transaction search takes itemAccountId as the parameter and will return transaction only for that account.
Please use below API to get ItemAccountId and pass it to the transaction Search.
https://developer.yodlee.com/Aggregation_API/Aggregation_Services_Guide/Aggregation_REST_API_Reference/getItemSummaryForItem1