LedgerBee Public API
string · requiredstring · requiredstring · requiredstring · requirednumberstringstringstringstringstringstringstringstring
Company
Company information endpoints
Get company details
GET
https://api.ledgerbee.com/api
/v1/company
x-api-key (header)
or
OAuth 2.0
Retrieves the master data of the company your API key belongs to.
The company is resolved from the API key itself — there is no company parameter, and a key can never read another company's data.
Use Cases
- Connectivity check: The simplest authenticated call — verify your key works and confirm which company it is bound to before doing anything else.
- Document headers: Pull the legal name, VAT number, and address for rendering your own documents or syncing into another system.
- Localization: Use
preferredLanguageandcountryCodeto localize communication generated on behalf of the company.
Response Structure
- id: Unique identifier for the company (UUID)
- name: Legal/display company name
- email / billingEmail: Primary and billing contact addresses
- vat: VAT registration number (CVR in Denmark)
- address, city, postalCode, countryCode: Registered address
(
countryCodeis ISO 3166-1 alpha-2, e.g.DK) - phone: Phone number
- preferredLanguage: Language code used for company communication (e.g.
da,en) - contactPersonFirstName / contactPersonLastName: Primary contact person
Fields without a value are returned as null.
Required Scope
company-read
Performance
Results are cached for 5 seconds, so bursts of calls do not hit the database on every request.
Example Response
Code
Get company details › Responses
Company information
idUnique identifier for the company, uuidv7 based
Example: 01234567-89AB-CDEF-0123-456789ABCDEF
nameCompany name
Example: Acme Corporation
emailPrimary email address
Example: contact@acme.com
addressStreet address
Example: 123 Main Street
vatVAT number
Example: 12345678
billingEmailBilling email address
Example: billing@acme.com
cityCity
Example: Copenhagen
postalCodePostal code
Example: 2100
countryCodeCountry code (ISO 3166-1 alpha-2)
Example: DK
phonePhone number
Example: +45 12 34 56 78
preferredLanguagePreferred language code
Example: en
contactPersonFirstNameContact person first name
Example: John
contactPersonLastNameContact person last name
Example: Doe