Schemas
CompanyResponse
idUnique identifier for the company, uuidv7 based
nameCompany name
emailPrimary email address
addressStreet address
vatVAT number
billingEmailBilling email address
cityCity
postalCodePostal code
countryCodeCountry code (ISO 3166-1 alpha-2)
phonePhone number
preferredLanguagePreferred language code
contactPersonFirstNameContact person first name
contactPersonLastNameContact person last name
RateLimitTierResponse
nameName of the rate limit tier
ttlTime-to-live in milliseconds for this rate limit tier (0 means no time limit)
limitMaximum number of requests allowed within the TTL window (-1 means unlimited)
ApiKeyInfoResponse
Available rate limit tiers for this API key
expiresAtExpiration date and time of the API key
ipWhitelistList of IP addresses allowed to use this API key
scopesList of scopes granted to this API key
AccountResponse
idThe unique identifier of the account
nameName of the account
accountNumberAccount type number
publicAccountIdPublic account id that the account maps to
ledgerTypeType of ledger account. Only BALANCE_SHEET and PROFIT_AND_LOSS accounts can be used in journal entries.
accountClassificationAccount classification (ASSET, LIABILITY, EQUITY, REVENUE, EXPENSE)
controlAccountTypeControl account type. ACCOUNTS_RECEIVABLE requires customerId on journal entries, ACCOUNTS_PAYABLE requires vendorId. Null for regular accounts.
CustomerGroupResponse
idThe unique identifier of the customer group
numberCustomer group number
nameName of the customer group
discountDiscount percentage for this customer group
accountIdThe ledger account ID associated with this customer group
accountNumberThe ledger account number associated with this customer group
accountNameThe ledger account name associated with this customer group
Key-value metadata attached to the customer group
CustomerDepartmentResponse
idThe unique identifier of the department
nameName of the department
isDefaultWhether this is the default department for the customer
isActiveWhether the department is active
poNumberPurchase order number
eanNumberEAN number for e-invoicing
addressStreet address
cityCity
postalCodePostal code
countryCodeTwo-letter country code (ISO 3166-1 alpha-2)
CustomerContactResponse
idThe unique identifier of the contact
nameName of the contact
isDefaultForCustomerWhether this is the default contact for the customer
emailEmail address
phonePhone number
CustomerResponse
idThe unique identifier of the customer
customerNumberCustomer number
customerTypeCustomer type
nameName of the customer
vatZoneVAT zone classification
customerGroupIdCustomer group ID
isActiveWhether the customer is active
billingRelationshipBilling relationship. self = this customer is billed directly. parent_pays = the parent customer (set via parentCustomerId) is billed instead.
includeChildDetailsPdfWhether to attach a zip of per-child detail PDFs when sending consolidated invoices. Only relevant for parent customers in single_invoice mode.
customerGroupNumberCustomer group number
customerGroupNameCustomer group name
emailEmail address
phonePhone number
addressStreet address
cityCity
postalCodePostal code
countryCodeTwo-letter country code (ISO 3166-1 alpha-2)
vatNumberVAT registration number
websiteWebsite URL
externalSystemIdExternal system identifier for tracking the customer across other systems
creditLimitCredit limit
openingBalanceOpening balance in the company base currency (signed: positive = the customer owes us)
paymentTermsPayment terms in days
paymentTermTypePayment term type
defaultCurrencyDefault currency code
parentCustomerIdParent customer ID. When set, this customer is a child in a parent-child billing relationship. Set together with billingRelationship to change how this customer is billed.
consolidationModeConsolidation mode for a parent customer. single_invoice = all child subscriptions are consolidated onto one parent invoice on billingDay. per_child_invoice = each child receives its own invoice. Only meaningful on parent customers.
billingDayDay of month (1-28) when the parent consolidated invoice is generated. Required for single_invoice consolidation mode.
parentInvoiceTemplateIdParent single invoice PDF template override
Key-value metadata attached to the customer
CreateCustomerRequest
customerTypeSpecifies whether the customer is a business or a private person
customerNumberUnique customer number
nameCustomer name
vatZoneVAT zone classification
customerGroupIdCustomer group ID
countryCodeTwo-letter country code
defaultCurrencyDefault currency code
emailEmail address
phonePhone number
addressStreet address
cityCity
postalCodePostal code
vatNumberVAT registration number
websiteWebsite URL
externalSystemIdExternal system identifier for tracking the customer across other systems
notesAdditional notes
creditLimitCredit limit
openingBalanceOpening balance in the company base currency, seeding receivables that predate LedgerBee. Signed: positive = the customer owes us, negative = a credit position.
paymentTermsPayment terms in days
paymentTermTypePayment term type
isActiveWhether the customer is active
parentCustomerIdParent customer ID. Set when creating this customer as a child in a parent-child billing relationship. Must be combined with billingRelationship = parent_pays to route billing to the parent. Send null to create a standalone customer.
billingRelationshipBilling relationship. self (default) = this customer is billed directly. parent_pays = the parent customer (set via parentCustomerId) is billed instead.
consolidationModeConsolidation mode (parent customers only). single_invoice = all child subscriptions consolidated onto one invoice on billingDay. per_child_invoice = each child receives its own invoice.
billingDayDay of month (1-28) for the parent consolidated invoice. Required for single_invoice consolidation.
includeChildDetailsPdfWhether to attach a zip of per-child detail PDFs when sending consolidated invoices
parentInvoiceTemplateIdParent single invoice PDF template override. Send null to clear.
Key-value metadata to attach to the customer. At most 50 entries; keys up to 128 characters, string values up to 500 characters.
CreateCustomerResponse
idThe unique identifier of the created customer
customerNumberCustomer number
SubscriptionTransitionItem
customerSubscriptionIdID of the customer subscription to transition to parent billing
UpdateCustomerRequest
customerTypeCustomer type
customerNumberUnique customer number
nameCustomer name
vatZoneVAT zone classification
customerGroupIdCustomer group ID
emailEmail address. Send null or empty string to clear.
phonePhone number
addressStreet address
cityCity
postalCodePostal code
countryCodeTwo-letter country code
vatNumberVAT registration number
websiteWebsite URL
externalSystemIdExternal system identifier for tracking the customer across other systems
notesAdditional notes
creditLimitCredit limit
openingBalanceOpening balance in the company base currency, seeding receivables that predate LedgerBee. Signed: positive = the customer owes us, negative = a credit position.
paymentTermsPayment terms in days
paymentTermTypePayment term type
defaultCurrencyDefault currency code
isActiveWhether the customer is active
parentCustomerIdParent customer ID. Send null to detach from parent. Changing this field on a customer with active subscriptions will transition those subscriptions to the parent's billing day with a clean cut at today's date: advance-billed subscriptions receive a credit note for the remaining days of the current period, and arrears-billed subscriptions are invoiced up to the transition date. When transitioning, subscriptionTransitions must list every active subscription on this customer as explicit acknowledgement that they will be migrated.
billingRelationshipBilling relationship. Change to parent_pays together with parentCustomerId to route billing to the parent.
consolidationModeConsolidation mode (parent customers only). Send null to clear.
billingDayDay of month (1-28) for the parent consolidated invoice. Send null to clear.
includeChildDetailsPdfWhether to attach a zip of per-child detail PDFs when sending consolidated invoices
parentInvoiceTemplateIdParent single invoice PDF template override. Send null to clear.
Subscription transitions — required when changing parentCustomerId, billingRelationship, or consolidationMode on a customer with active subscriptions. Must list every active subscription on this customer as explicit acknowledgement that each one will be migrated to the new billing arrangement with a clean cut at today's date.
Key-value metadata. When provided, REPLACES the customer metadata wholesale — send the complete desired map; an empty object clears all entries. Omit the field to leave metadata unchanged. At most 50 entries; keys up to 128 characters, string values up to 500 characters.
DimensionValue
idUnique identifier of the dimension value
nameDisplay name of the dimension value
parentIdParent dimension value ID for hierarchical structures. Null for root-level values. Use this to create nested structures like "Sales > Europe > Denmark".
Child dimension values (nested structure). Only populated in list responses.
Dimension
idUnique identifier of the dimension category
nameDisplay name of the dimension category
isUniqueWhen true, only one value from this dimension can be assigned to a journal entry (mutually exclusive). When false, multiple values can be assigned (additive tags). Example: A "Department" dimension is typically unique (one department per entry), while a "Tags" dimension might allow multiple values.
Available dimension values within this category, organized as a hierarchical tree. Root values have parentId as null, nested values reference their parent.
CreateDimensionRequest
nameDisplay name for the dimension category. Must be unique within your company. Choose a descriptive name that clearly indicates the categorization purpose.
isUniqueWhether only one value from this dimension can be assigned to a journal entry. Set to true for mutually exclusive categories (e.g., Department - an entry belongs to exactly one department). Set to false for additive tags (e.g., Tags - an entry can have multiple tags). This constraint is enforced when assigning dimension values to journal entries.
DimensionResponse
idUnique identifier of the created/updated dimension category
nameDisplay name of the dimension category
isUniqueWhether only one value from this dimension can be assigned per journal entry
UpdateDimensionRequest
nameNew display name for the dimension category. Must be unique within your company. Changing the name does not affect existing dimension value assignments.
isUniqueUpdate the uniqueness constraint for this dimension category. Changing from false to true will fail if any journal entries currently have multiple values assigned from this category. Plan this change carefully as it affects data validation.
CreateDimensionValueRequest
dimensionIdID of the dimension category this value belongs to. The category must exist and belong to your company.
nameDisplay name for the dimension value. Must be unique within the dimension category. Choose descriptive names that will be clear when selecting values in the UI.
parentIdParent dimension value ID for creating hierarchical structures. Leave null or omit for root-level values. The parent must exist within the same dimension category. Example: Create "Europe" first, then create "Denmark" with parentId set to Europe's ID.
DimensionValueResponse
idUnique identifier of the created/updated dimension value
nameDisplay name of the dimension value
dimensionIdID of the dimension category this value belongs to
dimensionNameName of the dimension category this value belongs to
dimensionIsUniqueWhether the parent category enforces single selection
parentIdParent dimension value ID, if this is a nested value
UpdateDimensionValueRequest
nameNew display name for the dimension value. Must be unique within the dimension category. Changing the name does not affect existing journal entry assignments.
parentIdNew parent dimension value ID. Set to null to move to root level. The parent must exist within the same dimension category and cannot create circular references (e.g., A cannot be parent of B if B is already an ancestor of A).
AttachmentRequest
filenameFilename with extension
contentBase64-encoded file content. Note: Base64 encoding adds ~33% overhead. Individual files should not exceed 10MB before encoding.
mimeTypeMIME type of the file
DraftSplitEntryLine
typeTransaction type for this line (debit or credit)
amountAmount for this line (must be non-negative)
accountIdAccount ID for this line (UUID). Optional for drafts — empty lines (type + amount with no account) are persisted as placeholders and must be completed in the platform UI before booking. Cannot be a heading or total account when provided.
vatCodeIdVAT/Tax code ID for this line (UUID)
descriptionOptional per-line memo (max 500 characters). Persisted on the draft line and carried onto the booked ledger transaction when the draft is booked.
tagIdsDimension tag IDs to attach to this specific line. Per-line tagIds MUST come from single-select (dimension) categories — multi-select tags belong at the entry-level tagIds instead.
CreateDraftJournalEntryRequest
accountIdPrimary account ID (UUID). Cannot be a heading or total account. For typed entries (supplier_invoice, customer_invoice, etc.), must have appropriate account classification.
dateDate of the journal entry in YYYY-MM-DD format
amountAmount of the transaction (must be positive)
contraAccountIdContra account ID (UUID). Optional for drafts — partial drafts (primary line only) are allowed and must be completed in the platform UI before booking. Cannot be a heading or total account.
entryTypeEntry type determines the journal type and enforces account classification rules. Account classification requirements: supplier_invoice: account=EXPENSE|ASSET, contraAccount=LIABILITY; supplier_payment: account=LIABILITY, contraAccount=ASSET; customer_invoice: account=ASSET, contraAccount=REVENUE; customer_payment: account=ASSET, contraAccount=ASSET; journal: no restrictions. Legacy values "invoice" and "payment" map to supplier types.
typeTransaction type (debit or credit)
descriptionDescription of the journal entry
referenceReference number or identifier
currencyCurrency code (defaults to DKK)
customerIdCustomer ID (UUID) for customer-related entries
vendorIdVendor ID (UUID). Required for supplier_invoice / supplier_payment entry types, and for any posting that touches an accounts-payable control account.
tagIdsTag/Dimension IDs to attach to the journal entry
vatCodeIdVAT/Tax code ID (UUID). Applied to the primary account unless split entries are used.
File attachments (base64-encoded). Maximum 10 attachments per entry. Total request size limit is 15MB.
Split entry lines for multi-account drafts. Each line may omit accountId to act as a placeholder; the draft is persisted with NULL on those lines and the user completes them in the platform UI. Booking still requires every line to carry a real account and the entry to balance.
externalSystemIdYour own system's id for this draft. Carried onto the booked journal entry. Not unique — several drafts/entries may share one id. Filter the list endpoint by externalSystemId.
CreateDraftJournalEntryBatchRequest
Array of draft journal entries to create (1-100 entries per batch)
DraftSplitEntryLineResponse
accountIdAccount ID
typeTransaction type (debit or credit)
amountAmount for this line in transaction currency
vatCodeIdVAT/Tax code ID
descriptionPer-line memo
tagIdsTag/Dimension IDs attached to this line. Per-line dimensions override the entry-level tagIds on this specific ledger transaction.
DraftJournalEntryResponse
idDraft journal entry ID
dateDate in YYYY-MM-DD format
amountDenormalized amount in base/functional currency (e.g. DKK). Computed as MAX(debitTotal, creditTotal) from lines, converted via exchangeRate.
currencyCurrency code
journalTypeJournal type
statusAlways "DRAFT" for draft journal entries
createdAtCreation timestamp
updatedAtLast update timestamp
documentDateDocument date (date on the invoice/voucher). Null when not set.
descriptionDescription
referenceReference number
externalSystemIdYour own system's id for this draft, when set. Not unique. null when unset or cleared.
typeTransaction type (debit or credit)
accountIdPrimary account ID
contraAccountIdContra account ID
customerIdCustomer ID
vendorIdVendor ID
vatCodeIdVAT/Tax code ID
tagIdsTag/Dimension IDs
documentRefsDocument IDs attached to the draft
Split entry lines
CreateDraftJournalEntryBatchResponse
totalCreatedNumber of draft entries successfully created
Details of all created draft journal entries
ListDraftJournalEntriesResponse
List of draft journal entries
totalTotal number of matching drafts
pageCurrent page number
limitItems per page
totalPagesTotal number of pages
JournalEntryResponse
idUnique identifier of the created journal entry
entryNumberEntry number assigned to the journal entry
dateDate of the journal entry
amountAmount of the transaction
currencyCurrency code
journalTypeJournal type
typeTransaction type
statusStatus of the journal entry
accountIdPrimary account ID
createdAtTimestamp when the entry was created
documentDateDocument date (date on the invoice/voucher). Null for legacy entries.
descriptionDescription of the journal entry
referenceReference number
externalSystemIdYour own system's id for this entry, when set. Not unique — several entries may share one id.
contraAccountIdContra account ID
customerIdCustomer ID if applicable
vendorIdVendor ID if applicable
vatCodeIdVAT/Tax code ID if applicable
tagIdsTag IDs attached to the entry
documentRefsDocument IDs attached to the entry
SplitEntryLine
accountIdAccount ID for this line (UUID). Cannot be a heading or total account.
typeTransaction type for this line (debit or credit)
amountAmount for this line (must be positive)
vatCodeIdVAT/Tax code ID for this line (UUID)
descriptionOptional per-line memo (max 500 characters). Stored on the booked ledger transaction for this line, separate from the entry-level description.
tagIdsDimension tag IDs to attach to this specific line. Per-line tagIds MUST come from single-select (dimension) categories — multi-select tags belong at the entry-level tagIds instead. Each dimension category may appear at most once per line. The booked ledger transaction is tagged with these IDs and VAT derivatives inherit automatically. Validation: a non-dimension tag rejects with JOURNAL_TAG_LINE_TAG_NOT_A_DIMENSION; a repeated category rejects with JOURNAL_TAG_DUPLICATE_LINE_DIMENSION_CATEGORY.
CreateDraftJournalEntryV2Request
entryTypeJournal type. For CUSTOMER_INVOICE / CUSTOMER_PAYMENT / SUPPLIER_INVOICE / SUPPLIER_PAYMENT the AR/AP leg is appended automatically; do not include it in lines.
datePosting date (YYYY-MM-DD).
originalAmountOriginal amount of the invoice / payment. Sign carries direction: positive = invoice / payment, negative = credit-note / refund.
Counter-side lines (revenue / expense / bank / outlay). For locked types do NOT include the AR/AP leg.
customerIdCustomer reference. Required for CUSTOMER_* types.
vendorIdVendor reference. Required for SUPPLIER_* types.
descriptionOptional human-readable description.
referenceInvoice number / external reference.
currencyISO 4217 currency code. Defaults to company currency.
tagIdsTag IDs applied at the entry level.
journalCategoryIdJournal category ID (UUID). Must belong to the API key's app company; cross-tenant or unknown IDs are rejected with 400 JOURNAL_CATEGORY_NOT_FOUND. When omitted the entry uses the company's default category.
Inline file attachments (base64-encoded). Same shape and limits as v1: maximum 10 attachments per entry, individual files should not exceed 10MB before encoding, and the total request body (JSON + base64 payload) must stay under 15MB. Each attachment becomes a Document linked to the created journal entry — equivalent to what GET /api/v1/journal-entries/:id/attachments returns. Invalid MIME types or malformed base64 reject the whole entry with 400 INVALID_ATTACHMENT_TYPE; in a batch the whole batch rolls back.
externalSystemIdYour own system's id for this draft. Carried onto the booked journal entry. Not unique — several drafts/entries may share one id. Filter the list endpoint by externalSystemId.
CreateDraftJournalEntryV2BatchRequest
Array of 1–100 draft journal entries. Wrapped in a single transaction; one bad entry rolls back the whole batch.
CreateDraftJournalEntryV2BatchResponse
totalCreatedNumber of drafts created (= entries.length on success).
Created draft journal entries, ordered to match the request entries[].
UpdateDraftJournalEntryV2Request
datePosting date (YYYY-MM-DD).
originalAmountOriginal amount of the invoice / payment. Sign carries direction: positive = invoice / payment, negative = credit-note / refund.
customerIdCustomer reference. null clears it; omitting keeps it. Changing it reshapes the entry — requires lines and re-runs the per-entryType validation (CUSTOMER_* types cannot clear their counterparty).
vendorIdVendor reference. null clears it; omitting keeps it. Changing it reshapes the entry — requires lines and re-runs the per-entryType validation (SUPPLIER_* types cannot clear their counterparty).
descriptionOptional human-readable description.
referenceInvoice number / external reference.
currencyISO 4217 currency code. Defaults to company currency.
Counter-side lines (revenue / expense / bank / outlay). For locked types do NOT include the AR/AP leg.
tagIdsTag IDs applied at the entry level.
journalCategoryIdJournal category ID (UUID). Must belong to the API key's app company; cross-tenant or unknown IDs are rejected with 400 JOURNAL_CATEGORY_NOT_FOUND. When omitted the entry uses the company's default category.
externalSystemIdYour own system's id. null clears the value; omitting the field keeps it.
UpdateJournalEntryRequest
referenceCorrected reference. For invoices this is the invoice number (the anchor is renumbered with it); for payments it is the invoice number the payment settles. Only unmatched entries of the four entity document types accept a reference correction.
externalSystemIdYour own system's id for this journal entry. Settable on any journal type regardless of match state. Not unique — several entries may carry the same id (e.g. one partner document booked as several entries); filter GET /journal-entries by externalSystemId to find all of them. null clears the value; omitting the field keeps it. reference does not accept null — it is a matching key, not clearable metadata.
UpdateJournalEntryResponse
idJournal entry ID.
referenceThe reference after the update.
externalSystemIdThe external system id after the update.
CreateJournalEntryRequest
accountIdPrimary account ID (UUID). Cannot be a heading or total account. For typed entries (supplier_invoice, customer_invoice, etc.), must have appropriate account classification.
dateDate of the journal entry in YYYY-MM-DD format
amountAmount of the transaction (must be positive)
contraAccountIdContra account ID (UUID). Required unless splitEntries is provided. Cannot be a heading or total account. For typed entries, must have appropriate account classification.
entryTypeEntry type determines the journal type and enforces account classification rules. Account classification requirements: supplier_invoice: account=EXPENSE|ASSET, contraAccount=LIABILITY; supplier_payment: account=LIABILITY, contraAccount=ASSET; customer_invoice: account=ASSET, contraAccount=REVENUE; customer_payment: account=ASSET, contraAccount=ASSET; journal: no restrictions. Legacy values "invoice" and "payment" map to supplier types.
typeTransaction type (debit or credit)
descriptionDescription of the journal entry
referenceReference number or identifier
currencyCurrency code (defaults to DKK)
customerIdCustomer ID (UUID) for customer-related entries
vendorIdVendor ID (UUID). Required for supplier_invoice / supplier_payment entry types, and for any posting that touches an accounts-payable control account.
tagIdsTag/Dimension IDs to attach to the journal entry
vatCodeIdVAT/Tax code ID (UUID). Applied to the primary account unless split entries are used.
Split entry lines for multi-account entries. When provided, contraAccountId is not required. Requirements: (1) Total debits must equal total credits; (2) Must have at least one debit AND one credit entry; (3) Minimum 2 lines required; (4) All accounts must be postable (not heading or total accounts). Account classification validation is not applied to split entries.
File attachments (base64-encoded). Maximum 10 attachments per entry. Total request size limit is 15MB.
ReverseJournalEntryRequest
journalEntryIdUUID of the posted journal entry to reverse.
reversalDateDate for the reversal posting (YYYY-MM-DD). When omitted, the reversal is dated to the original entry so it lands in the same period. Must fall in an open posting period.
reasonFree-text reason appended to the reversal description for audit purposes.
ReverseJournalEntryResponse
reversalIdUnique identifier of the posted reversal journal entry.
BatchReverseJournalEntriesRequest
journalEntryIdsIDs of the journal entries to reverse (1–100). All reversals run in one transaction; one failure rolls back the whole batch. Duplicate IDs are de-duplicated.
reversalDateDate for every reversal posting (YYYY-MM-DD). When omitted, each reversal is dated to its own original entry so the pair lands in the same period.
reasonFree-text reason appended to every reversal description for audit purposes.
BatchReverseJournalEntriesResultItem
originalIdOriginal journal entry ID supplied in the request.
reversalIdUnique identifier of the posted reversal journal entry.
BatchReverseJournalEntriesResponse
totalReversedNumber of reversals posted. Equals the count of unique IDs in the request on success.
Result rows pairing each original ID with its newly created reversal ID.
ListJournalEntriesResponse
List of journal entries
totalTotal number of matching entries
pageCurrent page number
limitNumber of items per page
totalPagesTotal number of pages
JournalEntryAttachmentResponse
idUnique identifier of the attachment/document
filenameOriginal filename of the attachment
contentTypeMIME type of the attachment
fileSizeFile size in bytes
contentBase64-encoded file content
createdAtTimestamp when the attachment was created
JournalEntryAttachmentsListResponse
journalEntryIdJournal entry ID the attachments belong to
List of attachments
CreateJournalEntryV2Dto
entryTypeJournal type. For CUSTOMER_INVOICE / CUSTOMER_PAYMENT / SUPPLIER_INVOICE / SUPPLIER_PAYMENT the AR/AP leg is appended automatically; do not include it in lines.
datePosting date (YYYY-MM-DD).
originalAmountOriginal amount of the invoice / payment. Sign carries direction: positive = invoice / payment, negative = credit-note / refund.
Counter-side lines (revenue / expense / bank / outlay). For locked types do NOT include the AR/AP leg.
customerIdCustomer reference. Required for CUSTOMER_* types.
vendorIdVendor reference. Required for SUPPLIER_* types.
descriptionOptional human-readable description.
referenceInvoice number / external reference.
currencyISO 4217 currency code. Defaults to company currency.
tagIdsTag IDs applied at the entry level.
journalCategoryIdJournal category ID (UUID). Must belong to the API key's app company; cross-tenant or unknown IDs are rejected with 400 JOURNAL_CATEGORY_NOT_FOUND. When omitted the entry uses the company's default category.
Inline file attachments (base64-encoded). Same shape and limits as v1: maximum 10 attachments per entry, individual files should not exceed 10MB before encoding, and the total request body (JSON + base64 payload) must stay under 15MB. Each attachment becomes a Document linked to the created journal entry — equivalent to what GET /api/v1/journal-entries/:id/attachments returns. Invalid MIME types or malformed base64 reject the whole entry with 400 INVALID_ATTACHMENT_TYPE; in a batch the whole batch rolls back.
CreateJournalEntryV2BatchRequest
Array of 1–100 journal entries. Wrapped in a single transaction; one bad entry rolls back the whole batch.
CreateJournalEntryV2BatchResponse
totalCreatedNumber of journal entries created (= entries.length on success).
Created journal entries, ordered to match the request entries[].
CreateJournalEntryBatchRequest
Array of journal entries to create (1-100 entries per batch)
CreateJournalEntryBatchResponse
totalCreatedNumber of entries successfully created
Details of all created journal entries
JournalCategoryResponse
idThe unique identifier of the journal category
nameName of the journal category
isDefaultWhether this is the default journal category
allowedJournalTypesAllowed journal entry types for this journal category
MeterSubscriptionProductDTO
idProduct ID
nameProduct name
productNumberProduct number
MeterSubscriptionDTO
idSubscription ID
nameSubscription name
statusSubscription status
Products in this subscription that use the meter
MeterSubscriptionsResponseDTO
meterIdMeter ID
meterNameMeter name
Subscriptions with products using this meter
PaymentMethodResponse
idUnique identifier of the payment method
customerIdCustomer ID this payment method belongs to
providerPayment provider
labelHuman-readable label for the payment method
isDefaultWhether this is the default payment method for the customer
statusCurrent status of the payment method
createdAtWhen the payment method was created
cardMaskMasked card number
cardTypeCard type as reported by the provider
expiryMonthCard expiry month
expiryYearCard expiry year
CreateCardSaveLinkRequest
providerPayment provider to use for saving the card
PaymentLinkResponse
urlURL to the payment provider window. Send this to your customer.
expiresAtWhen the payment link expires
ApplyPaymentMethodToSubscriptionsDto
enableAutomaticBillingWhether to enable automatic billing on the subscriptions
PublicSubscriptionPlanPhaseProduct
priceIdPrice ID of the product
quantityQuantity for the product
customPriceCustom unit price override
PublicSubscriptionPlanPhase
idPhase ID
sequenceSequence order of the phase (1-based)
discountTypeType of discount applied during the phase
Products for this phase
namePhase name
discountValueDiscount value for the phase
durationValuePhase duration value
durationUnitPhase duration unit
PublicSubscriptionPlanResponse
idSubscription plan ID
nameSubscription plan name
isActiveWhether the subscription plan is active
currencyCurrency code (ISO 4217)
defaultBillingDirectionDefault billing direction for new customer subscriptions
Phases configured for this plan
createdAtDate the plan was created
updatedAtDate the plan was last updated
descriptionSubscription plan description
PublicListSubscriptionPlansResponse
List of subscription plans
totalTotal number of subscription plans matching the query
pageCurrent page number (1-indexed)
limitMaximum number of items per page
totalPagesTotal number of pages available
PublicCancelSubscriptionRequest
idCustomer subscription ID to cancel
strategyCancellation strategy
effectiveDateEffective churn date (ISO 8601). Required when strategy is SPECIFIC_DATE.
refundBehaviorRefund behavior when canceling immediately
cancellationReasonOptional reason for cancelling the subscription
PublicCustomerSubscriptionResponse
idCustomer subscription ID
customerIdCustomer ID
customerNameCustomer name
subscriptionNameSubscription name
startDateStart date (ISO 8601)
statusStatus of the customer subscription
currencyCurrency code (ISO 4217)
billingDirectionBilling direction: ADVANCE bills at period start, ARREARS at period end
effectiveBillingDirectionEffective billing direction for the current period. Can differ from billingDirection if the direction was changed mid-period.
planIdSubscription plan ID (null for ad-hoc subscriptions)
endDateEnd date (ISO 8601)
scheduledChurnDateScheduled churn date (ISO 8601)
trialDaysNumber of trial days granted
cancellationReasonReason provided when the subscription was cancelled
effectiveNextBillingDateEffective next billing date (ISO 8601)
commitmentEndDateEnd date of the customer commitment period (ISO 8601)
originalStartDateOriginal start date from source system for migrated subscriptions (ISO 8601)
paymentMethodIdAssigned payment method ID
automaticBillingWhether automatic billing is enabled
partnerReferenceIdYour reconciliation reference (the clientReferenceId you passed at embedded-checkout bind time), echoed back so you can match this subscription to your order. Null for any subscription not created through a partner-bound checkout.
PublicCustomerSubscriptionListItem
idCustomer subscription ID
customerIdCustomer ID
customerNameCustomer name
subscriptionNameSubscription plan name
statusStatus of the customer subscription
startDateStart date (ISO 8601)
currencyCurrency code (ISO 4217)
customerNumberCustomer number
planIdSubscription plan ID (null for ad-hoc subscriptions)
effectiveNextBillingDateEffective next billing date (ISO 8601)
partnerReferenceIdYour reconciliation reference (the clientReferenceId you passed at embedded-checkout bind time), echoed back so you can match this subscription to your order. Null for any subscription not created through a partner-bound checkout. Filter the list by partnerReferenceId to recover a missed webhook.
PublicListCustomerSubscriptionsResponse
List of customer subscriptions
totalTotal number of customer subscriptions matching the query
pageCurrent page number (1-indexed)
limitMaximum number of items per page
totalPagesTotal number of pages available
PublicAssignSubscriptionProductOverride
priceIdPrice ID of the product to override
quantityQuantity to assign (overrides the plan template quantity)
PublicAssignSubscriptionRequest
customerIdCustomer ID to assign the subscription to
planIdSubscription plan ID
startDateStart date (ISO 8601)
endDateEnd date (ISO 8601)
billingCycleAnchorBilling cycle anchor date (ISO 8601). When the billing cycle should align to. Defaults to startDate if not provided.
prorationBehaviorHow to handle proration from startDate to billingCycleAnchor
trialDaysTrial period in days
billingDirectionBilling direction for this subscription
customerDepartmentIdCustomer department ID for invoice delivery
departmentContactOverrideIdContact override ID for department invoice delivery
Optional quantity overrides for products in the plan
paymentMethodIdPayment method ID to assign for automatic billing
automaticBillingWhether to enable automatic billing
PublicScheduledChange
changeIdIdentifier of this queued change. Ephemeral — valid only until the change activates or is cancelled, so re-fetch rather than caching it.
kindThe kind of queued change: one of replace_plan, edit_products, change_direction, or churn.
effectiveDateThe date (YYYY-MM-DD) the change takes effect.
planIdThe plan the subscription moves to when the change activates (null for ad-hoc / non-plan changes).
subscriptionNameThe plan name the change moves to.
PublicUpdateSubscriptionRequest
paymentMethodIdPayment method ID to assign. Set to null to clear.
automaticBillingWhether to automatically charge the saved card during billing
DefaultContactDto
nameContact name
emailContact email
phoneContact phone number
CreateCustomerRequestDto
customerTypeSpecifies whether the customer is a business or a private person
customerNumberUnique customer number
nameCustomer name
vatZoneVAT zone classification
customerGroupIdCustomer group ID
countryCodeTwo-letter country code
emailEmail address
phonePhone number
addressStreet address
cityCity
postalCodePostal code
vatNumberVAT registration number
eanNumberEAN/GLN number for Peppol routing
websiteWebsite URL
notesAdditional notes
localeLocale for formatting invoice data
languageLanguage code for communications
creditLimitCredit limit
openingBalanceOpening balance in the company base currency, seeding receivables that predate LedgerBee. Signed: positive = the customer owes us, negative = a credit position. Folds into the entity balance only (not into invoiced totals or overdue ageing).
paymentTermsPayment terms in days
paymentTermTypePayment term type. Defaults to NET_DAYS.
defaultCashAccountIdDefault cash payment account ID. Only relevant for CASH payment terms. Send null to clear.
defaultCurrencyDefault currency code
poNumberDefault purchase-order number ("PO-nr.") prefilled onto sales documents
ourReferenceDefault "Vores ref." (our-side reference) prefilled onto sales documents
invoiceDeliveryTypePreferencePreferred invoice delivery type for this customer. If set, overrides the app company default for billing.
reminderConfigIdReminder config profile ID. Send null to clear.
isActiveWhether the customer is active
Default contact to create for the customer. If not provided, customer name/email/phone will be used as fallback.
invoiceTemplateIdInvoice PDF template override
creditNoteTemplateIdCredit note PDF template override
quoteTemplateIdQuote PDF template override
orderConfirmationTemplateIdOrder confirmation PDF template override
parentInvoiceTemplateIdParent single invoice PDF template override. Send null to clear.
includeChildDetailsPdfWhether to attach a zip of per-child detail PDFs when sending consolidated invoices
parentCustomerIdParent customer ID. Send null to clear.
billingRelationshipBilling relationship
consolidationModeConsolidation mode. Send null to clear.
billingDayBilling day (1-28). Required for single invoice mode. Send null to clear.
Key-value metadata to attach to the customer
PublicProvisionCustomerRequest
emailEmail of the portal user to grant access to. A credential-less portal user is created if none exists.
customerIdThe customer's LedgerBee id. The customer must already exist in the API key's tenant; this endpoint never creates one from an id (a 404 CUSTOMER_NOT_FOUND is returned if it doesn't). Supply either customerId or a customer payload.
A customer to upsert, identified idempotently by its customerNumber: an existing customer of the API key's tenant with that number is reused, otherwise a new one is created with this payload. Same shape as the gated POST /customers request (so vatZone and countryCode are required here). If customer.email is omitted, the portal-user email below is used as the customer's contact email (and its auto-created default contact). Supply either this or customerId.
roleMembership role to grant. Defaults to USER; the org's first member is force-assigned OWNER regardless.
userNameDisplay name of the portal user (set on first creation).
organizationDisplayNameDisplay name for the customer organization (first-invite bootstrap).
mintHandoffWhen true, also mint a back-channel handoff reference in the same call (one round-trip "Go to portal"). Requires the API key to ALSO carry the portal-sso-mint scope, and the tenant to have back-channel handoff enabled.
subThe partner's stable, unique user identifier — required when mintHandoff is true; keys the handoff identity (with the per-tenant handoff issuer).
mintCheckoutBindTokenWhen true, also mint a one-time CHECKOUT-BIND reference in the same call — an opaque token the partner's fetchBindToken provider returns to the embed at checkout-start so the embedded checkout subscribes directly against THIS customer instead of staging an anonymous magic-link signup. Requires the API key to ALSO carry the portal-sso-mint scope. Independent of mintHandoff (login): a checkout-bind ref can never mint a login session.
clientReferenceIdYour own opaque reference for this order (Stripe client_reference_id parity), e.g. your internal order or cart id. It rides the minted checkout-bind ref onto the resulting subscription (as partnerReferenceId) and into every later subscription webhook, so you can reconcile our subscription to your record. Server-to-server only — it never reaches a client/iframe surface. Max 200 chars, [A-Za-z0-9_-] only.
PublicProvisionCustomerResponse
customerIdResolved customer id.
customerCreatedWhether a new customer was created (false = an existing one was reused).
portalUserIdResolved portal user id.
membershipIdThe active organization membership id.
roleThe granted membership role.
handoffRefOpaque, single-use, 60s handoff reference — present only when mintHandoff was requested. Null otherwise.
handoffExpiresAtISO-8601 expiry of the handoff reference, when minted. Null otherwise.
checkoutBindTokenOpaque, single-use, 60s checkout-bind reference — present only when mintCheckoutBindToken was requested. Null otherwise. The partner's fetchBindToken provider returns this to the embed at checkout-start; the embedded checkout redeems it to subscribe directly against this customer.
checkoutBindExpiresAtISO-8601 expiry of the checkout-bind reference, when minted. Null otherwise.
PublicResolvePortalPlansRequest
customerIdThe buyer's LedgerBee customer id (an identity HANDLE — the server hydrates customer group / country / type from it; raw rule attributes are never accepted). The customer must exist in the API key's tenant (a 404 CUSTOMER_NOT_FOUND otherwise). When present, the server-resolved identity wins and the countryCode/customerType hints are ignored.
buyerEmailThe specific person (their email) the partner is acting on behalf of under customerId — e.g. the user currently signed in on the partner's site. Bound into the catalog token: when that token is later exchanged for a portal login handoff, THIS person is logged in (or bootstrapped credential-less under the customer's organization), instead of the customer's contact email / first member. Ignored without customerId; does not affect catalog visibility.
countryCodeISO 3166-1 alpha-2 country hint for the no-customer-yet preview (drives the country rule clause). Ignored when customerId is supplied.
customerTypeCustomer-type hint for the no-customer-yet preview (drives the customerType rule clause). Ignored when customerId is supplied.
planIdsResolve only these plan ids. Omit to resolve every ACTIVE plan of the tenant. Each must be a uuid.
languageLanguage the resolved cards are localized to. Defaults to en.
PublicResolvePortalPlansResponse
The plans visible AND checkout-able to the resolved buyer, each carrying the full card content the partner renders. Non-public (gated) plans appear here when the buyer matches their rule.
catalogTokenOpaque, reusable, read-only load-time catalog token (43-char base64url). The partner returns it to each embed iframe via its fetchCatalogToken provider; the iframe presents it as a Bearer token to the by-id pricing-card / checkout-document reads. Scoped to the resolved buyer + the returned plans — replay yields only the same already-authorized cards. Treat it as a client secret (TLS-only, never log, never put on a URL).
expiresAtISO-8601 expiry of the catalog token.
PublicPortalPlansListResponse
Every ACTIVE plan with a PUBLISHED version in the API key's tenant, projected as its canonical native card and ordered by display order. This is the integrator's full catalogue — NOT filtered by any per-visitor visibility rule and NOT run through the plan-routing rule engine. Each entry carries the full card content the integrator renders.
PublicPortalPlanResponse
A single plan projected as its canonical native card. Returns 404 PORTAL_PLAN_NOT_FOUND only when the plan id is unknown to the API key's tenant or has no published version — never filtered by visibility rules or the rule engine.
PublicPortalSsoJwks
The published public JWK(s). Public key material only — never any private component.
PublicHandoffMembership
customerIdThe id of the customer (the GET /v1/customers resource) this user belongs to. The portal organization is resolved from it server-side — created automatically on first login if it doesn't exist yet — and a customer that doesn't belong to the API key's tenant is rejected.
roleRole to grant within that organization. One of OWNER, ADMIN, BILLING_ADMIN, USER. Unknown roles are rejected.
primaryMarks this membership as the organization the user is signed into for this session. When more than one membership is asserted, EXACTLY ONE must be primary (otherwise the mint is rejected with a 400). With a single membership it is the implied sign-in organization, so the flag is optional.
PublicHandoffMintRequest
emailEmail of the partner-provisioned user. Links a first-time SSO login to an existing invited customer-portal user.
subThe partner's stable, unique identifier for the user. Keyed together with the per-tenant handoff issuer to resolve the portal user across logins.
At least one customer membership to grant this user — required. The customer's portal organization (an opaque internal container) and the membership are created automatically server-side at redeem, so a prior provision call is NOT needed; you only ever reference customers, never organizations. Validated at mint: a customerId that isn't a customer of the API key's tenant, or an unknown role, is rejected with a 400 (rather than failing the user's browser redirect). A handoff with no membership can't establish a portal session, so an empty/omitted array is rejected here rather than minting a ref that would fail at redeem.
nameDisplay name of the user; used to populate the customer-portal user's name on first login.
PublicHandoffMintResponse
refOpaque, single-use, short-TTL reference. Carries NO identity — the identity lives only in server-side storage keyed by this reference until it is redeemed once at the customer portal.
expiresAtISO-8601 timestamp after which the reference can no longer be redeemed (60 seconds after minting).
PublicRevokeSessionsRequest
subThe partner's stable subject id for the user — the same sub used when minting their handoff. Every active portal session of that user is force-refreshed.
PublicRevokeSessionsResponse
revokedNumber of memberships whose sessions were force-refreshed (0 when the user has no active sessions).
VatCodeResponse
idThe unique identifier of the VAT code
vatCodeVAT code identifier
nameName/description of the VAT code
vatRateVAT rate percentage
typeVAT type
principleVAT principle - Gross (VAT included) or Net (VAT excluded)
accountToBookIdThe ledger account ID to book VAT to
accountToBookNumberThe ledger account number to book VAT to
accountToBookNameThe ledger account name to book VAT to
contraAccountToBookIdThe contra account ID for VAT entries
contraAccountToBookNumberThe contra account number for VAT entries
contraAccountToBookNameThe contra account name for VAT entries
VendorGroupResponse
idThe unique identifier of the vendor group
nameName of the vendor group
descriptionDescription of the vendor group
defaultAccountIdDefault ledger account ID
VendorDepartmentResponse
idThe unique identifier of the department
nameName of the department
isDefaultWhether this is the default department for the vendor
isActiveWhether the department is active
poNumberPurchase order number
eanNumberEAN number for e-invoicing
addressStreet address
cityCity
postalCodePostal code
countryCodeTwo-letter country code (ISO 3166-1 alpha-2)
VendorContactResponse
idThe unique identifier of the contact
nameName of the contact
isDefaultForVendorWhether this is the default contact for the vendor
emailEmail address
phonePhone number
VendorResponse
idThe unique identifier of the vendor
vendorNumberVendor number
nameName of the vendor
vendorGroupIdVendor group ID
currencyCurrency code
statusVendor status
vendorGroupNameVendor group name
emailEmail address
phonePhone number
addressStreet address
cityCity
postalCodePostal code
countryCodeTwo-letter country code (ISO 3166-1 alpha-2)
vatNumberVAT registration number
attentionAttention field
paymentTermsPayment terms in days
openingBalanceOpening balance in the company base currency (signed: positive = we owe the vendor)
CreateVendorContactRequest
nameContact name
isDefaultWhether this is the default contact for the vendor
emailEmail address
phonePhone number
CreateVendorRequest
vendorNumberUnique vendor number
nameVendor name
vendorGroupIdVendor group ID
currencyCurrency code
countryCodeTwo-letter country code
Contacts for the vendor. At least one contact with isDefault: true is required.
emailEmail address
phonePhone number
addressStreet address
cityCity
postalCodePostal code
vatNumberVAT registration number
attentionAttention field
paymentTermsPayment terms in days
openingBalanceOpening balance in the company base currency, seeding payables that predate LedgerBee. Signed: positive = we owe the vendor, negative = a credit position.
defaultAccountIdDefault ledger account ID
CreateVendorResponse
idThe unique identifier of the created vendor
vendorNumberVendor number
CreateWebhookEndpointRequest
urlThe HTTPS URL events are delivered to. Must be a public https URL (loopback/private/link-local hosts are rejected).
enabledEventsThe events to subscribe to. Must contain at least one known event type.
Available events:
subscription.assigned— Fired when a subscription is assigned to a customer (may be future-dated / upcoming).subscription.started— Fired when a subscription becomes active — grant entitlement/access on this event, not on assigned.subscription.updated— Fired when a config property changes without a structural transition (e.g. name, payment method, billing direction).subscription.transitioned— Fired on a structural change: plan replace, product edit, billing cadence change, or realign.subscription.paused— Fired when a subscription is paused.subscription.resumed— Fired when a subscription resumes from a pause.subscription.trial_ended— Fired when a subscription trial ends and normal billing begins (the sub stays active).subscription.cancellation_scheduled— Fired when a future cancellation is scheduled for a subscription (still active until then).subscription.cancellation_cleared— Fired when a previously scheduled cancellation is cleared.subscription.churned— Fired when a subscription is cancelled/finalized — revoke entitlement on this event.subscription.billed— Fired once per (child) subscription when a billing run produces its invoice.subscription.payment_succeeded— Fired when a card charge for the subscription clears — the success pair of the charge_failed error signal.subscription.error— Fired when a delivery/processing problem occurs for a subscription (e.g. undeliverable recipient).billing.invoice_sent— Fired when an invoice document is sent to the customer.billing.credit_note_sent— Fired when a credit note document is sent to the customer.customer.created— Fired when a customer is created (payload flags whether it was a portal self-signup).card.added— Fired when a card is successfully saved for a customer (provider-opaque).card.removed— Fired when a saved card is removed in-app or cancelled at the provider.card.updated— Fired when a saved card’s details change (network auto-update or refresh).card.expiring— Fired when a saved card is approaching expiry.card.expired— Fired when a saved card is observed to have expired.card.default_changed— Fired when the customer’s default card changes (explicit or auto-default).card.backup_changed— Fired when the customer’s designated backup card is set, replaced, or cleared.card.add_failed— Fired when a card-save attempt fails (decline or authentication failure).quote.sent— Fired when a quote is sent to the customer.quote.converted— Fired when a quote is converted into an order confirmation or an invoice.order_confirmation.sent— Fired when an order confirmation is sent to the customer.order_confirmation.converted— Fired when an order confirmation is converted into an invoice.project.created— Fired when a project is created (payload carries the owned dimension id for correlation with the dimensions API).project.updated— Fired when a project's fields are updated (payload lists the changed field names). Also fires on un-archive.project.archived— Fired when a project is archived (its dimension is deactivated; postings history is preserved).
descriptionOptional human-facing description.
WebhookEndpointWithSecret
idUnique identifier of the webhook endpoint.
urlThe HTTPS URL events are delivered to.
enabledEventsThe events this endpoint is subscribed to. An event is delivered to every enabled endpoint subscribed to its type.
Available events:
subscription.assigned— Fired when a subscription is assigned to a customer (may be future-dated / upcoming).subscription.started— Fired when a subscription becomes active — grant entitlement/access on this event, not on assigned.subscription.updated— Fired when a config property changes without a structural transition (e.g. name, payment method, billing direction).subscription.transitioned— Fired on a structural change: plan replace, product edit, billing cadence change, or realign.subscription.paused— Fired when a subscription is paused.subscription.resumed— Fired when a subscription resumes from a pause.subscription.trial_ended— Fired when a subscription trial ends and normal billing begins (the sub stays active).subscription.cancellation_scheduled— Fired when a future cancellation is scheduled for a subscription (still active until then).subscription.cancellation_cleared— Fired when a previously scheduled cancellation is cleared.subscription.churned— Fired when a subscription is cancelled/finalized — revoke entitlement on this event.subscription.billed— Fired once per (child) subscription when a billing run produces its invoice.subscription.payment_succeeded— Fired when a card charge for the subscription clears — the success pair of the charge_failed error signal.subscription.error— Fired when a delivery/processing problem occurs for a subscription (e.g. undeliverable recipient).billing.invoice_sent— Fired when an invoice document is sent to the customer.billing.credit_note_sent— Fired when a credit note document is sent to the customer.customer.created— Fired when a customer is created (payload flags whether it was a portal self-signup).card.added— Fired when a card is successfully saved for a customer (provider-opaque).card.removed— Fired when a saved card is removed in-app or cancelled at the provider.card.updated— Fired when a saved card’s details change (network auto-update or refresh).card.expiring— Fired when a saved card is approaching expiry.card.expired— Fired when a saved card is observed to have expired.card.default_changed— Fired when the customer’s default card changes (explicit or auto-default).card.backup_changed— Fired when the customer’s designated backup card is set, replaced, or cleared.card.add_failed— Fired when a card-save attempt fails (decline or authentication failure).quote.sent— Fired when a quote is sent to the customer.quote.converted— Fired when a quote is converted into an order confirmation or an invoice.order_confirmation.sent— Fired when an order confirmation is sent to the customer.order_confirmation.converted— Fired when an order confirmation is converted into an invoice.project.created— Fired when a project is created (payload carries the owned dimension id for correlation with the dimensions API).project.updated— Fired when a project's fields are updated (payload lists the changed field names). Also fires on un-archive.project.archived— Fired when a project is archived (its dimension is deactivated; postings history is preserved).
statusDelivery status. disabled endpoints are retained but receive no events.
createdAtISO 8601 creation timestamp.
updatedAtISO 8601 last-update timestamp.
secretThe signing secret (shown only on create and roll-secret). Used to verify the webhook-signature header.
descriptionOptional human-facing description of what this endpoint is used for.
WebhookEndpoint
idUnique identifier of the webhook endpoint.
urlThe HTTPS URL events are delivered to.
enabledEventsThe events this endpoint is subscribed to. An event is delivered to every enabled endpoint subscribed to its type.
Available events:
subscription.assigned— Fired when a subscription is assigned to a customer (may be future-dated / upcoming).subscription.started— Fired when a subscription becomes active — grant entitlement/access on this event, not on assigned.subscription.updated— Fired when a config property changes without a structural transition (e.g. name, payment method, billing direction).subscription.transitioned— Fired on a structural change: plan replace, product edit, billing cadence change, or realign.subscription.paused— Fired when a subscription is paused.subscription.resumed— Fired when a subscription resumes from a pause.subscription.trial_ended— Fired when a subscription trial ends and normal billing begins (the sub stays active).subscription.cancellation_scheduled— Fired when a future cancellation is scheduled for a subscription (still active until then).subscription.cancellation_cleared— Fired when a previously scheduled cancellation is cleared.subscription.churned— Fired when a subscription is cancelled/finalized — revoke entitlement on this event.subscription.billed— Fired once per (child) subscription when a billing run produces its invoice.subscription.payment_succeeded— Fired when a card charge for the subscription clears — the success pair of the charge_failed error signal.subscription.error— Fired when a delivery/processing problem occurs for a subscription (e.g. undeliverable recipient).billing.invoice_sent— Fired when an invoice document is sent to the customer.billing.credit_note_sent— Fired when a credit note document is sent to the customer.customer.created— Fired when a customer is created (payload flags whether it was a portal self-signup).card.added— Fired when a card is successfully saved for a customer (provider-opaque).card.removed— Fired when a saved card is removed in-app or cancelled at the provider.card.updated— Fired when a saved card’s details change (network auto-update or refresh).card.expiring— Fired when a saved card is approaching expiry.card.expired— Fired when a saved card is observed to have expired.card.default_changed— Fired when the customer’s default card changes (explicit or auto-default).card.backup_changed— Fired when the customer’s designated backup card is set, replaced, or cleared.card.add_failed— Fired when a card-save attempt fails (decline or authentication failure).quote.sent— Fired when a quote is sent to the customer.quote.converted— Fired when a quote is converted into an order confirmation or an invoice.order_confirmation.sent— Fired when an order confirmation is sent to the customer.order_confirmation.converted— Fired when an order confirmation is converted into an invoice.project.created— Fired when a project is created (payload carries the owned dimension id for correlation with the dimensions API).project.updated— Fired when a project's fields are updated (payload lists the changed field names). Also fires on un-archive.project.archived— Fired when a project is archived (its dimension is deactivated; postings history is preserved).
statusDelivery status. disabled endpoints are retained but receive no events.
createdAtISO 8601 creation timestamp.
updatedAtISO 8601 last-update timestamp.
descriptionOptional human-facing description of what this endpoint is used for.
WebhookEndpointList
totalTotal number of endpoints matching the query.
pageCurrent page (1-based).
pageSizePage size.
UpdateWebhookEndpointRequest
urlNew HTTPS delivery URL.
enabledEventsReplace the full set of subscribed events.
Available events:
subscription.assigned— Fired when a subscription is assigned to a customer (may be future-dated / upcoming).subscription.started— Fired when a subscription becomes active — grant entitlement/access on this event, not on assigned.subscription.updated— Fired when a config property changes without a structural transition (e.g. name, payment method, billing direction).subscription.transitioned— Fired on a structural change: plan replace, product edit, billing cadence change, or realign.subscription.paused— Fired when a subscription is paused.subscription.resumed— Fired when a subscription resumes from a pause.subscription.trial_ended— Fired when a subscription trial ends and normal billing begins (the sub stays active).subscription.cancellation_scheduled— Fired when a future cancellation is scheduled for a subscription (still active until then).subscription.cancellation_cleared— Fired when a previously scheduled cancellation is cleared.subscription.churned— Fired when a subscription is cancelled/finalized — revoke entitlement on this event.subscription.billed— Fired once per (child) subscription when a billing run produces its invoice.subscription.payment_succeeded— Fired when a card charge for the subscription clears — the success pair of the charge_failed error signal.subscription.error— Fired when a delivery/processing problem occurs for a subscription (e.g. undeliverable recipient).billing.invoice_sent— Fired when an invoice document is sent to the customer.billing.credit_note_sent— Fired when a credit note document is sent to the customer.customer.created— Fired when a customer is created (payload flags whether it was a portal self-signup).card.added— Fired when a card is successfully saved for a customer (provider-opaque).card.removed— Fired when a saved card is removed in-app or cancelled at the provider.card.updated— Fired when a saved card’s details change (network auto-update or refresh).card.expiring— Fired when a saved card is approaching expiry.card.expired— Fired when a saved card is observed to have expired.card.default_changed— Fired when the customer’s default card changes (explicit or auto-default).card.backup_changed— Fired when the customer’s designated backup card is set, replaced, or cleared.card.add_failed— Fired when a card-save attempt fails (decline or authentication failure).quote.sent— Fired when a quote is sent to the customer.quote.converted— Fired when a quote is converted into an order confirmation or an invoice.order_confirmation.sent— Fired when an order confirmation is sent to the customer.order_confirmation.converted— Fired when an order confirmation is converted into an invoice.project.created— Fired when a project is created (payload carries the owned dimension id for correlation with the dimensions API).project.updated— Fired when a project's fields are updated (payload lists the changed field names). Also fires on un-archive.project.archived— Fired when a project is archived (its dimension is deactivated; postings history is preserved).
statusEnable or disable delivery without deleting the endpoint.
descriptionUpdate the description. Send null to clear it.
TestWebhookEndpointRequest
eventThe event type to simulate. Must be one of the endpoint’s subscribed events.
Available events:
subscription.assigned— Fired when a subscription is assigned to a customer (may be future-dated / upcoming).subscription.started— Fired when a subscription becomes active — grant entitlement/access on this event, not on assigned.subscription.updated— Fired when a config property changes without a structural transition (e.g. name, payment method, billing direction).subscription.transitioned— Fired on a structural change: plan replace, product edit, billing cadence change, or realign.subscription.paused— Fired when a subscription is paused.subscription.resumed— Fired when a subscription resumes from a pause.subscription.trial_ended— Fired when a subscription trial ends and normal billing begins (the sub stays active).subscription.cancellation_scheduled— Fired when a future cancellation is scheduled for a subscription (still active until then).subscription.cancellation_cleared— Fired when a previously scheduled cancellation is cleared.subscription.churned— Fired when a subscription is cancelled/finalized — revoke entitlement on this event.subscription.billed— Fired once per (child) subscription when a billing run produces its invoice.subscription.payment_succeeded— Fired when a card charge for the subscription clears — the success pair of the charge_failed error signal.subscription.error— Fired when a delivery/processing problem occurs for a subscription (e.g. undeliverable recipient).billing.invoice_sent— Fired when an invoice document is sent to the customer.billing.credit_note_sent— Fired when a credit note document is sent to the customer.customer.created— Fired when a customer is created (payload flags whether it was a portal self-signup).card.added— Fired when a card is successfully saved for a customer (provider-opaque).card.removed— Fired when a saved card is removed in-app or cancelled at the provider.card.updated— Fired when a saved card’s details change (network auto-update or refresh).card.expiring— Fired when a saved card is approaching expiry.card.expired— Fired when a saved card is observed to have expired.card.default_changed— Fired when the customer’s default card changes (explicit or auto-default).card.backup_changed— Fired when the customer’s designated backup card is set, replaced, or cleared.card.add_failed— Fired when a card-save attempt fails (decline or authentication failure).quote.sent— Fired when a quote is sent to the customer.quote.converted— Fired when a quote is converted into an order confirmation or an invoice.order_confirmation.sent— Fired when an order confirmation is sent to the customer.order_confirmation.converted— Fired when an order confirmation is converted into an invoice.project.created— Fired when a project is created (payload carries the owned dimension id for correlation with the dimensions API).project.updated— Fired when a project's fields are updated (payload lists the changed field names). Also fires on un-archive.project.archived— Fired when a project is archived (its dimension is deactivated; postings history is preserved).
TestWebhookEndpointResult
successWhether the endpoint responded with a 2xx status.
durationMsRound-trip time of the probe in milliseconds.
statusCodeHTTP status returned by the endpoint, or null on a transport error.
errorTransport/error message when the probe failed, otherwise null.
PublicCreateInvoiceLine
priceIdProduct price ID. Required on a billable line — the line bills this product. Omit only for text / separator / discount lines (set lineType instead).
lineTypeSemantic type of the line (subscription, usage, discount, text, separator, etc.)
descriptionCustom description for this line item
quantityQuantity. Required on a billable line; omit for text / separator / discount lines.
unitPriceOne-time unit-price override (decimal string). Defaults to the price's current amount in the document currency when omitted. totalPrice (= quantity * unitPrice) and VAT are always computed server-side and must not be sent.
recognitionPeriodDaysOverride the revenue recognition period for this line (in days)
PublicCreateInvoice
customerIdCustomer ID this invoice is for. Required — every invoice must reference a customer (this mirrors the gated app, which also requires a customer).
dateInvoice date (ISO date, YYYY-MM-DD)
Invoice lines
customerDepartmentIdCustomer department ID (for EAN-based e-invoicing and address override)
customerContactIdCustomer contact ID (invoice recipient)
dueDateDue date for payment (ISO date). Derived from payment terms when omitted.
currencyCurrency code (ISO 4217). Defaults to the company default currency.
paymentTermsPayment terms in days
referenceReference / PO number ("PO-nr.")
ourReferenceOur reference ("Vores ref.")
descriptionOptional description of the invoice
notesAdditional notes or comments
PublicInvoiceLine
idLine item ID
quantityQuantity
unitPriceUnit price (decimal string)
totalPriceTotal price (decimal string)
priceIdPrice ID this line references
descriptionCustom description for this line item
lineTypeSemantic line type
vatAmountVAT amount (decimal string)
vatRateVAT rate percentage (decimal string)
PublicInvoice
idInvoice ID
statusInvoice status
dateInvoice date (ISO date)
currencyCurrency code (ISO 4217)
subtotalSubtotal before VAT (decimal string)
vatVAT amount (decimal string)
amountTotal amount including VAT (decimal string)
Invoice lines
createdAtCreation timestamp (ISO)
updatedAtLast update timestamp (ISO)
numberInvoice number. Null while the invoice is still a draft (allocated at booking).
dueDateDue date (ISO date)
customerIdCustomer ID
referenceReference / PO number
ourReferenceOur reference ("Vores ref.")
notesAdditional notes
PublicInvoiceListItem
idInvoice ID
statusInvoice status
dateInvoice date (ISO date)
currencyCurrency code (ISO 4217)
subtotalSubtotal before VAT (decimal string)
vatVAT amount (decimal string)
amountTotal amount including VAT (decimal string)
createdAtCreation timestamp (ISO)
updatedAtLast update timestamp (ISO)
numberInvoice number. Null while the invoice is still a draft (allocated at booking).
dueDateDue date (ISO date)
customerIdCustomer ID
referenceReference / PO number
ourReferenceOur reference ("Vores ref.")
notesAdditional notes
PublicListInvoicesResponse
Invoices on this page (line items omitted; GET one invoice for lines)
totalTotal invoices matching the query
pageCurrent page (1-indexed)
limitItems per page
totalPagesTotal pages
PublicSendInvoice
deliveryTypeDelivery channel
overrideEmailOverride recipient email for this send only
overrideEanNumberOverride EAN number for this send only
updateCustomerRecordPersist the override email / EAN onto the customer record
documentTemplateIdOverride document template for PDF generation
PublicSendInvoiceResponse
successWhether the send was accepted
deliveryTypeThe delivery channel the document was sent through
sproomDocumentIdSproom document ID when sent via e-invoicing
PublicDeliveryStatusSummary
sendCountNumber of send attempts recorded
lastDeliveryTypeChannel of the most recent send
lastRecipientEmailRecipient email of the most recent send
lastRecipientEanRecipient EAN of the most recent send
lastSentAtTimestamp of the most recent send (ISO)
PublicDeliveryLogEntry
idDelivery log entry ID
statusOutcome of the delivery attempt
deliveryTypeDelivery channel
sentAtTimestamp of the attempt (ISO)
recipientEmailRecipient email (email sends)
recipientEanRecipient EAN (e-invoice sends)
errorCodeError code when the attempt failed
PublicDeliveryStatusResponse
Aggregate send summary
Per-attempt delivery log entries
PublicCreateCreditNoteLine
priceIdProduct price ID. Required on a billable line — the line credits this product. Omit only for text / separator / discount lines (set lineType instead).
lineTypeSemantic type of the line (refund, cancellation credit, text, separator, etc.)
descriptionCustom description for this line item
quantityQuantity to credit. Required on a billable line; omit for text / separator / discount lines.
unitPriceOne-time unit-price override as a POSITIVE decimal string (the magnitude). Defaults to the price's current amount when omitted. The credit (negative) sign, totalPrice, and VAT are applied server-side and must not be sent.
PublicCreateCreditNote
customerIdCustomer ID this credit note is for
dateCredit note date (ISO date, YYYY-MM-DD)
Credit note lines
customerDepartmentIdCustomer department ID (for EAN-based e-invoicing and address override)
customerContactIdCustomer contact ID (credit note recipient)
invoiceNumberOriginal invoice number this credit note credits. When set, the referenced invoice is marked credited.
currencyCurrency code (ISO 4217). Defaults to the company default currency.
referenceReference / PO number ("PO-nr.")
ourReferenceOur reference ("Vores ref.")
descriptionOptional description of the credit note
notesAdditional notes or comments
PublicCreditNoteLine
idLine item ID
quantityQuantity
unitPriceUnit price (decimal string)
totalPriceTotal price (decimal string)
priceIdPrice ID this line references
descriptionCustom description for this line item
lineTypeSemantic line type
vatAmountVAT amount (decimal string)
vatRateVAT rate percentage (decimal string)
PublicCreditNote
idCredit note ID
numberCredit note number
statusCredit note status
dateCredit note date (ISO date)
currencyCurrency code (ISO 4217)
subtotalSubtotal before VAT (decimal string)
vatVAT amount (decimal string)
amountTotal amount including VAT (decimal string)
Credit note lines
createdAtCreation timestamp (ISO)
updatedAtLast update timestamp (ISO)
invoiceNumberOriginal invoice number this credit note credits
customerIdCustomer ID
referenceReference / PO number
ourReferenceOur reference ("Vores ref.")
notesAdditional notes
PublicCreditNoteListItem
idCredit note ID
numberCredit note number
statusCredit note status
dateCredit note date (ISO date)
currencyCurrency code (ISO 4217)
subtotalSubtotal before VAT (decimal string)
vatVAT amount (decimal string)
amountTotal amount including VAT (decimal string)
createdAtCreation timestamp (ISO)
updatedAtLast update timestamp (ISO)
invoiceNumberOriginal invoice number this credit note credits
customerIdCustomer ID
referenceReference / PO number
ourReferenceOur reference ("Vores ref.")
notesAdditional notes
PublicListCreditNotesResponse
Credit notes on this page (line items omitted; GET one for lines)
totalTotal credit notes matching the query
pageCurrent page (1-indexed)
limitItems per page
totalPagesTotal pages
PublicSendCreditNote
deliveryTypeDelivery channel
overrideEmailOverride recipient email for this send only
overrideEanNumberOverride EAN number for this send only
updateCustomerRecordPersist the override email / EAN onto the customer record
documentTemplateIdOverride document template for PDF generation
PublicQuoteListItem
idQuote identifier
typeAlways "quote"
statusStored lifecycle status (draft/sent/accepted/rejected)
displayStatusStatus to display. Equals status except derived states: "converted" or "expired".
dateQuote date (ISO, YYYY-MM-DD)
amountTotal amount including VAT
subtotalSubtotal excluding VAT
vatTotal VAT
currencyCurrency code
createdAtCreated timestamp (ISO)
updatedAtUpdated timestamp (ISO)
documentNumberAllocated quote number (null until sent)
validUntilValid-until date (ISO, YYYY-MM-DD)
referencePO number ("PO-nr.")
ourReferenceOur reference ("Vores ref.")
notesNotes
customerIdCustomer id
sourceDocumentIdSource document id (set when this quote originated from another document)
convertedToDocumentIdId of the order confirmation this quote was converted into
convertedToInvoiceIdId of the invoice this quote was converted into
sentAtTimestamp the quote was sent (ISO)
PublicListQuotesResponse
List of quotes (line items omitted; GET one quote for lines)
totalTotal number of quotes matching the query
pageCurrent page number (1-indexed)
limitMaximum number of items per page
totalPagesTotal number of pages available
PublicQuoteLine
idLine identifier
quantityQuantity
unitPriceUnit price
totalPriceTotal price for the line
descriptionLine description shown on the quote
lineTypeSemantic line type
vatRateVAT rate (percentage)
vatAmountVAT amount for the line
PublicQuote
idQuote identifier
typeAlways "quote"
statusStored lifecycle status (draft/sent/accepted/rejected)
displayStatusStatus to display. Equals status except derived states: "converted" or "expired".
dateQuote date (ISO, YYYY-MM-DD)
amountTotal amount including VAT
subtotalSubtotal excluding VAT
vatTotal VAT
currencyCurrency code
createdAtCreated timestamp (ISO)
updatedAtUpdated timestamp (ISO)
documentNumberAllocated quote number (null until sent)
validUntilValid-until date (ISO, YYYY-MM-DD)
referencePO number ("PO-nr.")
ourReferenceOur reference ("Vores ref.")
notesNotes
customerIdCustomer id
sourceDocumentIdSource document id (set when this quote originated from another document)
convertedToDocumentIdId of the order confirmation this quote was converted into
convertedToInvoiceIdId of the invoice this quote was converted into
sentAtTimestamp the quote was sent (ISO)
PublicCreateQuoteLine
priceIdProduct price id. Required on a billable line — the line bills this product. Omit only for text / separator / discount lines (set lineType instead).
descriptionCustom description for the line
lineTypeSemantic line type. Use text / separator / discount / interval_discount for non-billable lines; any other value marks the line billable (priceId + quantity required).
quantityQuantity. Required on a billable line; omit for text / separator / discount lines.
unitPriceOne-time unit-price override. Defaults to the price's current amount in the document currency. totalPrice and VAT are computed server-side and must not be sent.
PublicCreateQuote
customerIdCustomer this quote is for
dateQuote date (ISO, YYYY-MM-DD)
customerDepartmentIdCustomer department id
customerContactIdCustomer contact id ("Deres ref.")
validUntilValid-until date (ISO, YYYY-MM-DD)
currencyCurrency code
referencePO number ("PO-nr.")
ourReferenceOur reference ("Vores ref.")
notesNotes shown on the quote
PublicSendQuote
deliveryTypeDelivery method. Defaults to Manual. Sproom/e-invoice does not apply to quotes.
recipientEmailOverride recipient email for Email delivery
PublicConvertQuotePayload
customerIdCustomer for the converted document
dateDocument date (ISO, YYYY-MM-DD)
customerDepartmentIdCustomer department id
customerContactIdCustomer contact id
currencyCurrency code
referencePO number ("PO-nr.")
ourReferenceOur reference ("Vores ref.")
notesNotes
PublicConvertQuote
targetTarget to convert into. Use "orderConfirmation" to confirm the quote, or "invoice" to convert it directly into an invoice.
Edited target document (review-before-finalize). Omit to copy the source verbatim.
PublicConvertQuoteResult
targetTypeType of document produced by the conversion ("invoice" or "orderConfirmation")
targetIdIdentifier of the produced document
PublicUpdateQuote
customerIdCustomer this quote is for
dateQuote date (ISO, YYYY-MM-DD)
customerDepartmentIdCustomer department id
customerContactIdCustomer contact id ("Deres ref.")
validUntilValid-until date (ISO, YYYY-MM-DD)
currencyCurrency code
referencePO number ("PO-nr.")
ourReferenceOur reference ("Vores ref.")
notesNotes shown on the quote
PublicOrderConfirmationListItem
idDocument identifier
statusStored lifecycle status (draft/sent)
displayStatusStatus to display. Equals status except the derived "converted" state.
dateDocument date (ISO, YYYY-MM-DD)
amountTotal amount including VAT
subtotalSubtotal excluding VAT
vatTotal VAT
currencyCurrency code
createdAtCreated timestamp (ISO)
updatedAtUpdated timestamp (ISO)
documentNumberAllocated document number (null until sent)
referencePO number ("PO-nr.")
ourReferenceOur reference ("Vores ref.")
notesNotes
customerIdCustomer id
sourceDocumentIdSource document id (the quote this order confirmation was converted from)
convertedToInvoiceIdId of the invoice this order confirmation was converted into
sentAtTimestamp the document was sent (ISO)
PublicListOrderConfirmationsResponse
List of order confirmations (line items omitted; GET one for lines)
totalTotal number of documents matching the query
pageCurrent page number (1-indexed)
limitMaximum number of items per page
totalPagesTotal number of pages available
PublicOrderConfirmationLine
idLine identifier
quantityQuantity
unitPriceUnit price
totalPriceTotal price for the line
descriptionLine description shown on the document
lineTypeSemantic line type
vatRateVAT rate (percentage)
vatAmountVAT amount for the line
PublicOrderConfirmation
idDocument identifier
statusStored lifecycle status (draft/sent)
displayStatusStatus to display. Equals status except the derived "converted" state.
dateDocument date (ISO, YYYY-MM-DD)
amountTotal amount including VAT
subtotalSubtotal excluding VAT
vatTotal VAT
currencyCurrency code
createdAtCreated timestamp (ISO)
updatedAtUpdated timestamp (ISO)
documentNumberAllocated document number (null until sent)
referencePO number ("PO-nr.")
ourReferenceOur reference ("Vores ref.")
notesNotes
customerIdCustomer id
sourceDocumentIdSource document id (the quote this order confirmation was converted from)
convertedToInvoiceIdId of the invoice this order confirmation was converted into
sentAtTimestamp the document was sent (ISO)
PublicCreateOrderConfirmationLine
priceIdProduct price id. Required on a billable line — the line bills this product. Omit only for text / separator / discount lines (set lineType instead).
descriptionCustom description for the line
lineTypeSemantic line type. Use text / separator / discount / interval_discount for non-billable lines; any other value marks the line billable (priceId + quantity required).
quantityQuantity. Required on a billable line; omit for text / separator / discount lines.
unitPriceOne-time unit-price override. Defaults to the price's current amount in the document currency. totalPrice and VAT are computed server-side and must not be sent.
PublicCreateOrderConfirmation
customerIdCustomer this order confirmation is for
dateDocument date (ISO, YYYY-MM-DD)
customerDepartmentIdCustomer department id
customerContactIdCustomer contact id ("Deres ref.")
currencyCurrency code
referencePO number ("PO-nr.")
ourReferenceOur reference ("Vores ref.")
notesNotes shown on the document
PublicSendOrderConfirmation
deliveryTypeDelivery method. Defaults to Manual. Sproom/e-invoice does not apply to order confirmations.
recipientEmailOverride recipient email for Email delivery
PublicConvertOrderConfirmationPayload
customerIdCustomer for the converted document
dateDocument date (ISO, YYYY-MM-DD)
customerDepartmentIdCustomer department id
customerContactIdCustomer contact id
currencyCurrency code
referencePO number ("PO-nr.")
ourReferenceOur reference ("Vores ref.")
notesNotes
PublicConvertOrderConfirmation
targetTarget to convert into. An order confirmation only ever converts into an "invoice".
Edited target document (review-before-finalize). Omit to copy the source verbatim.
PublicConvertOrderConfirmationResult
targetTypeType of document produced by the conversion (always "invoice")
targetIdIdentifier of the produced document
PublicUpdateOrderConfirmation
customerIdCustomer this order confirmation is for
dateDocument date (ISO, YYYY-MM-DD)
customerDepartmentIdCustomer department id
customerContactIdCustomer contact id ("Deres ref.")
currencyCurrency code
referencePO number ("PO-nr.")
ourReferenceOur reference ("Vores ref.")
notesNotes shown on the document
statusNew stored status (validated against the document type: draft/sent for order confirmations).
ProductGroupResponse
idThe unique identifier of the product group
numberUnique product-group number within the company
nameName of the product group
domesticAccountIdLedger account ID for domestic sales
createdAtWhen the product group was created
updatedAtWhen the product group was last updated
descriptionOptional description
domesticAccountNumberDomestic account number
domesticAccountNameDomestic account name
euAccountIdLedger account ID for EU sales (Rubric B)
euAccountNumberEU account number
euAccountNameEU account name
abroadAccountIdLedger account ID for sales abroad (Rubric C)
abroadAccountNumberAbroad account number
abroadAccountNameAbroad account name
domesticWithoutVatAccountIdLedger account ID for domestic sales without VAT
domesticWithoutVatAccountNumberDomestic-without-VAT account number
domesticWithoutVatAccountNameDomestic-without-VAT account name
productCountNumber of products in this group (list responses only)
ListProductGroupsResponse
Page of product groups
totalTotal number of matching product groups
pageCurrent page number
limitItems per page
totalPagesTotal number of pages
CreateProductGroupRequest
numberUnique product-group number within the company
nameName of the product group
domesticAccountIdLedger account ID for domestic sales. Must reference an existing account that carries a VAT code valid for sales.
euAccountIdLedger account ID for EU sales (Rubric B). Must carry a sales-valid VAT code.
abroadAccountIdLedger account ID for sales abroad (Rubric C). Must carry a sales-valid VAT code.
domesticWithoutVatAccountIdLedger account ID for domestic sales without VAT.
descriptionOptional description
UpdateProductGroupRequest
numberUnique product-group number within the company
nameName of the product group
descriptionOptional description
domesticAccountIdLedger account ID for domestic sales
euAccountIdLedger account ID for EU sales (Rubric B)
abroadAccountIdLedger account ID for sales abroad (Rubric C)
domesticWithoutVatAccountIdLedger account ID for domestic sales without VAT
ProductListItem
idThe unique identifier of the product
productNumberUnique product number within the company
nameName of the product
unitUnit of measurement
productGroupIdProduct group this product belongs to
productTypeProduct type (goods or services) for EU VAT
isActiveWhether the product is active
isArchivedWhether the product is archived
isLockedWhether the product is locked (in use, cannot be deleted)
createdAtWhen the product was created
updatedAtWhen the product was last updated
descriptionOptional description
ListProductsResponse
Page of products (prices omitted; GET one product for its prices)
totalTotal number of matching products
pageCurrent page number
limitItems per page
totalPagesTotal number of pages
ProductPriceTierResponse
idTier ID
fromQuantityStarting quantity (inclusive)
unitAmountPrice per unit for this tier
toQuantityEnding quantity (inclusive). Null = no upper limit.
flatFeeOptional flat fee for this tier
ProductPriceResponse
idThe unique identifier of the price (use as a line priceId)
productIdThe product this price belongs to
billingPeriodTypeBilling period type
pricingModelPricing model
currencyCurrency of the displayed unitAmount (ISO 4217)
baseCurrencyBase currency (source of truth for conversions)
statusPrice status
isDefaultWhether this is the default price for the product
isLockedWhether the price is locked (in use by a subscription/invoice)
vatRatesByZoneVAT rates by zone (derived from the product group), e.g. { domestic: "25", eu: "0", abroad: "0", domestic_without_vat: "0" }
nicknameOptional nickname (e.g. "Monthly")
unitAmountUnit amount for flat-rate pricing in currency
billingIntervalBilling interval (null for one-time)
billingIntervalCountBilling interval count
availableCurrenciesCurrencies with a price-history entry
meterIdMeter ID for usage-based pricing
Pricing tiers (package/volume/graduated)
ProductResponse
idThe unique identifier of the product
productNumberUnique product number within the company
nameName of the product
unitUnit of measurement
productGroupIdProduct group this product belongs to
productTypeProduct type (goods or services) for EU VAT
isActiveWhether the product is active
isArchivedWhether the product is archived
isLockedWhether the product is locked (in use, cannot be deleted)
createdAtWhen the product was created
updatedAtWhen the product was last updated
descriptionOptional description
Prices configured for this product
CreateProductPriceTierRequest
fromQuantityStarting quantity (inclusive)
unitAmountPrice per unit for this tier
toQuantityEnding quantity (inclusive). Omit for the open-ended top tier.
flatFeeOptional flat fee for this tier
CreateProductInitialPriceRequest
billingPeriodTypeBilling period type. RECURRING requires a Subscription license; USAGE requires Subscription + Metered Products.
pricingModelPricing model
nicknameOptional nickname (e.g. "Monthly")
unitAmountUnit amount. Required for FLAT_RATE pricing; for tiered models (PACKAGE/VOLUME/GRADUATED) the amounts live in tiers.
billingIntervalBilling interval (required unless one-time)
billingIntervalCountBilling interval count
currencyCurrency code (ISO 4217)
meterIdMeter ID (required for USAGE pricing)
Pricing tiers. Required for tiered models: PACKAGE (exactly 1), VOLUME / GRADUATED (one or more, last tier open-ended). Omit for FLAT_RATE.
CreateProductRequest
productNumberUnique product number within the company
nameName of the product
unitUnit of measurement
productGroupIdProduct group this product belongs to (must exist)
descriptionOptional description
isActiveWhether the product is active
productTypeProduct type (goods or services)
Optional initial price. If provided it is created, activated and set as default in one transaction.
UpdateProductRequest
productNumberUnique product number within the company
nameName of the product
descriptionOptional description
unitUnit of measurement
productGroupIdProduct group this product belongs to
isActiveWhether the product is active
productTypeProduct type (goods or services)
CreateProductPriceRequest
productIdThe product this price belongs to
billingPeriodTypeBilling period type. RECURRING requires a Subscription license; USAGE requires Subscription + Metered Products.
pricingModelPricing model
nicknameOptional nickname (e.g. "Monthly")
unitAmountUnit amount. Required for FLAT_RATE pricing; for tiered models (PACKAGE/VOLUME/GRADUATED) the amounts live in tiers.
billingIntervalBilling interval (required unless one-time)
billingIntervalCountBilling interval count
currencyCurrency code (ISO 4217). Defaults to the company default.
meterIdMeter ID (required for USAGE pricing)
Pricing tiers. Required for tiered models: PACKAGE (exactly 1), VOLUME / GRADUATED (one or more, last tier open-ended). Omit for FLAT_RATE.
UpdateProductPriceRequest
nicknameOptional nickname
unitAmountUnit amount for flat-rate pricing
billingPeriodTypeBilling period type
pricingModelPricing model
billingIntervalBilling interval (null for one-time)
billingIntervalCountBilling interval count
currencyCurrency code (ISO 4217)
statusPrice status
meterIdMeter ID for usage-based pricing
Pricing tiers
DocumentTemplateListItem
idThe unique identifier of the template
nameTemplate name
documentTypeDocument type this template applies to
isDefaultWhether this is the default template for its document type
createdAtWhen the template was created
updatedAtWhen the template was last updated
ListDocumentTemplatesResponse
Page of document templates
totalTotal number of matching templates
pageCurrent page number
limitItems per page
totalPagesTotal number of pages
ProjectSubproject
idUnique identifier of the subproject.
dimensionValueIdThe journal-tag value ID that represents this subproject in the dimensions system. Use this value when tagging ledger transactions to the subproject.
nameDisplay name of the subproject.
isDefaultWhether this is the default (catch-all) subproject for the project.
sortOrderDisplay sort order (ascending).
budgetHoursBudget in hours for this subproject. Null when no budget is set.
budgetAmountBudget amount in the project currency for this subproject. Null when no budget is set.
colorHex colour code for visual identification in the UI. Null when not set.
Project
idUnique identifier of the project.
nameDisplay name of the project.
isArchivedWhether the project has been archived. Archived projects are read-only.
currencyISO 4217 currency code used for budget amounts on this project.
dimensionIdThe dimension category ID (journal-tag category) that backs this project. Subproject values live as dimension values under this category.
defaultSubprojectIdID of the default subproject (the catch-all subproject created with the project).
All subprojects for this project, sorted by sortOrder ascending.
createdAtISO 8601 timestamp when the project was created.
updatedAtISO 8601 timestamp when the project was last updated.
customerIdID of the customer this project belongs to. Null when not linked to a customer.
budgetHoursTotal budget in hours across all subprojects. Null when not set.
budgetAmountTotal budget amount in the project currency. Null when not set.
startDateProject start date (inclusive), ISO 8601 date string. Null when not set.
endDateProject end date (inclusive), ISO 8601 date string. Null when not set.
externalReferenceYour system external reference for this project. Useful for idempotent upserts and cross-system reconciliation. Null when not set.
colorHex colour code for visual identification. Null when not set.
UpsertProjectRequest
nameDisplay name for the project. Must be unique within your company.
customerIdID of the customer this project belongs to.
currencyISO 4217 currency code for budget amounts. Defaults to the customer's currency or the company base currency when omitted.
budgetHoursTotal budget in hours. Null clears the budget.
budgetAmountTotal budget amount in the project currency. Null clears the budget.
startDateProject start date (inclusive), ISO 8601 date string.
endDateProject end date (inclusive), ISO 8601 date string.
externalReferenceYour system external reference for this project. Must be unique within your company. The upsert finds an existing project by this value and updates it, or creates a new one.
colorHex colour code for visual identification.
CreateProjectRequest
nameDisplay name for the project. Must be unique within your company.
customerIdID of the customer this project belongs to.
currencyISO 4217 currency code for budget amounts. Defaults to the customer's currency or the company base currency when omitted.
budgetHoursTotal budget in hours. Null clears the budget.
budgetAmountTotal budget amount in the project currency. Null clears the budget.
startDateProject start date (inclusive), ISO 8601 date string.
endDateProject end date (inclusive), ISO 8601 date string.
externalReferenceYour system external reference for this project. Must be unique within your company. Can be used for idempotent upserts via PUT /.
colorHex colour code for visual identification.
ProjectProfitTotals
revenueBase-currency revenue in the date range (positive figure, sign-flipped from REVENUE ledgers).
costBase-currency cost in the date range (positive figure, EXPENSE ledgers).
profitrevenue - cost.
isOverBudgetTrue when burnPercent > 100 (over budget). False when under budget or no budget.
budgetAmountThe budget amount this burn is measured against. Null when no budget is set.
burnPercentcost / budgetAmount * 100, rounded. Null when no budget is set or budgetAmount is 0.
ProjectSubprojectProfit
revenueBase-currency revenue in the date range (positive figure, sign-flipped from REVENUE ledgers).
costBase-currency cost in the date range (positive figure, EXPENSE ledgers).
profitrevenue - cost.
isOverBudgetTrue when burnPercent > 100 (over budget). False when under budget or no budget.
subprojectIdSubproject ID.
dimensionValueIdThe dimension value ID (journal-tag ID) for this subproject.
nameDisplay name of the subproject.
isDefaultWhether this is the default (catch-all) subproject.
budgetAmountThe budget amount this burn is measured against. Null when no budget is set.
burnPercentcost / budgetAmount * 100, rounded. Null when no budget is set or budgetAmount is 0.
ProjectProfit
projectIdProject ID.
fromInclusive range start actually used (after defaulting), YYYY-MM-DD.
toInclusive range end actually used (after defaulting), YYYY-MM-DD.
currencyCompany base currency the amounts are expressed in.
Aggregate totals for the project.
Per-subproject profit breakdown.
UpdateProjectRequest
nameNew display name for the project.
customerIdCustomer ID. Null clears the customer link.
currencyISO 4217 currency code.
budgetHoursBudget in hours. Null clears the budget.
budgetAmountBudget amount in the project currency. Null clears the budget.
startDateProject start date (inclusive), ISO 8601. Null clears the date.
endDateProject end date (inclusive), ISO 8601. Null clears the date.
externalReferenceExternal reference. Null clears the value.
colorHex colour code. Null clears the value.
isArchivedArchive or un-archive the project.
CreateSubprojectRequest
nameDisplay name for the subproject.
budgetHoursBudget in hours for this subproject. Null clears the budget.
budgetAmountBudget amount in the project currency. Null clears the budget.
colorHex colour code. Null clears the value.
sortOrderSort order (ascending). Defaults to 0.
UpdateSubprojectRequest
nameNew display name for the subproject.
budgetHoursBudget in hours. Null clears the budget.
budgetAmountBudget amount in the project currency. Null clears the budget.
colorHex colour code. Null clears the value.
sortOrderSort order (ascending).
UsageReportRequestDto
valueUsage value to record
customerIdCustomer ID this usage is associated with.
meterIdMeter identifier. Provide meterId or meterName. Meter must be ACTIVE; usage will be rejected for archived meters.
meterNameMeter name. Provide meterId or meterName. Meter must be ACTIVE; usage will be rejected for archived meters.
timestampISO-8601 timestamp. Defaults to now.
metadataAdditional metadata for the usage event (values must be string, number, or boolean)