LedgerBee Developer
  • Getting started
  • Conventions
  • Products
  • Advisor firms
  • Configuration
  • API Reference
Information
Accounts
    List accountsgetCreate an accountpostGet an accountgetDelete an accountdeleteUpdate an accountpatch
Advisor Authority Extracts
    Submit authority extract data for an advisor firm's clientspost
Advisor Clients
    List the advisor firm's clientsget
API Key
    Get current API keyget
Authority Extracts
    Submit authority extract datapost
Bank Reconciliations
    Reconcile bank lines against entriespostUndo a bank reconciliationpostCheck what undoing a reconciliation would dopostReconcile a batch of matchespostCheck what reconciling a batch of matches would dopostCheck what reconciling bank lines against entries would dopost
Bank Transactions
    List bank linesgetGet a bank linegetDismiss bank lines from reconciliationpostCheck which bank lines a dismiss would changepostRestore dismissed bank lines to reconciliationpostCheck which bank lines a restore would changepost
Billing Groups
    Form a billing grouppostGet a billing groupgetAdd members to a billing grouppostRemove a member from a billing groupdeleteCheck billing group eligibilitypost
Budgets
    List budgetsgetGet a budgetgetGet the budget vs actuals comparisongetExport a budget's Excel workbookgetOverwrite a budget's figures from an edited workbookpostList a budget's frozen baselinesgetGet a frozen baseline with its snapshot cellsgetList a budget's re-baseline proposalsgetList a budget's scenariosgetResolve a budget's grid under a scenariogetGet the variance report vs a frozen baselinegetGet the runway headlineget
Checkout
    Confirm the checkoutpostQuote a first periodpostIntegration readinessgetMint a checkout sessionpostRehydrate a sessiongetRelease the card hold (edit-after-card)postPoll card statusgetOpen the card windowpostOpen a card window for a live subscriptionpost
Company
    Get company detailsget
Connected app OAuth
    JSON Web Key Set used to verify OAuth access-token signaturesgetRFC 8414 authorization-server metadata for the connected-app OAuth servergetRFC 9728 protected-resource metadata for an MCP resourcegetRFC 9728 protected-resource metadata for an MCP resourcegetOpenID Connect discovery document for the connected-app OAuth serverget
Credit Note Links
    Link a credit note to the invoice it creditspostCheck a credit note’s links and the invoices it can be linked topostDetach a credit note from the invoices it is applied topost
Credit Notes
    List credit notesgetCreate a credit notepostGet a credit notegetGet the delivery status of a credit notegetDownload the credit note PDFgetSend a credit note to the customerpostCredit a whole invoicepost
Customers
    List customersgetCreate a customerpostGet a customergetDelete a customerdeleteUpdate a customerpatchList a customer's contactsgetList a customer's departmentsgetList customer groupsget
Dimensions
    List all dimensionsgetCreate a new dimension categorypostGet a dimensiongetUpdate a dimension categoryputDelete a dimension categorydeleteList distribution keys (paginated)getCreate a distribution keypostGet a distribution keygetList dimension values (paginated)getCreate a new dimension valuepostUpdate a dimension valueputDelete a dimension valuedelete
Discounts
    List discountsgetCreate a discountpostGet a discountgetDelete a discountdeleteUpdate a discountpatchSet a discount's amount in one currencyputRemove a discount's amount in one currencydeleteCheck whether a discount applies to a product for a customer on a daygetAssign a discountpostRemove an assignmentdeleteUpdate an assignmentpatchList a discount's codesgetAdd a code to a discountpostDelete a codedeleteUpdate a codepatchList the discounts that apply to a product for a customer on a daygetCheck a cartpostLook up a discount codeget
Document Templates
    List document templatesget
Document Upload Links
    Upload a file through a minted linkpost
Download Links
    Mint a download link for a document PDFgetDownload a minted linkget
Draft Journal Entries
    Create multiple draft journal entries in batchpostList draft journal entriesgetCreate a draft journal entrypostGet a draft journal entrygetDelete a draft journal entrydeleteBook a draft journal entrypost
Draft Journal Entries (v2)
    Create draft journal entries in batch (v2)postList draft journal entries (v2)getCreate a draft journal entry (v2)postGet a draft journal entry (v2)getDelete a draft journal entry (v2)deleteUpdate a draft journal entry (v2)patchGet attachments for a draft journal entry (v2)getAdd a document to a draft journal entry (v2)postRemove a document from a draft journal entry (v2)deleteBook a draft journal entry (v2)post
Entitlements
    List entitlementsgetCreate an entitlementpostGet an entitlementgetDelete an entitlementdeleteUpdate an entitlementpatch
Invoices
    List invoicesgetCreate a draft invoicepostGet an invoicegetDelete a draft invoicedeleteUpdate an unsent invoicepatchGet the delivery status of an invoicegetDownload the invoice PDFgetSend an invoice to the customerpost
Journal Categories
    List journal categoriesgetCreate a journal categorypostUpdate a journal categoryputDelete a journal categorydelete
Journal Entries
    List journal entriesgetGet a journal entrygetUpdate a journal entry — correct the reference and/or set your external system idpatchGet attachments for a journal entrygetAdd a document to a journal entrypostRemove a document from a journal entrydeletePreview a correction without posting itpostMove postings to different accounts, keeping the document intactpostRebuild the entry a reversal undid, as a draftpostPreview rebuilding the entry a reversal undidpostReverse a posted entry and open a draft to re-enter itpostReverse posted journal entries in batchpostPreview reversing posted journal entries in batchpostReverse a posted journal entrypostPreview reversing a posted journal entrypost
Journal Entries (v2)
    Create a journal entry (v2)postCreate journal entries in batch (v2)post
MCP
    LedgerBee Developer MCP Serverpost
Meters
    List meter subscriptions by IDgetReport usagepostList meter subscriptions by nameget
Open Entries
    List a counterparty’s open entriesget
Order Confirmations
    List order confirmationsgetCreate a draft order confirmationpostGet an order confirmationgetUpdate a draft order confirmationpatchConvert an order confirmation into an invoicepostDownload an order confirmation as PDFgetSend an order confirmationpost
Payment Methods
    List saved payment methods for a customergetCancel 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
Portal Plans
    List the full plan cataloguegetGet a plangetResolve the gated pricing catalogue for an identified buyer (partner display)post
Portal SSO
    Get a tenant's SSO signing keys (JWKS)getMint a checkout-vouch token (partner-vouched anonymous checkout)postMint a customer-portal SSO handoff referencepostProvision a customer + grant portal access (partner JIT provisioning)postRevoke (force-refresh) a user's customer-portal sessionspost
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 productpatchArchive a productpost
Projects
    List all projectsgetCreate or update a project by external referenceputCreate a projectpostGet a projectgetUpdate a projectputGet project profitgetAdd a subprojectpostUpdate a subprojectputDelete a subprojectdelete
Quotes
    List quotesgetCreate a draft quotepostGet a quotegetUpdate a draft quotepatchConvert a quotepostDownload a quote as PDFgetSend a quotepost
Settlements
    List a counterparty’s settlementsgetSettle open entries against each otherpostGet a settlementgetUndo a settlementpostCheck what undoing a settlement would dopostCheck what settling these entries would dopost
Shipments
    List shipmentsgetCreate a shipment from an orderpostGet a shipmentgetCancel a shipmentpostDispatch a shipmentpost
Stock
    List stock movementsgetList on-hand stockgetOn-hand for one productget
Subscriptions
    List customer subscriptionsgetAssign a subscription to a customerpostGet a customer subscription by its stable idgetUpdate a customer subscriptionpatchAdd an add-on to a customer subscriptionpostAttach existing subscriptions as add-onspostCheck whether subscriptions can become add-onspostChange the products on a customer subscriptionpostRetry a failed card paymentpostList a subscription's pending scheduled changesgetCancel a single pending scheduled changedeleteGet a subscription's unbilled usagegetCancel a customer subscriptionpostList subscription plansgetCreate a subscription planpostArchive a subscription planpost
Suppliers
    List suppliersgetCreate a supplierpostDelete a supplierdeleteList supplier contactsgetList supplier departmentsgetList supplier groupsget
VAT Codes
    List VAT codesgetCreate a VAT codepostGet a VAT codegetDelete a VAT codedeleteUpdate a VAT codepatch
VAT periods
    Record a VAT return filed outside LedgerBeepostPreview recording a VAT return filed outside LedgerBeepostSettle a filed VAT periodpostPreview a VAT period settlementpost
Vendors
    List vendorsgetCreate a vendorpostList vendor contactsgetList vendor departmentsgetList vendor groupsget
Webhook Endpoints
    List webhook endpointsgetCreate a webhook endpointpostRetrieve a webhook endpointgetUpdate a webhook endpointputDelete a webhook endpointdeleteRoll the signing secretpostSend a test eventpost
Schemas
LedgerBee Public API
LedgerBee Public API

VAT periods

Download schema

Record a VAT return filed outside LedgerBee

POST
https://api.ledgerbee.com/api
/v1/vat-periods/mark-filed
x-api-key (header)
or
OAuth 2.0

Credential: a company's API key or OAuth token.

Records that the VAT return for a period was reported to SKAT outside LedgerBee (on skat.dk, or by an accountant). Nothing is sent to SKAT. The figures recorded are the books as they stand now; the call supplies only the period and the day it was reported. Once recorded, the period counts as filed everywhere, and it can be settled with POST /api/v1/vat-periods/settle.

Refused with 400 VAT_MANUAL_FILING_PERIOD_NOT_ENDED for a period still running, VAT_MANUAL_FILING_REPORTED_DATE_OUT_OF_RANGE for a reported date before the period end or in the future, and VAT_MANUAL_FILING_PERIOD_ALREADY_FILED for a period overlapping a filed one. A credential with no person behind it (an API key) is refused with 403 VAT_MANUAL_FILING_REQUIRES_USER: the record names who filed.

Required Scope

  • journal-entries-write

Record a VAT return filed outside LedgerBee › Headers

x-api-idempotency-key
​string · maxLength: 255

Optional idempotency key for safely retrying mutating requests.

Record a VAT return filed outside LedgerBee › Request Body

MarkVatPeriodFiledRequest
startDate
​string · required

First day of the VAT period (YYYY-MM-DD).

Example: 2026-04-01
endDate
​string · required

Last day of the VAT period (YYYY-MM-DD).

Example: 2026-06-30
reportedDate
​string · required

The day the return was reported to SKAT outside LedgerBee (YYYY-MM-DD): on or after the period end, and not in the future.

Example: 2026-08-28

Record a VAT return filed outside LedgerBee › Responses

Filing recorded.

VatPeriodFiledResponse
startDate
​string · required

First day of the filed period.

Example: 2026-04-01
endDate
​string · required

Last day of the filed period.

Example: 2026-06-30
reportedDate
​string | null · required

The day the return was reported.

Example: 2026-08-28
source
​string · enum · required

MANUAL for a filing recorded here; APP for one sent to SKAT through LedgerBee.

Enum values:
APP
MANUAL
hasSettleableBalances
​boolean · required

Whether settling the period would post anything. False for a period with no VAT postings.

POST/v1/vat-periods/mark-filed
curl https://api.ledgerbee.com/api/v1/vat-periods/mark-filed \ --request POST \ --header 'Content-Type: application/json' \ --header 'x-api-key: <api-key>' \ --data '{ "startDate": "2026-04-01", "endDate": "2026-06-30", "reportedDate": "2026-08-28" }'
Example Request Body
{ "startDate": "2026-04-01", "endDate": "2026-06-30", "reportedDate": "2026-08-28" }
json
application/json
Example Responses
{ "startDate": "2026-04-01", "endDate": "2026-06-30", "reportedDate": "2026-08-28", "source": "APP", "hasSettleableBalances": true }
json
application/json

Preview recording a VAT return filed outside LedgerBee

POST
https://api.ledgerbee.com/api
/v1/vat-periods/mark-filed/preview
x-api-key (header)
or
OAuth 2.0

Credential: a company's API key or OAuth token.

Takes the same body as POST /api/v1/vat-periods/mark-filed and raises every refusal that call would, with the same code, without recording anything. Answers with the period and reported date otherwise.

Required Scope

  • journal-entries-write

Preview recording a VAT return filed outside LedgerBee › Headers

x-api-idempotency-key
​string · maxLength: 255

Optional idempotency key for safely retrying mutating requests.

Preview recording a VAT return filed outside LedgerBee › Request Body

MarkVatPeriodFiledRequest
startDate
​string · required

First day of the VAT period (YYYY-MM-DD).

Example: 2026-04-01
endDate
​string · required

Last day of the VAT period (YYYY-MM-DD).

Example: 2026-06-30
reportedDate
​string · required

The day the return was reported to SKAT outside LedgerBee (YYYY-MM-DD): on or after the period end, and not in the future.

Example: 2026-08-28

Preview recording a VAT return filed outside LedgerBee › Responses

The filing would be recorded. Nothing was recorded.

VatPeriodFilingPreviewResponse
startDate
​string · required

First day of the period that would be recorded as filed.

Example: 2026-04-01
endDate
​string · required

Last day of the period.

Example: 2026-06-30
reportedDate
​string · required

The day the return would be recorded as reported.

Example: 2026-08-28
POST/v1/vat-periods/mark-filed/preview
curl https://api.ledgerbee.com/api/v1/vat-periods/mark-filed/preview \ --request POST \ --header 'Content-Type: application/json' \ --header 'x-api-key: <api-key>' \ --data '{ "startDate": "2026-04-01", "endDate": "2026-06-30", "reportedDate": "2026-08-28" }'
Example Request Body
{ "startDate": "2026-04-01", "endDate": "2026-06-30", "reportedDate": "2026-08-28" }
json
application/json
Example Responses
{ "startDate": "2026-04-01", "endDate": "2026-06-30", "reportedDate": "2026-08-28" }
json
application/json

Settle a filed VAT period

POST
https://api.ledgerbee.com/api
/v1/vat-periods/settle
x-api-key (header)
or
OAuth 2.0

Credential: a company's API key or OAuth token.

Posts the VAT settlement for a filed period, dated the last day of the period: every VAT account is brought to zero, the net goes to the VAT settlement account (payable to SKAT, or a refund from SKAT), and any øre the rounded lines leave over goes to the VAT rounding account. The same entry the SKAT page posts when a period is closed.

The period must be filed — through LedgerBee, or recorded with POST /api/v1/vat-periods/mark-filed — with exactly these dates. Refused with 400 VAT_NO_SUCCESSFUL_SUBMISSION when it is not, VAT_PERIOD_ALREADY_SETTLED when it is already settled, VAT_OVERLAPPING_SETTLEMENT_EXISTS when a settled period overlaps it, and VAT_NO_TRANSACTIONS_IN_PERIOD when there is nothing to settle. The posting period of the last day must be open.

Preview the entry first with POST /api/v1/vat-periods/settle/preview.

Required Scope

  • journal-entries-write

Settle a filed VAT period › Headers

x-api-idempotency-key
​string · maxLength: 255

Optional idempotency key for safely retrying mutating requests.

Settle a filed VAT period › Request Body

VatPeriodRequest
startDate
​string · required

First day of the VAT period (YYYY-MM-DD).

Example: 2026-04-01
endDate
​string · required

Last day of the VAT period (YYYY-MM-DD).

Example: 2026-06-30

Settle a filed VAT period › Responses

Settlement posted.

SettleVatPeriodResponse
journalEntryId
​string · required

The posted settlement journal entry.

Example: 550e8400-e29b-41d4-a716-446655440000
POST/v1/vat-periods/settle
curl https://api.ledgerbee.com/api/v1/vat-periods/settle \ --request POST \ --header 'Content-Type: application/json' \ --header 'x-api-key: <api-key>' \ --data '{ "startDate": "2026-04-01", "endDate": "2026-06-30" }'
Example Request Body
{ "startDate": "2026-04-01", "endDate": "2026-06-30" }
json
application/json
Example Responses
{ "journalEntryId": "550e8400-e29b-41d4-a716-446655440000" }
json
application/json

Preview a VAT period settlement

POST
https://api.ledgerbee.com/api
/v1/vat-periods/settle/preview
x-api-key (header)
or
OAuth 2.0

Credential: a company's API key or OAuth token.

Takes the same body as POST /api/v1/vat-periods/settle and answers with the entry that call would post — each line with its account, side, amount and role, and the net payable or refundable — without posting anything. Every refusal the settlement would raise is raised here too, with the same code.

Required Scope

  • journal-entries-write

Preview a VAT period settlement › Headers

x-api-idempotency-key
​string · maxLength: 255

Optional idempotency key for safely retrying mutating requests.

Preview a VAT period settlement › Request Body

VatPeriodRequest
startDate
​string · required

First day of the VAT period (YYYY-MM-DD).

Example: 2026-04-01
endDate
​string · required

Last day of the VAT period (YYYY-MM-DD).

Example: 2026-06-30

Preview a VAT period settlement › Responses

Preview produced. Nothing was posted.

VatSettlementPreviewResponse
startDate
​string · required

First day of the period.

Example: 2026-04-01
endDate
​string · required

Last day of the period.

Example: 2026-06-30
postingDate
​string · required

The settlement posts on the last day of the period.

Example: 2026-06-30
description
​string · required

Description the settlement entry would carry.

Example: Momsafslutning Q2 2026
currency
​string · required

The company's base currency; every amount is in it.

Example: DKK
settlementAmount
​number · required

Net VAT for the period: positive is payable to SKAT, negative is a refund from SKAT.

Example: 30000
​VatSettlementPreviewLine[] · required

The lines the settlement entry would post.

POST/v1/vat-periods/settle/preview
curl https://api.ledgerbee.com/api/v1/vat-periods/settle/preview \ --request POST \ --header 'Content-Type: application/json' \ --header 'x-api-key: <api-key>' \ --data '{ "startDate": "2026-04-01", "endDate": "2026-06-30" }'
Example Request Body
{ "startDate": "2026-04-01", "endDate": "2026-06-30" }
json
application/json
Example Responses
{ "startDate": "2026-04-01", "endDate": "2026-06-30", "postingDate": "2026-06-30", "description": "Momsafslutning Q2 2026", "currency": "DKK", "settlementAmount": 30000, "lines": [ { "accountId": "accountId", "accountNumber": "7680", "accountName": "Udgående moms", "type": "debit", "amount": 50000, "role": "vat_account" } ] }
json
application/json

VAT CodesVendors