Products & services
Reusable invoice lines.
Paths are relative to https://evenbooks.org/api/v1. How keys, errors, paging and versions work is in the guide; the whole reference is also an OpenAPI 3.1 document.
Administrator key marks endpoints that need a key with the admin role, Write access those a read-only key can’t call, and Idempotent those that accept an idempotency key.
List products and services
/itemsEvery item, by name. Inactive items are left out unless includeInactive is set.
Parameters
includeInactiveboolean · QueryBooleanquery
Response 200
array of ItemDto
Errors 400 · 401 · 403 · 404 · 409 · 429
Add a product or service
/itemsA reusable invoice line: a name, a price and the income category it is recorded in (incomeAccountId, an income account), with optional default sales tax rates.
Request body
CreateItemInput
namestringrequireddescriptionstring or nullkindstringOne of:
serviceproductunitPricestring · NonNegativeDecimalStringincomeAccountIdstring · UuidrequireddefaultTaxRateIdsarray of string · Uuid
Response 200
ItemDto (fields under Schemas)
Errors 400 · 401 · 403 · 404 · 409 · 429
Change a product or service
/items/{id}Omitted fields stay as they are; isActive: false hides the item from the list and pickers. Send version from your last read (409 version_conflict if it changed). Invoices that already use it keep their lines.
Parameters
idstring (uuid)path · required
Request body
UpdateItemInput
versionintegerrequirednamestringdescriptionstring or nullkindstringOne of:
serviceproductunitPricestring · NonNegativeDecimalStringincomeAccountIdstring · UuiddefaultTaxRateIdsarray of string · UuidisActiveboolean
Response 200
ItemDto (fields under Schemas)
Errors 400 · 401 · 403 · 404 · 409 · 429
Schemas
The types these endpoints take or return, by name. Type names above link here.
ItemDto
idstringnamestringdescriptionstring or nullkindstringOne of:
serviceproductunitPricestring · NonNegativeDecimalStringincomeAccountIdstringdefaultTaxRateIdsarray of stringisActivebooleanversioninteger
NonNegativeDecimalString
string
QueryBoolean
boolean
Uuid
string (uuid)