LumaBill Profiles API
Read-only access to company profiles associated with your account
Read-only access to company profiles associated with your account
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/lumabill-ch:lumabill-ch-profiles-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Lumabill Profiles API
version: '1.0'
description: 'The Lumabill API gives **Pro and Lifetime** subscribers programmatic access to
Swiss invoicing and bookkeeping data. You can create and manage invoices,
clients, expenses, journal entries, and more - the same data you see in the
Lumabill dashboard. ## Authentication
All requests must carry a Bearer API key in the `Authorization` header:
```
Authorization: Bearer lmb_your_api_key_here
```
API keys are created in **Settings → API Keys** inside the Lumabill dashboard. ## Profile scoping
A Lumabill account can have multiple profiles (companies). By default the key
is scoped to the profile it was created for. If a key has access to multiple
profiles, supply the `X-Profile-Id` header with the UUID of the target profile. ## Rate limits
| Operation | Limit |
|-----------|-------|
| Reads (GET) | 60 requests / minute per API key |
| Writes (POST, PUT, DELETE) | 20 requests / minute per API key |
When the limit is exceeded the API returns `429 Too Many Requests` with a
`Retry-After` header indicating when you may retry (seconds from now). ## Pagination
List endpoints support cursor-free page-based pagination via query parameters:
| Parameter | Default | Maximum |
|-----------|---------|---------|
| `page` | 1 | - |
| `per_page` | 50 | 100 |
Responses include a top-level `meta` object:
```json
{
"data": [...],
"meta": { "page": 1, "per_page": 50, "total": 243 }
}
```
## Errors
All error responses share a common shape:
```json
{
"error": {
"code": "ERROR_CODE",
"message": "Human-readable description"
}
}
```
Common error codes: `INVALID_API_KEY`, `FORBIDDEN`, `NOT_FOUND`,
`VALIDATION_ERROR`, `RATE_LIMIT_EXCEEDED`, `SUBSCRIPTION_REQUIRED`,
`READ_ONLY_KEY`, `CLIENT_NOT_FOUND`, `INTERNAL_ERROR`. ## Smart defaults
When creating invoices or offers the API auto-resolves most fields from
your profile so you can send minimal payloads. Only `lines` is required. | Field | Auto-resolved from |
|-------|-------------------|
| `invoice_number` | Profile prefix + sequential counter (e.g. `IV-010`) |
| `issue_date` | Today |
| `due_date` | `issue_date` + profile payment deadline (default 30 days) |
| `currency` | Profile default currency (default `CHF`) |
| `vat_rate` (on lines) | Profile default tax rate |
| Sender details | Profile company name, address, IBAN, etc. |
| Payment info | Profile payment template and deadline |
**`client_id` shorthand** - pass a `client_id` UUID instead of a full
client object. The API fetches the client and snapshots the data
automatically. Returns `404` with code `CLIENT_NOT_FOUND` if the client
does not exist in your profile. **Minimal example:**
```json
POST /invoices
{
"client_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"lines": [
{ "description": "Consulting", "quantity": 2, "price": 150 }
]
}
```
Any field you explicitly provide overrides the auto-resolved default. ## MCP Server (AI Assistant Integration)
Connect your Lumabill account to AI assistants like Claude, ChatGPT, and Cursor
using the Model Context Protocol (MCP). **Endpoint:** `https://mcp.lumabill.ch/mcp?key={your_api_key}`
**Setup for Claude Desktop** - add to `claude_desktop_config.json`:
```json
{
"mcpServers": {
"lumabill": {
"type": "streamable-http",
"url": "https://mcp.lumabill.ch/mcp?key=lmb_your_key_here"
}
}
}
```
**Setup for Claude Code** - add to `.mcp.json` in your project:
```json
{
"mcpServers": {
"lumabill": {
"type": "streamable-http",
"url": "https://mcp.lumabill.ch/mcp?key=lmb_your_key_here"
}
}
}
```
**Setup for Cursor** - add to MCP settings:
- Name: `lumabill`
- Type: `streamable-http`
- URL: `https://mcp.lumabill.ch/mcp?key=lmb_your_key_here`
The MCP server exposes all API endpoints as tools. Your AI assistant can:
- Create and manage invoices, offers, and expenses
- Look up clients and vendors
- Generate financial reports (P&L, balance sheet, VAT)
- Import bank transactions
- Query revenue data
**API key permissions apply:** Read-only keys only expose read tools.'
contact:
name: Lumabill Support
url: https://lumabill.com/contact
license:
name: Proprietary
servers:
- url: https://api.lumabill.ch/v1
description: Production
- url: https://api.dev.lumabill.ch/v1
description: Development / Sandbox
security:
- BearerAuth: []
tags:
- name: Profiles
description: Read-only access to company profiles associated with your account
paths:
/profiles:
get:
operationId: listProfiles
summary: List profiles accessible to this API key
tags:
- Profiles
parameters:
- $ref: '#/components/parameters/PageParam'
- $ref: '#/components/parameters/PerPageParam'
responses:
'200':
description: A paginated list of profiles
content:
application/json:
schema:
type: object
required:
- data
- meta
properties:
data:
type: array
items:
$ref: '#/components/schemas/Profile'
meta:
$ref: '#/components/schemas/PaginationMeta'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'429':
$ref: '#/components/responses/RateLimitExceeded'
'500':
$ref: '#/components/responses/InternalError'
/profiles/{id}:
parameters:
- $ref: '#/components/parameters/ResourceId'
get:
operationId: getProfile
summary: Get a profile
tags:
- Profiles
responses:
'200':
description: Profile object
content:
application/json:
schema:
$ref: '#/components/schemas/Profile'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'429':
$ref: '#/components/responses/RateLimitExceeded'
'500':
$ref: '#/components/responses/InternalError'
put:
operationId: updateProfile
summary: Update a profile's settings
tags:
- Profiles
description: 'Partial update: only the fields sent change. Company and address fields feed the sender block of new documents; the `*NumberPrefix` and `*Count` fields drive numbering (`count` is the last number handed out). `baseCurrency` cannot change once journal entries exist (400). A key pinned to another profile, or a request scoped via `X-Profile-Id` to another profile, gets 404. Permission `profiles.update`; needs a read-write key.'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/ProfileUpdate'
responses:
'200':
description: The updated profile
content:
application/json:
schema:
$ref: '#/components/schemas/Profile'
'400':
$ref: '#/components/responses/ValidationError'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'429':
$ref: '#/components/responses/RateLimitExceeded'
'500':
$ref: '#/components/responses/InternalError'
components:
schemas:
Currency:
type: string
description: 'ISO 4217 code of a currency the API converts (ESTV/BAZG rates). The same list applies to every currency field of the API.
'
enum:
- CHF
- EUR
- USD
- GBP
- JPY
- CAD
- AUD
- SEK
- NOK
- DKK
- HUF
example: CHF
Profile:
type: object
description: 'camelCase, as the API returns it (the earlier snake_case description of this schema never matched the response). Read endpoints also merge the account''s subscription fields (plan, status) into the object.
'
required:
- id
- companyName
- createdAt
properties:
id:
type: string
format: uuid
example: 3fa85f64-5717-4562-b3fc-2c963f66afa6
isDefault:
type: boolean
companyName:
type: string
example: Sandrini Consulting GmbH
street:
type:
- string
- 'null'
example: Seestrasse 100
zip:
type:
- string
- 'null'
example: '6003'
city:
type:
- string
- 'null'
example: Luzern
countryCode:
type:
- string
- 'null'
example: CH
email:
type:
- string
- 'null'
phone:
type:
- string
- 'null'
contactPerson:
type:
- string
- 'null'
iban:
type:
- string
- 'null'
description: IBAN of the default currency slot in `currencyDefaults`
currencyDefaults:
type:
- object
- 'null'
description: Per-currency IBAN, payment template and QR preference, keyed by currency code
additionalProperties: true
logoUrl:
type:
- string
- 'null'
uid:
type:
- string
- 'null'
example: CHE-123.456.789 MWST
legalForm:
type:
- string
- 'null'
enum:
- einzelfirma
- kollektivgesellschaft
- kommanditgesellschaft
- ag
- gmbh
- genossenschaft
- verein
- stiftung
- other
- null
description: Rechtsform; null until set. Decides the year-end checklist (Anhang, Gewinnverwendung).
shareCapital:
type:
- number
- 'null'
example: 100000
description: Aktien-, Stamm- or Genossenschaftskapital in CHF; null for sole proprietorships and partnerships
registeredOffice:
type:
- string
- 'null'
example: Stäfa
description: Sitz (municipality)
governingPersons:
type: array
description: Organe (board, management, partners, owner) for the signature block and the GV documents
items:
$ref: '#/components/schemas/GoverningPerson'
auditOptingOut:
type:
- boolean
- 'null'
description: Opting-out of the limited audit (art. 727a para. 2 CO); null = not answered
vatRegistered:
type: boolean
vatMethod:
type:
- string
- 'null'
defaultTaxRate:
type: number
format: double
example: 8.1
defaultCurrency:
$ref: '#/components/schemas/Currency'
baseCurrency:
$ref: '#/components/schemas/Currency'
defaultLanguage:
type: string
example: de
paymentDeadlineDays:
type: integer
example: 30
defaultInvoiceFooter:
type:
- string
- 'null'
invoiceNumberPrefix:
type:
- string
- 'null'
invoiceCount:
type: integer
description: Last invoice number handed out; the next invoice gets count + 1
offerNumberPrefix:
type:
- string
- 'null'
offerCount:
type: integer
creditNotePrefix:
type:
- string
- 'null'
creditNoteCount:
type: integer
clientNumberPrefix:
type:
- string
- 'null'
clientCount:
type: integer
productNumberPrefix:
type:
- string
- 'null'
productCount:
type: integer
defaultRevenueAccountCode:
type:
- string
- 'null'
example: '3400'
roundTotalTo:
type:
- number
- 'null'
hideZeroTax:
type: boolean
fxGainAccountId:
type:
- string
- 'null'
format: uuid
description: FX result account for exchange gains; null = 6960 Kursdifferenzen
fxLossAccountId:
type:
- string
- 'null'
format: uuid
description: FX result account for exchange losses; null = 6960 Kursdifferenzen
fxValuationPolicy:
type: string
enum:
- stichtag
- niederstwert
description: Default policy of the year-end FX revaluation
fxVatRateMethod:
type: object
description: 'MWST exchange rate method by the first calendar year it applies: `daily` (ESTV/BAZG Tageskurs, the default) or `monthly` (Monatsmittelkurs). The entry with the greatest year up to a document''s year wins.
'
additionalProperties:
type: string
enum:
- daily
- monthly
example:
'2027': monthly
bookkeepingMode:
type: string
enum:
- simple
- double
createdAt:
type: string
format: date-time
updatedAt:
type: string
format: date-time
ProfileUpdate:
type: object
description: 'Partial update for PUT /profiles/{id}. Every property is optional; anything omitted stays as is. Same keys as `Profile` minus the read-only ones (`id`, `isDefault`, `createdAt`, `updatedAt`).
'
properties:
companyName:
type: string
street:
type: string
addressLine:
type: string
description: Second address line
zip:
type: string
city:
type: string
countryCode:
type: string
example: CH
email:
type: string
phone:
type: string
contactPerson:
type: string
uid:
type: string
legalForm:
type:
- string
- 'null'
enum:
- einzelfirma
- kollektivgesellschaft
- kommanditgesellschaft
- ag
- gmbh
- genossenschaft
- verein
- stiftung
- other
- null
shareCapital:
type:
- number
- 'null'
registeredOffice:
type:
- string
- 'null'
governingPersons:
type: array
items:
$ref: '#/components/schemas/GoverningPerson'
auditOptingOut:
type:
- boolean
- 'null'
vatRegistered:
type: boolean
defaultTaxRate:
type: number
paymentDeadlineDays:
type: integer
defaultCurrency:
allOf:
- $ref: '#/components/schemas/Currency'
description: Seeds new documents; a code outside the list answers 400 UNSUPPORTED_CURRENCY (with `currency`)
baseCurrency:
allOf:
- $ref: '#/components/schemas/Currency'
description: Rejected with 400 once journal entries exist
defaultLanguage:
type: string
enum:
- de
- fr
- it
- en
defaultInvoiceFooter:
type: string
invoiceNumberPrefix:
type: string
invoiceCount:
type: integer
offerNumberPrefix:
type: string
offerCount:
type: integer
creditNotePrefix:
type: string
creditNoteCount:
type: integer
clientNumberPrefix:
type: string
clientCount:
type: integer
productNumberPrefix:
type: string
productCount:
type: integer
defaultRevenueAccountCode:
type: string
roundTotalTo:
type: number
hideZeroTax:
type: boolean
logoUrl:
type: string
currencyDefaults:
type: object
additionalProperties: true
fxGainAccountId:
type:
- string
- 'null'
format: uuid
description: 'An active income / expense account of this profile in the base currency (400 INVALID_FX_ACCOUNT); null = 6960 Kursdifferenzen
'
fxLossAccountId:
type:
- string
- 'null'
format: uuid
description: Same rules as fxGainAccountId, for exchange losses
fxValuationPolicy:
type: string
enum:
- stichtag
- niederstwert
description: 400 INVALID_FX_VALUATION_POLICY for any other value
fxVatRateMethod:
type:
- object
- 'null'
description: 'Replaces the stored map; null clears it (daily everywhere). Keys YYYY, values daily / monthly (400 INVALID_FX_VAT_RATE_METHOD). Art. 45 Abs. 5 MWSTV: the method in force can only change for a year without foreign-currency documents yet, else 409 FX_VAT_RATE_METHOD_LOCKED with `years`.
'
additionalProperties:
type: string
enum:
- daily
- monthly
ErrorResponse:
type: object
required:
- error
properties:
error:
type: object
required:
- code
- message
properties:
code:
type: string
example: NOT_FOUND
message:
type: string
example: The requested resource was not found.
PaginationMeta:
type: object
required:
- page
- per_page
- total
properties:
page:
type: integer
example: 1
per_page:
type: integer
example: 50
total:
type: integer
description: Total number of items across all pages
example: 243
GoverningPerson:
type: object
required:
- name
- role
- signing
properties:
name:
type: string
example: Anna Muster
role:
type: string
enum:
- vr_praesident
- vr_mitglied
- geschaeftsfuehrer
- gesellschafter
- aktionaer
- inhaber
- vorstand
signing:
type: boolean
description: Signs the annual financial statements and the GV documents
sharesHeld:
type:
- number
- 'null'
description: Shares or capital contributions held (Universalversammlung protocol)
responses:
ValidationError:
description: Validation error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
example:
error:
code: VALIDATION_ERROR
message: The field 'due_date' must be on or after 'issue_date'.
RateLimitExceeded:
description: Rate limit exceeded
headers:
Retry-After:
description: Number of seconds to wait before retrying
schema:
type: integer
example: 30
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
example:
error:
code: RATE_LIMIT_EXCEEDED
message: Rate limit exceeded. Please retry after 30 seconds.
Forbidden:
description: Subscription required or read-only key on a write endpoint
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
examples:
subscription_required:
summary: Subscription required
value:
error:
code: SUBSCRIPTION_REQUIRED
message: A Pro or Lifetime subscription is required to use this endpoint.
read_only_key:
summary: Read-only key
value:
error:
code: READ_ONLY_KEY
message: This API key is read-only and cannot perform write operations.
Unauthorized:
description: Invalid or missing API key
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
example:
error:
code: INVALID_API_KEY
message: The provided API key is invalid or has been revoked.
NotFound:
description: Resource not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
example:
error:
code: NOT_FOUND
message: The requested resource was not found.
InternalError:
description: Internal server error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
example:
error:
code: INTERNAL_ERROR
message: An unexpected error occurred. Please try again later.
parameters:
PerPageParam:
name: per_page
in: query
description: Items per page (max 100)
schema:
type: integer
default: 50
minimum: 1
maximum: 100
example: 50
ResourceId:
name: id
in: path
required: true
description: UUID of the resource
schema:
type: string
format: uuid
example: 3fa85f64-5717-4562-b3fc-2c963f66afa6
PageParam:
name: page
in: query
description: Page number (1-based)
schema:
type: integer
default: 1
minimum: 1
example: 1
securitySchemes:
BearerAuth:
type: http
scheme: bearer
bearerFormat: lmb_...
description: API key obtained from Lumabill dashboard → Settings → API Keys