LedgerBee Developer
  • Getting started
  • Conventions
  • Products
  • API Reference
Information
Accounts
    List accountsget
API Key
    Get current API keyget
Company
    Get company detailsget
Customers
    List customersgetCreate a customerpostGet a single customergetUpdate a customerpatchList a customer's contactsgetList a customer's departmentsgetList customer groupsget
Dimensions
    List all dimensionsgetCreate a new dimension categorypostGet a single dimension by IDgetUpdate a dimension categoryputDelete a dimension categorydeleteCreate a new dimension valuepostUpdate a dimension valueputDelete a dimension valuedelete
Document Templates
    List document templatesget
Journal Categories
    List journal categoriesget
Journal Entries
    Create multiple journal entries in batch (DEPRECATED — migrate to v2)postList journal entriesgetCreate a single journal entry (DEPRECATED — use POST /api/v2/journal-entries)postGet a single journal entrygetUpdate a journal entry — correct the reference and/or set your external system idpatchGet attachments for a journal entrygetReverse posted journal entries in batchpostReverse a posted journal entrypost
MCP
    LedgerBee Developer MCP Serverpost
Meters
    List meter subscriptions by IDgetReport usagepostList meter subscriptions by nameget
Product Groups
    List product groupsgetCreate a product grouppostGet a product groupgetDelete a product groupdeleteUpdate a product grouppatch
Product Prices
    Create a product pricepostGet a product pricegetDelete a product pricedeleteUpdate a product pricepatchActivate a product pricepostArchive a product pricepostDisable a product pricepostSet a price as the product defaultpost
Products
    List productsgetCreate a productpostGet a productgetDelete a productdeleteUpdate a productpatch
Projects
    List all projectsgetIdempotent project upsertputCreate a projectpostGet a projectgetUpdate a projectputGet project profitgetAdd a subprojectpostUpdate a subprojectputDelete a subprojectdelete
Subscriptions
    List customer subscriptionsgetAssign a subscription to a customerpostGet a customer subscription by its stable idgetUpdate a customer subscriptionpatchList a subscription’s pending scheduled changesgetCancel a single pending scheduled changedeleteCancel a customer subscriptionpostList subscription plansgetArchive a subscription planpost
VAT Codes
    List VAT codesget
Webhook Endpoints
    List webhook endpointsgetCreate a webhook endpointpostRetrieve a webhook endpointgetUpdate a webhook endpointputDelete a webhook endpointdeleteRoll the signing secretpostSend a test eventpost
Portal SSO
    Published RP signing keys (JWKS) for a tenant's private_key_jwt SSOgetMint a customer-portal SSO handoff referencepostProvision a customer + grant portal access (partner JIT provisioning)postRevoke (force-refresh) a user's customer-portal sessionspost
Credit Notes
    List credit notesgetCreate a credit notepostGet a credit note by IDgetGet the delivery status of a credit notegetDownload the credit note PDFgetSend a credit note to the customerpost
Payment Methods
    List saved payment methods for a customergetApply a payment method to all active subscriptions for a customerpostCancel a saved card on the payment providerdeleteUnassign a payment method from a customerdeleteGenerate a link for the customer to save a card for future paymentspostSet a saved payment method as the customer defaultput
Draft Journal Entries
    Create multiple draft journal entries in batchpostList draft journal entriesgetCreate a draft journal entrypostGet a single draft journal entrygetDelete a draft journal entrydeleteBook a draft journal entrypost
Invoices
    List invoicesgetCreate a draft invoicepostGet an invoice by IDgetGet the delivery status of an invoicegetDownload the invoice PDFgetSend an invoice to the customerpost
Order Confirmations
    List order confirmationsgetCreate a draft order confirmationpostGet an order confirmation by idgetUpdate a draft order confirmationpatchConvert an order confirmation into an invoicepostDownload an order confirmation as PDFgetSend an order confirmationpost
Portal Plans
    List the full plan cataloguegetGet one plan by idgetResolve the gated pricing catalogue for an identified buyer (partner display)post
Quotes
    List quotesgetCreate a draft quotepostGet a quote by idgetUpdate a draft quotepatchConvert a quotepostDownload a quote as PDFgetSend a quotepost
Vendors
    List vendorsgetCreate a vendorpostList vendor contactsgetList vendor departmentsgetList vendor groupsget
Draft Journal Entries (v2)
    Create draft journal entries in batch (v2)postList draft journal entries (v2)getCreate a draft journal entry (v2)postGet a single draft journal entry (v2)getDelete a draft journal entry (v2)deleteUpdate a draft journal entry (v2)patchBook a draft journal entry (v2)post
Journal Entries (v2)
    Create a journal entry (v2)postCreate journal entries in batch (v2)post
Schemas
LedgerBee Public API
LedgerBee Public API

Company

Download schema

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 preferredLanguage and countryCode to 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 (countryCode is 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
{ "id": "550e8400-e29b-41d4-a716-446655440000", "name": "Acme Corporation", "email": "contact@acme.com", "vat": 12345678, "billingEmail": "billing@acme.com", "address": "123 Main Street", "city": "Copenhagen", "postalCode": "2100", "countryCode": "DK", "phone": "+45 12 34 56 78", "preferredLanguage": "da", "contactPersonFirstName": "John", "contactPersonLastName": "Doe" }

Get company details › Responses

Company information

CompanyResponse
id
​string · required

Unique identifier for the company, uuidv7 based

Example: 01234567-89AB-CDEF-0123-456789ABCDEF
name
​string · required

Company name

Example: Acme Corporation
email
​string · required

Primary email address

Example: contact@acme.com
address
​string · required

Street address

Example: 123 Main Street
vat
​number

VAT number

Example: 12345678
billingEmail
​string

Billing email address

Example: billing@acme.com
city
​string

City

Example: Copenhagen
postalCode
​string

Postal code

Example: 2100
countryCode
​string

Country code (ISO 3166-1 alpha-2)

Example: DK
phone
​string

Phone number

Example: +45 12 34 56 78
preferredLanguage
​string

Preferred language code

Example: en
contactPersonFirstName
​string

Contact person first name

Example: John
contactPersonLastName
​string

Contact person last name

Example: Doe
GET/v1/company
curl https://api.ledgerbee.com/api/v1/company \ --header 'x-api-key: <api-key>'
Example Responses
{ "id": "01234567-89AB-CDEF-0123-456789ABCDEF", "name": "Acme Corporation", "email": "contact@acme.com", "vat": 12345678, "billingEmail": "billing@acme.com", "address": "123 Main Street", "city": "Copenhagen", "postalCode": "2100", "countryCode": "DK", "phone": "+45 12 34 56 78", "preferredLanguage": "en", "contactPersonFirstName": "John", "contactPersonLastName": "Doe" }
json
application/json

API KeyCustomers
JSON