Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Suggested answer

Get Bank Account API - Active Bank Account No Longer returned.

(1) ShareShare
ReportReport
Posted on by 10
I was using the get bank account API to return a list of bank accounts, which was working fine up to a particular date: 

 
GET https://{businesscentralPrefix}/api/v2.0/companies({id})/bankAccounts
 
However, at a point, a Bank Account which was previously returned is no longer being returned by the API. Our end user has confirmed its still there. Is anyone able to let me know how a non-deleted bank account can stop being returned by the API? 
  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 74,280 Super User 2024 Season 2 on at
    Get Bank Account API - Active Bank Account No Longer returned.
    Hi, I tried it and had no problems.
    https://api.businesscentral.dynamics.com/v2.0/7e47da45-7f7d-448a-bd3d-1f4aa2ec8f62/Sandbox252/api/v2.0/companies(5a958ab2-3ebb-ef11-b8ec-6045bd679fc6)/bankAccounts
    https://api.businesscentral.dynamics.com/v2.0/7e47da45-7f7d-448a-bd3d-1f4aa2ec8f62/Sandbox252/api/v2.0/companies(5a958ab2-3ebb-ef11-b8ec-6045bd679fc6)/bankAccounts(440e3e36-3cbb-ef11-b8ec-6045bd679fc6)
    BC
     
    Since it is a 404 error, there may be a problem with the bank or company ID. You can check it again.
     
    Thanks.
    ZHU
  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 291,559 Super User 2024 Season 2 on at
    Get Bank Account API - Active Bank Account No Longer returned.
    Moved the question to the Business Central forum.
  • PS-07010929-0 Profile Picture
    PS-07010929-0 10 on at
    Get Bank Account API - Active Bank Account No Longer returned.
    @Ramiz: I am getting a success response with a list of bank account objects returned, its just that a specific one is no longer being returned. 

    If I call it directly like so: 

    https://{businesscentralPrefix}/api/v2.0/companies({id})/bankAccounts{bankAccountId}
     
    I get a 404 response. 
     
    The Bank Account is still visible in the Dynamics UI, so I suspect some property of the Bank Account has changed to stop it from being returned as such in the API... I just dont know what that could be?
  • Ramiz Profile Picture
    Ramiz 402 on at
    Get Bank Account API - Active Bank Account No Longer returned.
    Hi,

    Are you getting a 200 success response with no data or any other status code?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,559 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,579 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans