Business Central API for manufacturers: REST, OData, webhooks

Isometric illustration of a factory floor connected by data lines to a central ERP cloud, with API endpoint blocks and a webhook bell icon. - business central api
Summarize in:
Get an instant AI summary of this article

How do you integrate with the Business Central API?

The business central api is a REST API (OData v4) at https://api.businesscentral.dynamics.com/v2.0/{tenant}/{environment}/api/v2.0/, authenticated with Microsoft Entra ID OAuth 2.0. Get a token, call GET /companies, then read and write records with standard endpoints or custom API pages.

This guide is for IT managers and developers who connect plant systems to Business Central. If you’d rather hand the build to a team, our erp integration services cover the same ground.

We wrote it around manufacturing because the top guides skip items, BOMs, routings and production orders. Every limit and date below is stamped, and you should re-check each one on Microsoft Learn before you size anything.

What will you learn in this article?
  • Which of the five Business Central interfaces fits each integration job, and which one to stop building on
  • How to register an Entra app, add it inside Business Central and get a working token
  • How to read, write, patch and post with real requests, plus a manufacturing layer
  • How to set up webhooks that survive the 3-day expiry and missed notifications
  • Which limits to design for, and the 10 production gotchas that cause most outages

Which Business Central API fits your integration?

Walk through your systems with our team and leave knowing which endpoints, webhooks and approval steps your integration needs.

Book a 30-min call →

Quick Answer The Business Central API is a REST service built on OData v4. Use API v2.0 for standard data, custom API pages for manufacturing fields, and webhooks for change notifications. Authenticate with Microsoft Entra ID client credentials for background sync, and plan for HTTP 429 throttling responses.

Which Business Central API should you use?

Microsoft Learn’s web services comparison presents the REST API stack as the optimized, preferred way to integrate, and lists REST, SOAP and OData as the three web service types. Its SOAP page says API pages and queries can be up to 10 times faster than SOAP. For new work, start with REST.

Most integration trouble comes from picking the interface last. We pick it first, then build everything else around that choice.

The QServices Framework Integration Path = Interface → Identity → Read → Write → Notify → Limits

Interface decides what is even possible, and Identity decides who may do it. Notify and Limits come last because they only matter once data moves in both directions.

QServices Integration Path framework: Interface → Identity → Read → Write → Notify → Limits - business central api

We reuse those six stage names in the sections below.

What is the Business Central API?

The Business Central API is the set of REST endpoints every environment ships with, plus any API pages and queries you publish yourself. Standard APIs are versioned, and Microsoft’s guidance is to pick the highest version available. The current one is API v2.0.

Does Business Central have a REST API? Yes. The business central rest api is the default route for dynamics 365 business central integration, and any language that can call HTTPS can use it.

Business Central API vs OData for integrations: which fits which job?

The table below covers the five interfaces. Status reflects Microsoft Learn as of 25 November 2026.

Interface Auth Status Best use Manufacturing fit
API v2.0 (standard) Entra OAuth 2.0 Current, preferred Customers, items, sales and purchase documents Items and inventory only, no BOM or production order endpoints that we know of
Custom API page or query Entra OAuth 2.0 Current, preferred Any table you expose, with webhooks on pages Best fit, but needs AL code and an extension
OData web service Entra OAuth 2.0 Microsoft pages end in v30, custom pages stay Power BI and read-heavy reporting on your own pages Works for custom pages you publish
SOAP web service Entra OAuth 2.0 Deprecated Legacy callers only Do not start new work here
Automation API Entra OAuth 2.0 Current Company, extension and permission administration Not for data

The honest downside of the recommended path: custom API pages cost more up front than a SOAP page you can publish in a minute. You need AL skills, a sandbox and an extension release process.

Power Automate and Dataverse are the low-code alternatives. They’re quick for a single flow, but throughput and error handling are harder to control at plant volumes. See what is ERP integration for the four general patterns.

What can the Business Central REST API v2.0 do out of the box?

The business central api v2.0 identifies records by systemId (immutable and indexed), flattens complex properties and uses typed enums. Standard APIs cover finance, sales, purchasing and inventory. Microsoft doesn’t support extending its standard APIs with extra fields, so you copy the AL code into a custom API instead.

How is the Business Central API URL built?

The base URL has three parts: tenant, environment and company.

GET https://api.businesscentral.dynamics.com/v2.0/{tenantId}/{environmentName}/api/v2.0/companies
  • Environment name: find it on the Environments page in the admin center. It is usually Production or Sandbox, but custom names exist.
  • Company ID: call GET /companies first and use the id GUID, not the company name.
  • On-premises: the pattern is http://{server}:7048/{instance}/api/v2.0/, and the auth method is whatever the instance is configured for.

How do OData reads work in the API?

Business Central OData query options are the same ones you’d expect, with one big exception: don’t page with $top and $skip. Use server-driven paging.

Need Use
Fewer columns $select=number,displayName,inventory
Changed since last run $filter=lastModifiedDateTime gt 2026-11-24T00:00:00Z
Parent with children $expand=salesOrderLines($select=quantity)
Sort $orderby=lastModifiedDateTime
Count $count=true
Page size Prefer: odata.maxpagesize=1000, then follow @odata.nextLink
Read replica Data-Access-Intent: ReadOnly on GET
Schema GET .../api/v2.0/$metadata

Put $select inside $expand too, or Business Central returns every child column.

How do you write, patch and post a document?

Here’s the worked example end to end. All ids are placeholders, and secrets never belong in source control.

First, a token (client credentials):

curl -X POST https://login.microsoftonline.com/{tenantId}/oauth2/v2.0/token \
 -d grant_type=client_credentials -d client_id={appId} \
 -d client_secret={secret} \
 -d scope=https://api.businesscentral.dynamics.com/.default

Then find items with a filter, using the returned access_token as a Bearer header:

GET .../companies({companyId})/items?$select=number,displayName,inventory&$filter=number eq 'FG-1001'

Create a sales order with a deep insert (header and lines in one call):

POST .../companies({companyId})/salesOrders
{ "customerNumber": "10000",
 "salesOrderLines": [ { "lineType": "Item", "lineObjectNumber": "FG-1001", "quantity": 12 } ] }

Patch it. Every GET returns an @odata.etag, and writes must send it back:

PATCH .../salesOrders({orderId})
If-Match: W/"JzE5OzEyMzQ1Njc4OTAxMjM0NTY3ODkwMTs7"
{ "requestedDeliveryDate": "2026-12-05" }

A stale ETag returns 412. Re-read, re-apply and retry. Posting is a bound action, not a status change: POST .../salesInvoices({id})/Microsoft.NAV.post for invoices, and Microsoft.NAV.shipAndInvoice on sales orders. A draft document and a posted document are different things, and only the action creates ledger entries.

The same in Python, for the token and one read:

import requests
t = requests.post(f"https://login.microsoftonline.com/{tenant}/oauth2/v2.0/token", data={"grant_type": "client_credentials", "client_id": app_id, "client_secret": secret, "scope": "https://api.businesscentral.dynamics.com/.default"}).json()["access_token"]
r = requests.get(f"{base}/companies({cid})/items?$select=number", headers={"Authorization": f"Bearer {t}"})

For volume, POST /$batch takes up to 100 operations per request as of 25 November 2026. Add Isolation: snapshot to make a batch transactional. The common error codes are 400 (bad body), 404 (wrong company or id), 409 (conflict), 412 (stale ETag) and 429 (throttled). Retry only 409, 412 and 429 and 5xx, and make writes idempotent by checking for an existing external document number before you POST again.

Key Insight A 412 isn’t a failure, it’s the API telling you somebody else changed the record first. Integrations that treat it as an error lose edits, and integrations that blindly retry overwrite them.

Which manufacturing entities does a Business Central API for manufacturing integration need?

A business central api for manufacturing integration needs more than the standard sales and inventory endpoints. To our knowledge, standard v2.0 has items, item variants, locations and item ledger entries, but no production order, BOM or routing endpoints. Microsoft Learn doesn’t name any. Check the v2.0 entity list for your version before you promise anything.

Entity Standard or custom Typical endpoint Key fields
Items, variants Standard items, itemVariants number, inventory, unitCost
Inventory by location Standard (ledger) or custom itemLedgerEntries itemNumber, locationCode, quantity
BOMs, routings Custom API page your own, e.g. productionBoms number, status, version
Work centers Custom API page your own number, capacity, calendar
Production orders and lines Custom API page productionOrders, productionOrderLines status, sourceNo, quantity, dueDate
Consumption and output journals Custom API page plus action your own journal pages itemNo, quantity, orderNo
Lot and serial tracking Custom API page your own lotNo, serialNo, expiry

Second worked example: read released production orders with their lines from your own custom API, then post output.

GET .../api/qservices/manufacturing/v1.0/companies({companyId})/productionOrders?$filter=status eq 'Released'&$expand=productionOrderLines

Output and consumption post through an item journal and its posting codeunit. Microsoft’s production order posting article says output creates item ledger entries and capacity ledger entries with value entries. Expose a bound post action on your journal page so the shop floor system can post a batch and get the response back.

A custom API page is short. This one exposes a production order:

page 50100 "Prod Order API"
{
 PageType = API; APIPublisher = 'qservices'; APIGroup = 'manufacturing';
 APIVersion = 'v1.0'; EntityName = 'productionOrder'; EntitySetName = 'productionOrders';
 SourceTable = "Production Order"; DelayedInsert = true; ODataKeyFields = SystemId;
 layout { area(Content) { repeater(Group) { field(number; Rec."No.") { } field(status; Rec.Status) { } } } }
}

Set InsertAllowed, ModifyAllowed and DeleteAllowed to false on pages that should be read-only. Publish the extension to the tenant. No webservices.xml is needed.

When do OData and SOAP web services still fit?

SOAP and OData web services still fit for custom pages you publish yourself and for Power BI reads. They don’t fit for Microsoft-owned pages. Microsoft is removing both for Microsoft pages, so new integrations on them have a short shelf life.

Is SOAP deprecated in Business Central?

Yes. The Learn SOAP page says SOAP endpoint support is deprecated and will be removed in an upcoming release. On business central soap web services deprecation: Microsoft’s platform deprecated-features page says that in version 29 (2026 release wave 2) a Microsoft page can no longer be exposed as a SOAP endpoint. From version 30 (2027 release wave 1) it can’t be exposed as an OData endpoint either.

Two cautions. First, this applies to pages whose publisher is Microsoft, so write "Microsoft pages" and not "all SOAP". Several third-party articles claim all SOAP stops at v29, and Microsoft’s pages don’t say that. Second, a separate feature-key page gives version 30 for disabling SOAP on Microsoft UI pages, so Microsoft’s own pages differ. Plan for v29 and confirm on Learn for your environment.

Standards & References

What's the SOAP migration checklist?

  1. Turn on web service request telemetry and list every caller still using SOAP.
  2. Sort the callers by whether the page publisher is Microsoft or your own.
  3. For Microsoft pages, copy the source into your own extension as a custom API page.
  4. Move each caller to API v2.0 or the new API page, and switch JSON for XML.
  5. Run old and new side by side in a sandbox for one close cycle.
  6. Disable the SOAP endpoints once telemetry shows zero calls.

How do webhooks work in Business Central?

Business Central webhooks send a change notification to your URL when a record changes on a subscribed resource. The notification carries only a reference to what changed, so you call the API to get the data. Microsoft’s webhook design makes your endpoint, not Business Central, responsible for catching up.

How to set up Business Central webhooks?

How to set up Business Central webhooks in four steps:

  1. Call POST /subscriptions with your notification URL, the resource and a shared secret:
POST https://api.businesscentral.dynamics.com/v2.0/{tenantId}/{env}/api/v2.0/subscriptions
{ "notificationUrl": "https://integration.contoso.example/bc-hook",
 "resource": "/api/v2.0/companies({companyId})/salesOrders",
 "clientState": "{random-shared-secret}" }
  1. Business Central sends a validation request to your URL. Echo the validationToken query value back as plain text within five seconds. The same handshake runs on renewal.
  2. Store the subscription id and its expiry. A business central webhook subscription lives 3 days by default, as of 25 November 2026. On-premises, ApiSubscriptionExpiration in CustomSettings.config changes that.
  3. Renew before expiry with a PATCH on the subscription, and run a renewal job at least daily.

Business Central waits 30 seconds after the first change to batch changes. If many records change, it sends one collection notification instead of one per record. The documented threshold is 1,000. The Power Automate connector can’t process collection notifications.

Do Business Central webhooks guarantee delivery?

No. Failed deliveries are retried for up to 36 hours, and a Dynamics community article says your endpoint must return 408, 429 or 5xx to keep retries going. Any other status code deletes the subscription. Webhooks are also disabled after an environment copy, and there’s a cap on subscriptions per environment (200 in one third-party account, so check Learn).

Key Insight Treat a webhook as a doorbell, not a delivery. Pair every subscription with a lastModifiedDateTime sweep every 15 minutes, and a missed notification becomes a delay instead of a missing production order.

Real-World Scenario A typical case we see: a plant IT manager syncs released production orders to a shop floor system by webhook. A subscription lapses on a long weekend because the renewal job runs on one VM that rebooted. By Monday, 140 orders never reached the floor, and nothing errored. With the Notify stage built properly, a renewal check alerts on day two, and a 15-minute sweep on lastModifiedDateTime picks up the missed orders in the next cycle.

If you’re monitoring sync health generally, read integration monitoring: catch a failed sync before finance does.

What request limits and throttling should you plan for?

Business central api throttling limits are per user and per environment, and Microsoft returns HTTP 429 when you exceed them. Sources disagree on exact numbers. Third-party guides still quote 600 requests a minute from an older blog, so the table uses the Learn figures reported in our research.

Limit Value As of
Requests per user 6,000 per 5 minutes 25 Nov 2026
Concurrent requests 5 running, 95 queued 25 Nov 2026
Request payload 350 MB 25 Nov 2026
Execution timeout 10 minutes (Learn pages differ: 408 vs 504) 25 Nov 2026
$batch operations 100 per request 25 Nov 2026
Max page size 20,000 entities 25 Nov 2026

Source: Microsoft Learn, operational limits for online. Verify before you size.

Handle 429 and 503 with exponential back-off and honor the Retry-After header. Throttling hits hardest at month-end close, when your finance users and your integration share the same environment. Schedule bulk loads outside close, and keep to five concurrent calls.

Which integration pattern fits each plant system?

System Pattern Failure mode Volume guidance
MES or shop floor to journals Batch, $batch Duplicate output posting Group by order, 100 per call
EDI orders to sales orders Polling or queue Re-keyed or doubled POs Check external doc no first
WMS or barcode to item journals Batch every few minutes Stale ETag, negative stock Small batches, retry on 412
E-commerce inventory sync Webhook plus sweep Missed notification Read-only intent on GETs
CRM sync Webhook plus sweep Lapsed subscription Renew daily
Power BI extraction Polling with lastModifiedDateTime Heavy full reloads Use read replica header

EDI is a common starting point: see EDI 850 to Business Central.

What are the production gotchas to check?

  1. A client secret expires and every call returns 401. Entra caps secret lifetime at 24 months.
  2. The app is registered in Entra but not on the Microsoft Entra Applications page in Business Central.
  3. A permission set is missing, so reads work and writes return 403.
  4. A webhook subscription lapses after 3 days.
  5. A notification is missed, with no sweep to recover it.
  6. A stale ETag returns 412 on PATCH.
  7. Paging uses $top and $skip, so results truncate at the page size.
  8. The wrong company is called, or the company ID is hard-coded.
  9. A sandbox expires or is refreshed, and its subscriptions disappear.
  10. Throttling at month-end close, with no back-off.

Stuck choosing between REST and OData?

Describe your current integration and we will point to the endpoint, auth method and throttling plan that suits it.

Book a 30-min call →

How do you authenticate to the Business Central API?

The business central api authentication method is Microsoft Entra ID OAuth 2.0. Basic authentication with access keys is gone for SaaS. Use client credentials for background sync and the authorization code flow for apps where a user signs in.

What are the Business Central OAuth app registration steps?

For business central oauth app registration, follow this setup. Microsoft’s service-to-service guide covers the Entra half. The Business Central half is the step competitors skip.

  1. Register an app in Microsoft Entra ID and note the application (client) ID and tenant ID.
  2. Add the Dynamics 365 Business Central API permission: application permission API.ReadWrite.All (add Automation.ReadWrite.All only for Automation APIs).
  3. Grant admin consent.
  4. Create a client secret, or better, upload a certificate.
  5. In Business Central, open the Microsoft Entra Applications page and add the app by client ID.
  6. Grant consent there and set the state to Enabled.
  7. Assign permission sets on that page. The service principal gets rights only from these roles.
  8. Request a token with scope https://api.businesscentral.dynamics.com/.default and call GET /companies.

Secret or certificate? A secret is quicker and needs a rotation reminder. A certificate costs more setup and is safer. Delegated flow needs the user’s permissions and a redirect URI.

Key Insight Give the integration app the smallest permission set that does the job. A service principal that can post journals and delete customers is the integration equivalent of a shared admin login.

Where do AI agents fit in a Business Central integration?

Agents read and write through the same APIs your integrations do. That means each one needs its own service principal, a least-privilege permission set and an audit trail. The Business Central MCP server gives agents read-only access to exposed API pages by default, and an admin has to configure create, modify and delete operations. Agents on Business Central run only on the online version.

Two patterns we’d build, as illustrations:

  • Production order exception triage: an agent reads released orders overdue against due date, groups them by cause and drafts a list for the planner. It has read-only rights.
  • Purchase order drafting: an agent reads low stock and open demand, then creates draft purchase orders. A person reviews each one before it posts.

The approval step is our own design, not a Microsoft feature. A person signs anything that posts money or changes a system. See AI agent governance: why human-in-the-loop is non-negotiable.

How does QServices approach Business Central API work?

We start at the Interface stage, because a wrong interface choice is the most expensive mistake to undo. Our work with a business central partner mindset covers the whole path, and our dynamics 365 erp integration team builds and runs it. Delivery runs in this order:

  1. An interface decision record covering every current caller, including SOAP.
  2. An Entra app registration with a Business Central permission set per integration.
  3. A sandbox pilot of one workflow, with an ETag and retry test.
  4. Custom API pages for manufacturing fields, with webhooks plus a sweep job.
  5. Alerts for renewal, 429s and failed posts, wired to your on-call.
  6. An approval queue before anything posts, for any agent write.
How QServices delivers Business Central API integration: Interface decision → Entra app and permission set → Sandbox pilot → Custom API pages and webhooks → Monitoring and alerts

Implementation Checklist

  • Interface chosen per caller, with SOAP callers listed
  • Entra app registered and admin consent granted
  • App added on the Microsoft Entra Applications page with permission sets
  • Secret expiry date in a calendar, or certificate in use
  • GET /companies returns 200 from a non-production token
  • Paging uses @odata.nextLink, never $top or $skip
  • Webhook renewal job runs daily and a sweep catches misses
  • 429 and 503 handling with back-off tested in the sandbox

What should you do first to start your Business Central API project?

Pilot one workflow, such as released production orders to the shop floor, and measure time to sync, failed calls per 1,000 and 429s per day. Book a 30-min call and we’ll review your interfaces and plan that pilot with you.

Rohit Dabra

Written by Rohit Dabra

Co-Founder and CTO, QServices IT Solutions Pvt Ltd

Rohit Dabra is the Co-Founder and Chief Technology Officer at QServices, a software development company focused on building practical digital solutions for businesses. At QServices, Rohit works closely with startups and growing businesses to design and develop web platforms, mobile applications, and scalable cloud systems. He is particularly interested in automation and artificial intelligence, building systems that automate routine tasks for teams and organizations.

ERP integrationBusiness Central APIsDynamics 365Manufacturing systems
Talk to Our Experts

Frequently Asked Questions

Yes. As of 25 November 2026, Microsoft Learn’s operational limits for online list 6,000 requests per user per 5 minutes, 5 concurrent requests with 95 queued, a 350 MB payload and a 10-minute timeout. When you exceed them, Business Central returns HTTP 429. Back off, honor Retry-After and confirm the figures on Learn before sizing.

The REST API (API pages and queries, such as API v2.0) is versioned, supports webhooks and is the interface Microsoft prefers. An OData web service exposes a UI page or query by name and has no versioning. From version 30, Microsoft pages can no longer be exposed as OData endpoints. Custom pages you publish stay available.

No. A webhook subscription sends only a change reference, retries failed deliveries for up to 36 hours and expires after 3 days unless you renew it with a PATCH. Webhooks are also disabled after an environment copy. Pair them with a lastModifiedDateTime sweep so a missed notification doesn’t become missing data.

No. Microsoft doesn’t support extending its standard APIs with extra fields. You copy the AL source into your own custom API page with its own APIPublisher, APIGroup and APIVersion, and expose the fields you need. That’s also how you reach manufacturing tables such as production orders.

Start by choosing the interface, registering an Entra app, adding it on the Microsoft Entra Applications page and calling GET /companies from a sandbox. The API has no separate per-call fee that we know of, but licensing still applies, so confirm with Microsoft. In our experience a single-workflow pilot takes weeks, and a two-week fixed-price assessment is a sensible first step.

Related Topics

Next step

Ready to connect your plant to Business Central?

Bring your integration list. We will map each flow to an API and show where an agent can act with a person signing off.

Book a 30-min call →

Recent Articles

Globally Esteemed on Leading Rating Platforms

Earning Global Recognition: A Testament to Quality Work and Client Satisfaction. Our Business Thrives on Customer Partnership

5.0

5.0

5.0

5.0

What clients say

Rated 5.0 by the
people we've built for.

Every quote comes from a published review on GoodFirms, Clutch or our own site. Click a source to read the full review.

★★★★★
“QServices was highly professional, knowledgeable, and approachable. We continue to work with them on other projects.”
NHNicholas HoareCEO, Nextgen ClearingGoodFirms
★★★★★
“Quality assurance is often overlooked, but these guys take that very seriously. … their team of experienced, dedicated developers and highly skilled engineers quickly dissected and decomposed every problem and presented solutions and options that directly met my needs”
Erik BrownBusiness owner and software engineerClient review
★★★★★
“The supplier delivered the application on time and was responsive to our needs. He was also flexible, which allowed us to make changes on the fly.”
Zoltan BodnarCFO, Yusen LogisticsGoodFirms
★★★★★
“Thank you Sahil and team for wonderful collaboration right from day 0. … Highly recommend the developers.”
Ranbeer MakinClientClient review
★★★★★
“They are always looking for new ways to improve their products and services and to deliver value to their customers.”
OFOluwatosin FalolaSenior .NET Developer, POOLCORPClutch
★★★★★
“I have had an excellent experience working with QServices. We have a highly collaborative relationship and I value them not just as contractors but as partners.”
Alex VanderElsClientClient review
★★★★★
“Sahil undertakes every project with a high degree of professionalism. His communication style is unmatched and he is always available to resolve issues or just discuss the project.”
Philmore J.ClientClient review
★★★★★
“Responsive, patient and professional. Consistent weekly attention to our project, and new ideas we hadn't asked for.”
Michael WilliamsonPresident and CEO, United Way of Southeast LouisianaGoodFirms
★★★★★
“I have been working with them on a project for a year now … They have been able to solve problems that come up with bugs or development and able to communicate well with me.”
Steven LewisClientClient review
★★★★★
“We had been working on the app for two years. QServices built it in two months.”
Brian WallerPresident, Technology Association of IowaGoodFirms
★★★★★
“All projects were delivered on time and were fully completed upon delivery.”
RBRaine Marie BuenvendiaSr. Support Specialist, Arc.DevClutch
★★★★★
“They had excellent quality. The hypercare they provided after the project went live is exceptional.”
KKKrish KishorePresident, Zero Hour ConsultantsClutch
Book Appointment
Sahil kataria (1)
Sahil Kataria

Founder and CEO

amit Kumar
Amit Kumar

Chief Sales Officer

Talk To Sales

USA

+1 270-550-1166

flag

+1 270-550-1166

Phil J.
Phil J.Head of Engineering & Technology​
QServices Inc. undertakes every project with a high degree of professionalism. Their communication style is unmatched and they are always available to resolve issues or just discuss the project.​
Assured

Thank You

Thanks, we’ve got your details. A named member of our team will reply within one business day.