Developers
Using the API

Terminology

Public names for businesses, documents, invoices, accounts, and periods.

Use these meanings when you map NoCFO data. The names are the public contract. They are not the database tables.

Business and access

TermMeaning
BusinessOne company the user can access. Address it with slug from list businesses.
slugThe tenant key in /v1/business/{business_slug}/ and /v1/invoicing/{business_slug}/. Store it exactly. A slug from another user does not grant access.
idA numeric id of a resource inside a business. It is not a substitute for slug.

Bookkeeping and invoices

TermMeaning
DocumentA bookkeeping document under /v1/business/{business_slug}/document/. Entries hang off a document. This is not a sales invoice.
EntryA line returned by the entries list for one document.
HeaderA journal header under /v1/business/{business_slug}/header/. A header is not a document and not an invoice.
AccountA chart-of-accounts row under /v1/business/{business_slug}/account/. Filter by type only with values the account list documents.
Sales invoiceAn invoice you issue, under /v1/invoicing/{business_slug}/invoice/.
Purchase invoiceA supplier invoice, under /v1/invoicing/{business_slug}/purchase_invoice/. Listing it is not the same call as listing sales invoices.
ContactA customer or supplier under /v1/business/{business_slug}/contacts/.
ProductA product under /v1/invoicing/{business_slug}/product/.
FileAn uploaded file under /v1/business/{business_slug}/files/. Upload goes to POST .../file_upload/.
TagA label under /v1/business/{business_slug}/tags/.

VAT and periods

TermMeaning
VAT codeA code from GET /v1/business/{business_slug}/constants/vat_codes/. Do not hardcode a code in the client.
VAT rateA rate from GET /v1/business/{business_slug}/constants/vat_rates/. The operation is dated. Read the reference before you cache it.
Accounting periodA period under /v1/business/{business_slug}/period/.
VAT periodA period under /v1/business/{business_slug}/vat_period/. It is not an accounting period.

Store every id exactly as returned. Do not increment it, and do not reuse an id from another business.

On this page