web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

Suddenly "Resource not found for the segment 'customers'." when calling API

(4) ShareShare
ReportReport
Posted on by 8
Hi,
 
We have an api that is fetching customers, salesOrder, etc from BC. Since friday last week 16/05, it doesn't work properly. Nothing has changed in our application, permissions etc.
 
Suddenly, calling the same endpoint returns with this:
 
GET /v2.0/Production/api/v2.0/companies(XXX)/customers(YYY)?tenant=ZZZ
Error fetching debtor: {
  error: {
    code: 'BadRequest_ResourceNotFound',
    message: "Resource not found for the segment 'customers'.  CorrelationId:  ab33bff0-10ac-40eb-9950-b9388608b182."
  }
}
 
What could be the cause? Calling other endpoints like contactInformation or salesOrder has no issue.
 
I have the same question (0)
  • Suggested answer
    Jinal P. Profile Picture
    300 on at

    Hello  

    Try the following workarounds:

    1. Check if the same customer ID or name still exists in Business Central.
    2. Reconnect your Power Automate connection to Business Central to ensure the authentication and connection are valid.
    3. Verify if the data model has changed — for example, the customers entity might have been renamed, moved to a different namespace, or removed.
    4. Test the API call to list all customers and confirm the resource is still accessible: If this call works, but a request for a specific customer fails, then the issue is likely with the customer ID being invalid or missing.
    Mark as answered if you get your answer, if not please share your screenshots of the connection OR system.
     
    Thank You.
     
  • Suggested answer
    RockwithNav Profile Picture
    8,637 Super User 2025 Season 2 on at
    First thing first is  to make sure there is no application level change and then no data level changes
    If sure on this then the next step is to check if version upgrade happens, something which we call as a hotfixes in previous versions. Also make sure there's no any additional extension installed blocking this.
     
  • Suggested answer
    Sohail Ahmed Profile Picture
    11,150 Super User 2025 Season 2 on at

    Maybe this will help you.

    The error usually means the 'customers' API is either unpublished, renamed, or no longer available in your environment. Please check:

    • If the Customer API is still published under Web Services.
    • You’re using the correct API version (v2.0).
    • No recent environment refresh or custom API changes.
    • The App registration still has the right permissions.

    If all above looks fine, please share a screenshot of your API call for further help.

    Mark below checkbox to make this answer Verified if it helps you.

  • Suggested answer
    YUN ZHU Profile Picture
    95,729 Super User 2025 Season 2 on at
    What does ?tenant=ZZZ mean? Is this a fliter?
    It looks like you have already specified the id in customer, please delete the latter part.
    For example,
    https://api.businesscentral.dynamics.com/v2.0/7e47da45-7f7d-448a-bd3d-1f4aa2ec8f62/Sandbox260/api/v2.0/companies(a4da5ced-4e0f-f011-9346-7c1e524ba324)/customers(550a9a4b-4f0f-f011-9346-7c1e524ba324)
     
    Thanks.
    ZHU
  • Suggested answer
    KP - Solution Architect Technical Profile Picture
    658 on at
    Hi,
     
    The possible reasons can be that it's a custom API, please check if the app is installed.
    Secondly, check the version and entity name or it is published in the web service or not.
     
     
    Thanks,
    KP
  • Suggested answer
    Khushbu Rajvi. Profile Picture
    20,603 Super User 2025 Season 2 on at
    possibly due to a recent BC update or extension change. Double-check if the "customers" API endpoint is still available in the Web Services page or through the $metadata endpoint. Also, ensure the user accessing it has proper API permissions for the customer entity.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,238

#2
YUN ZHU Profile Picture

YUN ZHU 773 Super User 2025 Season 2

#3
Sumit Singh Profile Picture

Sumit Singh 630

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans