Get
/v2.0/companies
Gets all companies in Business Central environment
Security
OAuth
FlowClient Credentials
Token URLhttps://login.microsoftonline.com/{tenantId}/oauth2/v2.0/token
Scopes:
https://api.businesscentral.dynamics.com/.defaultGrants the permissions assigned to the Microsoft Entra ID application in Business Central
Query parameters
$top
integer
Maximum number of records to return. Without $top, Business Central returns the records page by page and adds @odata.nextLink to the response.
Minimum1
$skip
integer
Number of records to skip.
Minimum0
Default0
$orderby
string
Sort order, e.g. lastModifiedDateTime desc.
$select
string
Comma-separated list of properties to return.
$count
boolean
When true, the response includes @odata.count with the total number of matching records.
Defaultfalse
Responses
200
OK
object
@odata.context
string (uri)
OData context URL of the collection
@odata.count
integer
Total number of matching records, returned when $count=true
@odata.nextLink
string (uri)
URL of the next page, present when more records are available
value
Array of object (company)
object
id
string (uuid)
systemVersion
string
timestamp
integer
Minimum1000
Maximum2147483648
name
string
displayName
string
businessProfileId
string
systemCreatedAt
string (date-time)
systemCreatedBy
string (uuid)
systemModifiedAt
string (date-time)
systemModifiedBy
string (uuid)
401
Unauthorized
Headers
WWW-Authenticate
string
object
error
object
code
string
Default"Unauthorized"
message
string
Default"The credentials provided are incorrect"