Get Company by ID

Prev Next
Get
/v2.0/companies({companyId})

Gets a single company by its id. Use the returned id as companyId in all other requests.

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
Path parameters
companyId
string (uuid) Required

GUID for targeted Company

Example54c4066e-2b2b-4118-ac75-7dfea25be205
Responses
200

OK

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
Expand All
object
error
object
code
string
Default"Unauthorized"
message
string
Default"The credentials provided are incorrect"
404

Not Found

Expand All
object
error
object
code
string
ExampleBadRequest_ResourceNotFound
message
string
ExampleResource not found for the segment 'dimensionValues'. CorrelationId: fc7b9039-73d9-48d2-a9d3-9a8e0f8b91da.