Skip to content
GET /unified/accounting/invoices/{id}

Path Parameters

idstring
required·

The ID of the resource.

Example: 23423523

Query Parameters

Refer Specifying query parameters in Truto APIs

typestring

The type of the invoice

Possible values:
billinvoice
14 supported12 required13 notes
Bexio
required

invoice reads customer invoices (/2.0/kb_invoice); bill reads supplier bills (/4.0/purchase/bills). bexio keeps them in unrelated APIs, so this is not optional.

Campfire
required

Which collection the id belongs to. Required.

DualEntry
required

Which collection the record number belongs to. Required.

FreeAgent
required

The type of the invoice

FreshBooks
required

Which collection this id belongs to. Required.

Moneybird
required

Which document to read. Required.

Microsoft Dynamics 365 Business Central
required

The type of the invoice

Oracle Netsuite
required

The type of the invoice

Odoo
required

Which document this id is expected to be. Required.

Rillet
required

Which collection the id belongs to. Required.

Sage Business Cloud Accounting
required
Zoho Books
required

The type of the invoice

ERPNext
supported

The type of the invoice

SAP S/4HANA
supported

invoice = customer billing documents (default), bill = supplier invoices.

invoice_typestring

The type of the invoice

Possible values:
billinvoice
1 supported1 required
QuickBooks
required
Show Truto-specific parameters
integrated_account_idstring · uuid
required·

The ID of the integrated account to use for the request.

Example: 62f44730-dd91-461e-bd6a-aedd9e0ad79d
truto_response_formatstring

The format of the response.

  • unified returns the response with unified mappings applied.
  • raw returns the unprocessed, raw response from the remote API.
  • normalized applies the unified mappings and returns the data in a normalized format.
  • stream returns the response as a stream, which is ideal for transmitting large datasets, files, or binary data. Using streaming mode helps to efficiently handle large payloads or real-time data flows without requiring the entire data to be buffered in memory.
  • debug returns the final unified result alongside raw remote fetch information. The response is an envelope containing result (identical to unified mode output) and debug (with requestUrl, requestOptions, data, responseHeaders, and for list operations: nextCursor, isLooping, isEmptyResult, resultCount). When the upstream body exceeds 1 MiB, data is replaced by { truto_truncated: true, truto_max_bytes, truto_excerpt }. debug is null for static responses or when truto_skip_api_call=true. An integrated account token that cannot read credentials (the kind the connect flow gives a browser) gets a 403 for debug.

Defaults to unified.

Example: unified
Possible values:
unifiedrawnormalizedstreamdebug
truto_ignore_remote_databoolean

Excludes the remote_data attribute from the response.

truto_exclude_fieldsstring[]

Array of fields to exclude from the response.

Example: truto_exclude_fields[]=id&truto_exclude_fields[]=name
remote_queryRecord<string, any>

Query parameters to pass to the underlying API without any transformations. Refer this guide to see how to structure the query parameters.

Example: remote_query[foo]=bar

Response Body

idstring
required·

The unique identifier for invoices

20 supported
Bexio
supported
Brightpearl
supported
Campfire
supported
Coupa
supported
DualEntry
supported
ERPNext
supported
FreeAgent
supported
FreshBooks
supported
Moneybird
supported
Microsoft Dynamics 365 Business Central
supported
Oracle Netsuite
supported
Odoo
supported
QuickBooks
supported
Rillet
supported
Sage Business Cloud Accounting
supported
Sage Intacct
supported
SAP S/4HANA
supported
Wave
supported
Xero
supported
Zoho Books
supported
balancenumber

The remaining balance of the invoice

16 supported
Bexio
supported
Campfire
supported
Coupa
supported
DualEntry
supported
ERPNext
supported
FreeAgent
supported
FreshBooks
supported
Moneybird
supported
Odoo
supported
QuickBooks
supported
Rillet
supported
Sage Business Cloud Accounting
supported
Sage Intacct
supported
Wave
supported
Xero
supported
Zoho Books
supported
companystring

The company the invoice belongs to

References: CompanyInfo → id
9 supported
Campfire
supported
DualEntry
supported
ERPNext
supported
FreeAgent
supported
Moneybird
supported
Microsoft Dynamics 365 Business Central
supported
Odoo
supported
SAP S/4HANA
supported
Zoho Books
supported
contactobject

The contact for whom the invoice is raised.

References: Contacts → id
20 supported
Bexio
supported
Brightpearl
supported
Campfire
supported
Coupa
supported
DualEntry
supported
ERPNext
supported
FreeAgent
supported
FreshBooks
supported
Moneybird
supported
Microsoft Dynamics 365 Business Central
supported
Oracle Netsuite
supported
Odoo
supported
QuickBooks
supported
Rillet
supported
Sage Business Cloud Accounting
supported
Sage Intacct
supported
SAP S/4HANA
supported
Wave
supported
Xero
supported
Zoho Books
supported
idstring

The unique identifier for the contact

namestring

The name of the contact

typestring

The type of the contact - vendor or customer.

created_atstring · date-time

This represents the date when the invoice was created

18 supported
Bexio
supported
Brightpearl
supported
Campfire
supported
Coupa
supported
DualEntry
supported
ERPNext
supported
FreeAgent
supported
FreshBooks
supported
Moneybird
supported
Oracle Netsuite
supported
Odoo
supported
QuickBooks
supported
Sage Business Cloud Accounting
supported
Sage Intacct
supported
SAP S/4HANA
supported
Wave
supported
Xero
supported
Zoho Books
supported
currencystring

The currency of the invoice

20 supported
Bexio
supported
Brightpearl
supported
Campfire
supported
Coupa
supported
DualEntry
supported
ERPNext
supported
FreeAgent
supported
FreshBooks
supported
Moneybird
supported
Microsoft Dynamics 365 Business Central
supported
Oracle Netsuite
supported
Odoo
supported
QuickBooks
supported
Rillet
supported
Sage Business Cloud Accounting
supported
Sage Intacct
supported
SAP S/4HANA
supported
Wave
supported
Xero
supported
Zoho Books
supported
due_datestring · date-time

The due date of the invoice

19 supported
Bexio
supported
Brightpearl
supported
Campfire
supported
Coupa
supported
DualEntry
supported
ERPNext
supported
FreeAgent
supported
FreshBooks
supported
Moneybird
supported
Microsoft Dynamics 365 Business Central
supported
Oracle Netsuite
supported
Odoo
supported
QuickBooks
supported
Rillet
supported
Sage Business Cloud Accounting
supported
Sage Intacct
supported
Wave
supported
Xero
supported
Zoho Books
supported
exchange_ratenumber

The exchange rate of the invoice

16 supported
Bexio
supported
Brightpearl
supported
Campfire
supported
Coupa
supported
DualEntry
supported
ERPNext
supported
FreeAgent
supported
Moneybird
supported
Oracle Netsuite
supported
Rillet
supported
Sage Business Cloud Accounting
supported
Sage Intacct
supported
SAP S/4HANA
supported
Wave
supported
Xero
supported
Zoho Books
supported
issue_datestring · date-time

The issue date of the invoice

19 supported
Bexio
supported
Brightpearl
supported
Campfire
supported
Coupa
supported
DualEntry
supported
ERPNext
supported
FreeAgent
supported
FreshBooks
supported
Moneybird
supported
Microsoft Dynamics 365 Business Central
supported
Oracle Netsuite
supported
Odoo
supported
Rillet
supported
Sage Business Cloud Accounting
supported
Sage Intacct
supported
SAP S/4HANA
supported
Wave
supported
Xero
supported
Zoho Books
supported
line_itemsobject[]

The line items of the invoice

18 supported
Bexio
supported
Brightpearl
supported
Campfire
supported
Coupa
supported
DualEntry
supported
ERPNext
supported
FreeAgent
supported
FreshBooks
supported
Moneybird
supported
Microsoft Dynamics 365 Business Central
supported
Oracle Netsuite
supported
QuickBooks
supported
Rillet
supported
Sage Intacct
supported
SAP S/4HANA
supported
Wave
supported
Xero
supported
Zoho Books
supported
accountstring

The ID of the account

currencystring

The currency of the line item

descriptionstring

The description of the line item

exchange_ratenumber

The exchange rate of the currency for the line item

idstring

The unique identifier for line item

itemstring

The ID of the item

namestring

The name of the line item

quantitynumber

The quantity of the line item

tax_ratestring

The ID of the tax rate

total_line_amountnumber

The total line amount of the line item.

tracking_categoriesobject[]

Tracking categories of the line item

3 properties
idstring

The ID of the tracking category

namestring

The name of the tracking category

optionstring

The option of the tracking category

typestring

The type of the line item

unit_pricenumber

The unit price of the line item

memostring

The private note of the invoice

16 supported
Bexio
supported
Brightpearl
supported
Campfire
supported
Coupa
supported
DualEntry
supported
ERPNext
supported
FreeAgent
supported
FreshBooks
supported
Moneybird
supported
Oracle Netsuite
supported
Odoo
supported
QuickBooks
supported
Rillet
supported
Sage Business Cloud Accounting
supported
SAP S/4HANA
supported
Wave
supported
numberstring

The number of the invoice

20 supported
Bexio
supported
Brightpearl
supported
Campfire
supported
Coupa
supported
DualEntry
supported
ERPNext
supported
FreeAgent
supported
FreshBooks
supported
Moneybird
supported
Microsoft Dynamics 365 Business Central
supported
Oracle Netsuite
supported
Odoo
supported
QuickBooks
supported
Rillet
supported
Sage Business Cloud Accounting
supported
Sage Intacct
supported
SAP S/4HANA
supported
Wave
supported
Xero
supported
Zoho Books
supported
paid_on_datestring · date-time

The paid on date of the invoice

5 supported
Campfire
supported
Coupa
supported
FreeAgent
supported
FreshBooks
supported
Moneybird
supported
paymentsstring[]

List of payment IDs associated with the invoice

References: Payments → id
5 supported
Campfire
supported
Coupa
supported
ERPNext
supported
Moneybird
supported
Xero
supported
remote_dataRecord<string, any>

Raw data returned from the remote API call.

statusstring

The status of the invoice

Possible values:
draftsubmitteddeletedauthorisedpaidvoided
19 supported
Bexio
supported
Brightpearl
supported
Campfire
supported
Coupa
supported
DualEntry
supported
ERPNext
supported
FreeAgent
supported
FreshBooks
supported
Moneybird
supported
Microsoft Dynamics 365 Business Central
supported
Oracle Netsuite
supported
Odoo
supported
Rillet
supported
Sage Business Cloud Accounting
supported
Sage Intacct
supported
SAP S/4HANA
supported
Wave
supported
Xero
supported
Zoho Books
supported
sub_totalnumber

The sub total of the invoice

20 supported
Bexio
supported
Brightpearl
supported
Campfire
supported
Coupa
supported
DualEntry
supported
ERPNext
supported
FreeAgent
supported
FreshBooks
supported
Moneybird
supported
Microsoft Dynamics 365 Business Central
supported
Oracle Netsuite
supported
Odoo
supported
QuickBooks
supported
Rillet
supported
Sage Business Cloud Accounting
supported
Sage Intacct
supported
SAP S/4HANA
supported
Wave
supported
Xero
supported
Zoho Books
supported
total_discountnumber

The total discount of the invoice

10 supported
Campfire
supported
Coupa
supported
DualEntry
supported
ERPNext
supported
FreeAgent
supported
FreshBooks
supported
Moneybird
supported
Microsoft Dynamics 365 Business Central
supported
Sage Business Cloud Accounting
supported
Zoho Books
supported
total_tax_amountnumber

The total tax amount of the invoice

16 supported
Bexio
supported
Brightpearl
supported
Campfire
supported
Coupa
supported
DualEntry
supported
ERPNext
supported
FreshBooks
supported
Moneybird
supported
Microsoft Dynamics 365 Business Central
supported
Odoo
supported
QuickBooks
supported
Sage Intacct
supported
SAP S/4HANA
supported
Wave
supported
Xero
supported
Zoho Books
supported
tracking_categoriesobject[]

Tracking categories of the invoices

6 supported
Campfire
supported
DualEntry
supported
Moneybird
supported
Microsoft Dynamics 365 Business Central
supported
SAP S/4HANA
supported
Xero
supported
idstring

The ID of the tracking category

namestring

The name of the tracking category

optionstring

The option of the tracking category

typestring

The type of the invoice

Possible values:
billinvoice
20 supported
Bexio
supported
Brightpearl
supported
Campfire
supported
Coupa
supported
DualEntry
supported
ERPNext
supported
FreeAgent
supported
FreshBooks
supported
Moneybird
supported
Microsoft Dynamics 365 Business Central
supported
Oracle Netsuite
supported
Odoo
supported
QuickBooks
supported
Rillet
supported
Sage Business Cloud Accounting
supported
Sage Intacct
supported
SAP S/4HANA
supported
Wave
supported
Xero
supported
Zoho Books
supported
updated_atstring · date-time

This represents the date when the invoice was updated

20 supported
Bexio
supported
Brightpearl
supported
Campfire
supported
Coupa
supported
DualEntry
supported
ERPNext
supported
FreeAgent
supported
FreshBooks
supported
Moneybird
supported
Microsoft Dynamics 365 Business Central
supported
Oracle Netsuite
supported
Odoo
supported
QuickBooks
supported
Rillet
supported
Sage Business Cloud Accounting
supported
Sage Intacct
supported
SAP S/4HANA
supported
Wave
supported
Xero
supported
Zoho Books
supported
urlsobject[]

The invoice URLs

2 supported
Wave
supported
Xero
supported
typestring

Type of invoice URL

urlstring

The invoice URL

truto unified accounting invoices '<resource_id>' \
  -m get \
  -a '<integrated_account_id>' \
  -o json
import Truto from '@truto/truto-ts-sdk';

const truto = new Truto({
  token: '<your_api_token>',
});

const result = await truto.unifiedApi.get(
  'accounting',
  'invoices',
  '<resource_id>',
  { integrated_account_id: '<integrated_account_id>' }
);

console.log(result);
import asyncio
from truto_python_sdk import TrutoApi

truto_api = TrutoApi(token="<your_api_token>")

async def main():
    result = await truto_api.unified_api.get(
        "accounting",
        "invoices",
        "<resource_id>",
        {"integrated_account_id": "<integrated_account_id>"}
    )
    print(result)

asyncio.run(main())
curl -X GET 'https://api.truto.one/unified/accounting/invoices/{id}?integrated_account_id=<integrated_account_id>' \
  -H 'Authorization: Bearer <your_api_token>' \
  -H 'Content-Type: application/json'
const integratedAccountId = '<integrated_account_id>';

const response = await fetch(`https://api.truto.one/unified/accounting/invoices/{id}?integrated_account_id=${integratedAccountId}`, {
  method: 'GET',
  headers: {
    'Authorization': 'Bearer <your_api_token>',
    'Content-Type': 'application/json',
  },
});

const data = await response.json();
console.log(data);
import requests

url = "https://api.truto.one/unified/accounting/invoices/{id}"
headers = {
    "Authorization": "Bearer <your_api_token>",
    "Content-Type": "application/json",
}
params = {
    "integrated_account_id": "<integrated_account_id>"
}

response = requests.get(url, headers=headers, params=params)
print(response.json())