Skip to main content

Notifications

Business Central forum
Suggested answer

Error on calling all endpoints 'The supplied company name is not valid'

Posted on by 10

When calling an endpoint via the API I am getting this error.


"providerErrorCode": 400,
"message": "Bad Request",
"providerMessage": "error - {code=Unknown, message=The supplied company name is not valid. CorrelationId: 925d2b33-cb78-46eb-95cd-078e7eac966b."

Has anyone ever received this and how do I resolve?

  • Suggested answer
    Amit Baru Profile Picture
    Amit Baru 3,025 on at
    RE: Error on calling all endpoints 'The supplied company name is not valid'

    Hi,

    Pls share extension where you get data.

    Regards

    Amit Sharma

  • Suggested answer
    Nitin Verma Profile Picture
    Nitin Verma 21,023 Moderator on at
    RE: Error on calling all endpoints 'The supplied company name is not valid'

    Hi,

    Please share the API format what you used.

    correct format as per below

    api.businesscentral.dynamics.com/.../user domain name/environment name/api/v2.0/companies(companyIDgoeshere)

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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,524 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,493 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans