Strategy
M&A, capital markets, and strategic advisory for transformative deals.
View all StrategyData rooms and transactions. The analysis and the recommendation are signed by the people on the team.
Discover BMC One Strategy Log in to BMC OneFree first meetingBy video call
Tax
Structuring, planning, and compliance across jurisdictions.
View all TaxForms 720 and 721
Filing period from 1 January to 31 MarchForms 720 and 721
The filing period ends on 31 MarchTax authorities, deadlines and powers of attorney. Our team prepares, files and responds.
Discover BMC One Tax Log in to BMC OneFree first meetingBy video call
Legal
End-to-end legal counsel to protect and advance your business interests.
View all LegalSignatures, case files and deadlines. A BMC team handles every matter, with in-house legal counsel on the legal side; in BMC One you see its phases and the status of each one.
Discover BMC One Legal Log in to BMC OneFree first meetingBy video call
Operations
Outsourced finance, people, and governance so you can focus on growth.
View all OperationsAccounting, invoices, bank statements and payroll. Our team books, calculates and submits.
Discover BMC One Business Services Log in to BMC OneFree first meetingBy video call
New guides on the latest Spanish tax and immigration developments.
Practical tools for informed decision-making.
Everything BMC One does
Each capability links to its area. Partial: part of it works; the detail is on the area page.
Try
Business Services
Tax
Legal
Security
Nothing for “”. Try “VAT”, “payroll”, or “signature”.
By area
Business ServicesOperations
Your business, up to date in one place
Our team books, calculates and submits.
Ask your assistantExamples
How many active employees do we have, and under which collective agreement and type of contract?
Add these three employees with their DNI, Social Security number and start dateThey stay in BMC One; nothing is notified to Social Security.
Tax
Every Spanish tax deadline, in plain sight
Our team prepares, files and responds.
Ask your assistantExamples
Which returns do we have this quarter and which have already been filed?
Change the tax address on the record to Calle Muestra 5, MadridIt changes the record in BMC One; nothing changes with the AEAT.
Legal
Every phase, with its status and its date
A BMC team handles every matter, with in-house legal counsel on the legal side; in BMC One you see its phases and the status of each one.
Ask your assistantExamples
Which documents are still awaiting signature and who has yet to sign?
Prepare an envelope for Lucía Prueba to sign this contract on the last pageIt stays in draft. Sending it is a critical action: only with the Custom role.
Strategy
The whole transaction in one file
The analysis and the recommendation are signed by the people on the team.
Ask your assistantExamples
Find what BMC has written to us about the capital increase
Where do the tax obligations of every company in the group stand, and which one has gaps?With a group access.
Across all areas
ConnectionsAPI, MCP and webhooks
It works with any assistant that supports remote MCP connectors with OAuth sign-in; for example, Claude, which we have tested it with, or ChatGPT Business, Enterprise and Edu, as documented.
With a token, also Gemini CLI, Cursor, n8n, Make or Zapier; and, by API and signed webhooks, your own systems.
No assistant files with the AEAT, moves money or signs for you.
Only with the Custom role, chosen permission by permission.
API and MCPConnect your AIIntegrationsPublic administrations
Security
Its own scoped access, never your session
BMC One, its database and your documents are on our dedicated servers in Germany. The database is not exposed to the internet.
No assistant files with the AEAT, moves money or signs for you.
Illustration of what you choose when you authorise an access. Fictitious data.
Returns
ReturnsForms 720, 721 and 210
Returns for investors and non-residents
Assets held abroad, crypto assets and non-resident income, at two levels: Platform and With an adviser.
BMC's client environment, included in your engagement: never sold separately.
Developers
Double-entry books: journal, chart of accounts, financial reports, exports.
GET /books/{companyId}/journal-lines List posted journal linesGET /books/{companyId}/accounts Chart of accounts with period balancesGET /books/{companyId}/opening-balances Opening balances for a yearPOST /books/{companyId}/opening-balances Set opening balances for a yearGET /books/{companyId}/consolidation Consolidated figuresGET /books/{companyId}/cost-centers/allocations Cost-centre allocationsGET /books/{companyId}/reports/profit-loss Profit & Loss (JSON)GET /books/{companyId}/reports/balance-sheet Balance sheet (JSON)GET /books/{companyId}/reports/trial-balance Trial balance (JSON)GET /books/{companyId}/reports/{report}/export Export a report as CSV / XLSX / PDF/books/{companyId}/journal-linesList posted journal lines
Paginated POSTED journal lines for a date range, optionally filtered by account-code prefix. Dates default to the current quarter. Amounts are decimal strings.
Required permission:
accounting:journal.read (Accounting › Journal › Read)
Pagination: Parameters page and limit. The response includes total, page, limit, hasMore.
| Name | In | Type | Description |
|---|---|---|---|
companyIdrequired | path | string | Your account id (must match the token's tenant). |
from | query | string (date) | |
to | query | string (date) | |
account | query | string | PGC account-code prefix filter, e.g. '400' or '7'. |
page | query | integer | Default: 1 |
limit | query | integer | Default: 100 · maximum: 500 |
200 Paginated journal lines · application/json
| Name | Type | Description |
|---|---|---|
data | object[] | |
data[].id | string | |
data[].entryDate | string (date) | |
data[].entryNumber | integernullable | |
data[].period | string | Accounting period, e.g. 2026-Q1 |
data[].reference | stringnullable | |
data[].entryDescription | string | |
data[].accountCode | string | |
data[].lineDescription | stringnullable | |
data[].debit | string | Decimal string, e.g. 1234.56 |
data[].credit | string | Decimal string, e.g. 0.00 |
data[].currency | string | |
pagination | object | |
pagination.page | integer | |
pagination.limit | integer | |
pagination.total | integer | |
pagination.hasMore | boolean | |
total | integer | Total items matching the filter. |
page | integer | Page returned (starts at 1). |
limit | integer | Page size applied. |
hasMore | boolean | There are more pages after this one. |
400 Invalid date format · application/json
| Name | Type | Description |
|---|---|---|
error | string | Human-readable error message |
required_permission | string | Present on 403 - the missing permission (area:resource.action) |
401 Missing or invalid Bearer token. · application/json
| Name | Type | Description |
|---|---|---|
error | string | Human-readable error message |
required_permission | string | Present on 403 - the missing permission (area:resource.action) |
403 Token lacks the required permission, or the resource is outside the token's tenant. · application/json
| Name | Type | Description |
|---|---|---|
error | string | Human-readable error message |
required_permission | string | Present on 403 - the missing permission (area:resource.action) |
429 Rate limit exceeded. · application/json
| Name | Type | Description |
|---|---|---|
error | string | Human-readable error message |
required_permission | string | Present on 403 - the missing permission (area:resource.action) |
curl -X GET "https://app.bm.consulting/api/v1/books/<companyId>/journal-lines?limit=50" \
-H "Authorization: Bearer $BMC_TOKEN" const res = await fetch("https://app.bm.consulting/api/v1/books/<companyId>/journal-lines?limit=50", {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.BMC_TOKEN}`,
},
});
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
const data = await res.json(); import os
import requests
res = requests.get(
"https://app.bm.consulting/api/v1/books/<companyId>/journal-lines?limit=50",
headers={"Authorization": f"Bearer {os.environ['BMC_TOKEN']}"},
timeout=30,
)
res.raise_for_status()
data = res.json() /books/{companyId}/accountsChart of accounts with period balances
Chart of accounts with computed period balances (netBalance = openingBalance + debitTotal - creditTotal). Amounts are decimal strings.
Required permission:
accounting:ledger_accounts.read (Accounting › Chart of accounts › Read)
Pagination: Parameters page and limit. The response includes total, page, limit, hasMore.
| Name | In | Type | Description |
|---|---|---|---|
companyIdrequired | path | string | |
from | query | string (date) | |
to | query | string (date) | |
type | query | string | Values: asset, liability, equity, income, expense |
active | query | boolean | Default: true |
page | query | integer | Default: 1 |
limit | query | integer | Default: 200 · maximum: 500 |
200 Chart of accounts · application/json
| Name | Type | Description |
|---|---|---|
data | object[] | |
data[].code | string | PGC account code, e.g. 400 |
data[].name | string | |
data[].type | string | Values: asset, liability, equity, income, expense |
data[].isActive | boolean | |
data[].openingBalance | string | |
data[].debitTotal | string | |
data[].creditTotal | string | |
data[].netBalance | string | openingBalance + debitTotal - creditTotal |
pagination | object | |
pagination.page | integer | |
pagination.limit | integer | |
pagination.total | integer | |
pagination.hasMore | boolean | |
total | integer | Total items matching the filter. |
page | integer | Page returned (starts at 1). |
limit | integer | Page size applied. |
hasMore | boolean | There are more pages after this one. |
401 Missing or invalid Bearer token. · application/json
| Name | Type | Description |
|---|---|---|
error | string | Human-readable error message |
required_permission | string | Present on 403 - the missing permission (area:resource.action) |
403 Token lacks the required permission, or the resource is outside the token's tenant. · application/json
| Name | Type | Description |
|---|---|---|
error | string | Human-readable error message |
required_permission | string | Present on 403 - the missing permission (area:resource.action) |
429 Rate limit exceeded. · application/json
| Name | Type | Description |
|---|---|---|
error | string | Human-readable error message |
required_permission | string | Present on 403 - the missing permission (area:resource.action) |
curl -X GET "https://app.bm.consulting/api/v1/books/<companyId>/accounts?limit=50" \
-H "Authorization: Bearer $BMC_TOKEN" const res = await fetch("https://app.bm.consulting/api/v1/books/<companyId>/accounts?limit=50", {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.BMC_TOKEN}`,
},
});
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
const data = await res.json(); import os
import requests
res = requests.get(
"https://app.bm.consulting/api/v1/books/<companyId>/accounts?limit=50",
headers={"Authorization": f"Bearer {os.environ['BMC_TOKEN']}"},
timeout=30,
)
res.raise_for_status()
data = res.json() /books/{companyId}/opening-balancesOpening balances for a year
Seed (opening) balances per account for the requested fiscal year. Amounts are decimal strings.
Required permission:
accounting:opening_balances.read (Accounting › Opening balances › Read)
Pagination: Not paginated: returns the full set.
| Name | In | Type | Description |
|---|---|---|---|
companyIdrequired | path | string | |
year | query | integer |
200 Opening balances
401 Missing or invalid Bearer token. · application/json
| Name | Type | Description |
|---|---|---|
error | string | Human-readable error message |
required_permission | string | Present on 403 - the missing permission (area:resource.action) |
403 Token lacks the required permission, or the resource is outside the token's tenant. · application/json
| Name | Type | Description |
|---|---|---|
error | string | Human-readable error message |
required_permission | string | Present on 403 - the missing permission (area:resource.action) |
429 Rate limit exceeded. · application/json
| Name | Type | Description |
|---|---|---|
error | string | Human-readable error message |
required_permission | string | Present on 403 - the missing permission (area:resource.action) |
curl -X GET "https://app.bm.consulting/api/v1/books/<companyId>/opening-balances" \
-H "Authorization: Bearer $BMC_TOKEN" const res = await fetch("https://app.bm.consulting/api/v1/books/<companyId>/opening-balances", {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.BMC_TOKEN}`,
},
});
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
const data = await res.json(); import os
import requests
res = requests.get(
"https://app.bm.consulting/api/v1/books/<companyId>/opening-balances",
headers={"Authorization": f"Bearer {os.environ['BMC_TOKEN']}"},
timeout=30,
)
res.raise_for_status()
data = res.json() /books/{companyId}/opening-balancesSet opening balances for a year
Seeds per-account opening balances for a fiscal year. `replace=true` overwrites existing seeds. Amounts as decimal strings. `companyId` must match your account.
Required permission:
accounting:opening_balances.create (Accounting › Opening balances › Create)
Pagination: Not paginated: returns the full set.
| Name | In | Type | Description |
|---|---|---|---|
companyIdrequired | path | string | |
replace | query | boolean | Default: false |
application/json| Name | Type | Description |
|---|---|---|
yearrequired | integer | |
balancesrequired | object[] | |
balances[].accountCode | string | |
balances[].amount | string | Decimal string |
200 Opening balances stored
400 Validation error · application/json
| Name | Type | Description |
|---|---|---|
error | string | Human-readable error message |
required_permission | string | Present on 403 - the missing permission (area:resource.action) |
401 Missing or invalid Bearer token. · application/json
| Name | Type | Description |
|---|---|---|
error | string | Human-readable error message |
required_permission | string | Present on 403 - the missing permission (area:resource.action) |
403 Token lacks the required permission, or the resource is outside the token's tenant. · application/json
| Name | Type | Description |
|---|---|---|
error | string | Human-readable error message |
required_permission | string | Present on 403 - the missing permission (area:resource.action) |
409 Nothing was written. An opening entry for the year already exists (use `replace=true`), another load of the same opening is in progress (`code: opening_in_progress`, with `claimedUntil`), or more than one live opening entry exists and an accountant has to review them before replacing (`code: opening_needs_accountant`). · application/json
| Name | Type | Description |
|---|---|---|
error | string | Human-readable error message |
required_permission | string | Present on 403 - the missing permission (area:resource.action) |
429 Rate limit exceeded. · application/json
| Name | Type | Description |
|---|---|---|
error | string | Human-readable error message |
required_permission | string | Present on 403 - the missing permission (area:resource.action) |
502 The books engine failed while loading the opening. Retry. · application/json
| Name | Type | Description |
|---|---|---|
error | string | Human-readable error message |
required_permission | string | Present on 403 - the missing permission (area:resource.action) |
curl -X POST "https://app.bm.consulting/api/v1/books/<companyId>/opening-balances" \
-H "Authorization: Bearer $BMC_TOKEN" \
-H "Content-Type: application/json" \
-d '{"year":2026,"balances":[{"accountCode":"570","amount":"string"}]}' const res = await fetch("https://app.bm.consulting/api/v1/books/<companyId>/opening-balances", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.BMC_TOKEN}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"year": 2026,
"balances": [
{
"accountCode": "570",
"amount": "string"
}
]
}),
});
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
const data = await res.json(); import os
import requests
res = requests.post(
"https://app.bm.consulting/api/v1/books/<companyId>/opening-balances",
headers={"Authorization": f"Bearer {os.environ['BMC_TOKEN']}"},
json={
"year": 2026,
"balances": [{
"accountCode": "570",
"amount": "string",
}],
},
timeout=30,
)
res.raise_for_status()
data = res.json() /books/{companyId}/consolidationConsolidated figures
Consolidated balances across the account's companies. Amounts are decimal strings.
Required permission:
accounting:reports.read (Accounting › Reports (P&L, balance sheet, ledger) › Read)
Pagination: Not paginated: returns the full set.
| Name | In | Type | Description |
|---|---|---|---|
companyIdrequired | path | string | |
from | query | string (date) | |
to | query | string (date) |
200 Consolidation result
401 Missing or invalid Bearer token. · application/json
| Name | Type | Description |
|---|---|---|
error | string | Human-readable error message |
required_permission | string | Present on 403 - the missing permission (area:resource.action) |
403 Token lacks the required permission, or the resource is outside the token's tenant. · application/json
| Name | Type | Description |
|---|---|---|
error | string | Human-readable error message |
required_permission | string | Present on 403 - the missing permission (area:resource.action) |
429 Rate limit exceeded. · application/json
| Name | Type | Description |
|---|---|---|
error | string | Human-readable error message |
required_permission | string | Present on 403 - the missing permission (area:resource.action) |
curl -X GET "https://app.bm.consulting/api/v1/books/<companyId>/consolidation" \
-H "Authorization: Bearer $BMC_TOKEN" const res = await fetch("https://app.bm.consulting/api/v1/books/<companyId>/consolidation", {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.BMC_TOKEN}`,
},
});
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
const data = await res.json(); import os
import requests
res = requests.get(
"https://app.bm.consulting/api/v1/books/<companyId>/consolidation",
headers={"Authorization": f"Bearer {os.environ['BMC_TOKEN']}"},
timeout=30,
)
res.raise_for_status()
data = res.json() /books/{companyId}/cost-centers/allocationsCost-centre allocations
Allocations per cost centre with a summary. Amounts are decimal strings.
Required permission:
accounting:reports.read (Accounting › Reports (P&L, balance sheet, ledger) › Read)
Pagination: Not paginated: returns the full set.
| Name | In | Type | Description |
|---|---|---|---|
companyIdrequired | path | string | |
from | query | string (date) | |
to | query | string (date) |
200 Allocations + summary
401 Missing or invalid Bearer token. · application/json
| Name | Type | Description |
|---|---|---|
error | string | Human-readable error message |
required_permission | string | Present on 403 - the missing permission (area:resource.action) |
403 Token lacks the required permission, or the resource is outside the token's tenant. · application/json
| Name | Type | Description |
|---|---|---|
error | string | Human-readable error message |
required_permission | string | Present on 403 - the missing permission (area:resource.action) |
429 Rate limit exceeded. · application/json
| Name | Type | Description |
|---|---|---|
error | string | Human-readable error message |
required_permission | string | Present on 403 - the missing permission (area:resource.action) |
curl -X GET "https://app.bm.consulting/api/v1/books/<companyId>/cost-centers/allocations" \
-H "Authorization: Bearer $BMC_TOKEN" const res = await fetch("https://app.bm.consulting/api/v1/books/<companyId>/cost-centers/allocations", {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.BMC_TOKEN}`,
},
});
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
const data = await res.json(); import os
import requests
res = requests.get(
"https://app.bm.consulting/api/v1/books/<companyId>/cost-centers/allocations",
headers={"Authorization": f"Bearer {os.environ['BMC_TOKEN']}"},
timeout=30,
)
res.raise_for_status()
data = res.json() /books/{companyId}/reports/profit-lossProfit & Loss (JSON)
Cuenta de Pérdidas y Ganancias for a period. Dates default to the current quarter. Amounts are decimal strings.
Required permission:
accounting:reports.read (Accounting › Reports (P&L, balance sheet, ledger) › Read)
Pagination: Not paginated: returns the full set.
| Name | In | Type | Description |
|---|---|---|---|
companyIdrequired | path | string | |
from | query | string (date) | |
to | query | string (date) |
200 P&L report · application/json
| Name | Type | Description |
|---|---|---|
companyId | string | |
from | string (date) | |
to | string (date) | |
rows | object[] | |
rows[].accountCode | string | |
rows[].label | string | |
rows[].amount | string | Decimal string |
401 Missing or invalid Bearer token. · application/json
| Name | Type | Description |
|---|---|---|
error | string | Human-readable error message |
required_permission | string | Present on 403 - the missing permission (area:resource.action) |
403 Token lacks the required permission, or the resource is outside the token's tenant. · application/json
| Name | Type | Description |
|---|---|---|
error | string | Human-readable error message |
required_permission | string | Present on 403 - the missing permission (area:resource.action) |
429 Rate limit exceeded. · application/json
| Name | Type | Description |
|---|---|---|
error | string | Human-readable error message |
required_permission | string | Present on 403 - the missing permission (area:resource.action) |
curl -X GET "https://app.bm.consulting/api/v1/books/<companyId>/reports/profit-loss" \
-H "Authorization: Bearer $BMC_TOKEN" const res = await fetch("https://app.bm.consulting/api/v1/books/<companyId>/reports/profit-loss", {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.BMC_TOKEN}`,
},
});
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
const data = await res.json(); import os
import requests
res = requests.get(
"https://app.bm.consulting/api/v1/books/<companyId>/reports/profit-loss",
headers={"Authorization": f"Bearer {os.environ['BMC_TOKEN']}"},
timeout=30,
)
res.raise_for_status()
data = res.json() /books/{companyId}/reports/balance-sheetBalance sheet (JSON)
Balance (Activo/Pasivo) for a period. Amounts are decimal strings.
Required permission:
accounting:reports.read (Accounting › Reports (P&L, balance sheet, ledger) › Read)
Pagination: Not paginated: returns the full set.
| Name | In | Type | Description |
|---|---|---|---|
companyIdrequired | path | string | |
from | query | string (date) | |
to | query | string (date) |
200 Balance sheet · application/json
| Name | Type | Description |
|---|---|---|
companyId | string | |
from | string (date) | |
to | string (date) | |
rows | object[] | |
rows[].accountCode | string | |
rows[].label | string | |
rows[].amount | string | Decimal string |
401 Missing or invalid Bearer token. · application/json
| Name | Type | Description |
|---|---|---|
error | string | Human-readable error message |
required_permission | string | Present on 403 - the missing permission (area:resource.action) |
403 Token lacks the required permission, or the resource is outside the token's tenant. · application/json
| Name | Type | Description |
|---|---|---|
error | string | Human-readable error message |
required_permission | string | Present on 403 - the missing permission (area:resource.action) |
429 Rate limit exceeded. · application/json
| Name | Type | Description |
|---|---|---|
error | string | Human-readable error message |
required_permission | string | Present on 403 - the missing permission (area:resource.action) |
curl -X GET "https://app.bm.consulting/api/v1/books/<companyId>/reports/balance-sheet" \
-H "Authorization: Bearer $BMC_TOKEN" const res = await fetch("https://app.bm.consulting/api/v1/books/<companyId>/reports/balance-sheet", {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.BMC_TOKEN}`,
},
});
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
const data = await res.json(); import os
import requests
res = requests.get(
"https://app.bm.consulting/api/v1/books/<companyId>/reports/balance-sheet",
headers={"Authorization": f"Bearer {os.environ['BMC_TOKEN']}"},
timeout=30,
)
res.raise_for_status()
data = res.json() /books/{companyId}/reports/trial-balanceTrial balance (JSON)
Sumas y saldos for a period. Amounts are decimal strings.
Required permission:
accounting:reports.read (Accounting › Reports (P&L, balance sheet, ledger) › Read)
Pagination: Not paginated: returns the full set.
| Name | In | Type | Description |
|---|---|---|---|
companyIdrequired | path | string | |
from | query | string (date) | |
to | query | string (date) |
200 Trial balance · application/json
| Name | Type | Description |
|---|---|---|
companyId | string | |
from | string (date) | |
to | string (date) | |
rows | object[] | |
rows[].accountCode | string | |
rows[].label | string | |
rows[].amount | string | Decimal string |
401 Missing or invalid Bearer token. · application/json
| Name | Type | Description |
|---|---|---|
error | string | Human-readable error message |
required_permission | string | Present on 403 - the missing permission (area:resource.action) |
403 Token lacks the required permission, or the resource is outside the token's tenant. · application/json
| Name | Type | Description |
|---|---|---|
error | string | Human-readable error message |
required_permission | string | Present on 403 - the missing permission (area:resource.action) |
429 Rate limit exceeded. · application/json
| Name | Type | Description |
|---|---|---|
error | string | Human-readable error message |
required_permission | string | Present on 403 - the missing permission (area:resource.action) |
curl -X GET "https://app.bm.consulting/api/v1/books/<companyId>/reports/trial-balance" \
-H "Authorization: Bearer $BMC_TOKEN" const res = await fetch("https://app.bm.consulting/api/v1/books/<companyId>/reports/trial-balance", {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.BMC_TOKEN}`,
},
});
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
const data = await res.json(); import os
import requests
res = requests.get(
"https://app.bm.consulting/api/v1/books/<companyId>/reports/trial-balance",
headers={"Authorization": f"Bearer {os.environ['BMC_TOKEN']}"},
timeout=30,
)
res.raise_for_status()
data = res.json() /books/{companyId}/reports/{report}/exportExport a report as CSV / XLSX / PDF
Streams the chosen report as a file. `report` is one of `profit-loss`, `balance-sheet`, `trial-balance`, `libro-diario`, `libro-mayor`.
Required permission:
accounting:reports.export (Accounting › Reports (P&L, balance sheet, ledger) › Export)
Pagination: Not paginated: returns the full set.
| Name | In | Type | Description |
|---|---|---|---|
companyIdrequired | path | string | |
reportrequired | path | string | Values: profit-loss, balance-sheet, trial-balance, libro-diario, libro-mayor |
formatrequired | query | string | Values: csv, xlsx, pdf |
from | query | string (date) | |
to | query | string (date) |
200 The report file · text/csv
400 Missing or invalid ?format= · application/json
| Name | Type | Description |
|---|---|---|
error | string | Human-readable error message |
required_permission | string | Present on 403 - the missing permission (area:resource.action) |
401 Missing or invalid Bearer token. · application/json
| Name | Type | Description |
|---|---|---|
error | string | Human-readable error message |
required_permission | string | Present on 403 - the missing permission (area:resource.action) |
403 Token lacks the required permission, or the resource is outside the token's tenant. · application/json
| Name | Type | Description |
|---|---|---|
error | string | Human-readable error message |
required_permission | string | Present on 403 - the missing permission (area:resource.action) |
429 Rate limit exceeded. · application/json
| Name | Type | Description |
|---|---|---|
error | string | Human-readable error message |
required_permission | string | Present on 403 - the missing permission (area:resource.action) |
curl -X GET "https://app.bm.consulting/api/v1/books/<companyId>/reports/profit-loss/export?format=csv" \
-H "Authorization: Bearer $BMC_TOKEN" \
-o fichero const res = await fetch("https://app.bm.consulting/api/v1/books/<companyId>/reports/profit-loss/export?format=csv", {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.BMC_TOKEN}`,
},
});
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
const file = Buffer.from(await res.arrayBuffer()); import os
import requests
res = requests.get(
"https://app.bm.consulting/api/v1/books/<companyId>/reports/profit-loss/export?format=csv",
headers={"Authorization": f"Bearer {os.environ['BMC_TOKEN']}"},
timeout=30,
)
res.raise_for_status()
contenido = res.content Reply by email · no commitment