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

Custom API Page fails to become registered on Deployment to BC Sandbox

(1) ShareShare
ReportReport
Posted on by
 
 
 Hi All, 

I am creating a custom version of the vendorPaymentJournals API. When I deploy it to BC from VSCode, it is failing to become registered as a service when I set the APIPublisher to a specific value. When I change the APIPublisher, it will end up working. 

Here is a look at the API page

 
It does not appear as an endpoint when I run a GET request to following uri in Postman. 

https:/api.businesscentral.dynamics.com/v2.0/{{Tenant_ID}}/{{Environment}}/api/waveKraft/integration/v2.0/

When I attempt a GET to the endpoint of the API page above like so...
 
https:/api.businesscentral.dynamics.com/v2.0/{{Tenant_ID}}/{{Environment}}/api/waveKraft/integration/v2.0/companies({{Cronus_Comp_ID}})/vendorPaymentBatches

I get the following error 
 
{
    /error/: {
        /code/: /BadRequest_NotFound/,
        /message/: /No HTTP resource was found that matches the request URI 'https:/api.businesscentral.dynamics.com/v2.0/{{Tenant_Id}}/{{Environment_Name}}/api/waveKraft/integration/v2.0/companies({{Company_Id}})/vendorPaymentBatches?tenant={{Tenant}}'./
    }
}
 
When I adjust the APIPublisher to something like 'kraft', it will work. I have a series of other custom APIs working with the exact same combination of APIGroup, APIPublisher, and APIVersion, namely, 'integration', 'waveKraft', and 'v2.0'. 

Any ideas anyone can provide on what my issue might be would be much appreciated.

Thanks! 
  • Suggested answer
    Khushbu Rajvi. Profile Picture
    Khushbu Rajvi. 8,852 Super User 2025 Season 1 on at
    Custom API Page fails to become registered on Deployment to BC Sandbox
    Not sure if it helps or not: https://yzhums.com/52262/
  • soma Profile Picture
    soma 24,410 on at
    Custom API Page fails to become registered on Deployment to BC Sandbox
     
    Did you get a chance to fix this issue? I am also facing the same issue.
     
    I have deployed 15 new custom APIs(all are having same APIGroup and APIPublisher), but only able to access 10 APIs.
  • CS-15051251-0 Profile Picture
    CS-15051251-0 4 on at
    Custom API Page fails to become registered on Deployment to BC Sandbox
    Hi gdrenteria, thanks for the response. I am not sure I understand your comment though. You are referring to the vendorPaymentBatches url? Not sure what you mean "complete this '//'". The url I am using for that GET request does not seem to be the issue because when I change the APIPublisher on the API page and then publish my extension, I just tweak the publisher portion of my url and it works.
     
    Thanks
  • Suggested answer
    gdrenteria Profile Picture
    gdrenteria 14,573 Most Valuable Professional on at
    Custom API Page fails to become registered on Deployment to BC Sandbox
    Hi
    I think you need to complete this in the URL "//"
    BR
    GR

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

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

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,409 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans