Ava API Client

Feature

A Business Central API client that reads your tenant

Updated 21 November 2026

Most API clients treat Business Central as one more URL. You look up entity names in the documentation, paste company GUIDs by hand, and work out from a wall of JSON why a call was refused. Ava connects to your tenant, reads what is actually there, and does that work for you.

Connect in one step

Choose Connect Business Central and enter four things: your tenant ID, the environment name (production, sandbox, or whatever you named it), and the client ID and secret of an app registered in Microsoft Entra. Ava requests a token, tests the sign-in, and tells you plainly if a step was missed, such as the app not being enabled on the Microsoft Entra applications page in Business Central.

Once the sign-in works, Ava lists your companies and adds a folder of ready-made requests for customers, items, vendors, sales orders and sales invoices, each already pointing at the company you chose. The token is handled for you and refreshed when it expires. The secret is encrypted before it is stored and is never sent back to your browser.

If you have not registered an app yet, the guide How to connect to the Business Central API with OAuth 2.0 walks through both the Entra side and the Business Central side.

Pick the company, not the GUID

Almost everything in the Business Central API sits under a company, addressed by a 36-character ID. Ava keeps the company in a variable and lets you pick it from a list, so a URL reads {{bcApi}}/companies({{company}})/customers rather than a string you copied from somewhere. Switch company, and every request in the collection follows.

Browse every entity and bound action

Every Business Central API describes itself in a $metadata document. Explore reads it and shows what your tenant exposes: each entity, its fields with their types and maximum lengths, the related records you can expand, and the bound actions you can call, such as shipAndInvoice on a sales order or post on a journal.

Explore works from any URL under the API, so it covers the standard api/v2.0 endpoints, your own custom API pages at api/<publisher>/<group>/<version>, and published ODataV4 web services. That matters most for custom pages, which usually have no documentation at all. Tick the entities you want and Ava adds list, get, create, update and delete requests for each to a collection, with the right URL, headers and body. The $metadata explorer page describes this in more detail.

Request bodies written from your own fields

In a request's Body tab, From metadata… finds the entity from your URL and lists its fields. Tick the ones you want and Ava writes the JSON with the right types: strings quoted, numbers bare, dates in ISO format, enums as their member names. Fields the server sets, such as id, lastModifiedDateTime and calculated totals, are left out, so you do not get "Control is read-only" back. An update starts empty, because a field sent blank is cleared in Business Central, and a template of blanks would wipe a record.

ETags without copying

Updating or deleting a record needs an If-Match header holding the record's current ETag. Ava remembers the ETag from each GET. Write If-Match: {{$etag}} and it sends the ETag of that same record. Update and delete requests built from $metadata include the header already. The guide How to fix If-Match and ETag errors explains why the header exists and what the two errors mean.

Errors in plain English

When Business Central refuses a request, it answers with a JSON envelope: an error code such as Internal_RecordNotFound or Application_DialogException, and a message. Ava reads the envelope and shows the message first, the fields it names, and what to try next. Sign-in errors from Microsoft Entra, the AADSTS codes, are shown as they are, and the guide Business Central API errors explained lists what each one means.

Chain calls, check results, run a folder

A Capture row copies a value from a response into a variable: the id of an order you just created, a header, or the status code. The next request uses it as {{orderId}}. Test rows check a status, header, body field or response time with operators such as equals, contains and less than, and need no code. Run a folder and Ava sends each request in turn and shows what passed. It is a sandbox regression suite without a script.

Code for your extension

When a request works, the Code button turns it into AL: a procedure that builds the HttpClient call, sets the headers and body, and, for OAuth2 client credentials, acquires the token in a separate procedure using SecretText. cURL is there too for a shell or a ticket. See the AL code generator page. Code generation is a Pro feature.

What it does not do

Questions

Do I need to install anything?

No. Open app.apiclient.in in your browser and sign up. Requests are sent by our server, so there are no CORS problems and no desktop agent.

Does it work with custom API pages?

Yes. Explore works from any URL under the API, including api/<publisher>/<group>/<version>, and reads that route's own $metadata, so your extension's entities and fields appear exactly as you published them.

Can I bring my Postman collections?

Yes. Export a collection from Postman as v2.1 and import it, and do the same with environments. Secrets are not carried across, so you enter those once. Import and export are included on the Free plan.

Is the Business Central part free?

Yes. Every Business Central feature, including Explore and request bodies from $metadata, is on the Free plan. Pro adds unlimited collections, environments, code generation and shared team workspaces.