Skip to content

Money invoiced and received in a period

GET
/invoices/summary
Code sample: Shell / cURL
curl --request GET \
--url 'https://example.com/api/v1/invoices/summary?status=DRAFT' \
--header 'Authorization: Bearer <token>'

How much was invoiced and how much was received between from and to, optionally narrowed by a search (q), a status or one company (clientId). invoiced sums the issued invoices (SENT, VIEWED, PAID or OVERDUE; never DRAFT or CANCELLED) whose issue date falls in the period. received sums the money received in the period, by payment date, whatever the invoice’s issue date, so the two do not reconcile with each other. q, status and clientId narrow both figures to the invoices they match, as they narrow the invoice list; without them received counts every invoice. With neither from nor to the period is the current month in the workspace timezone. Amounts are per currency, workspace currency first, never summed across currencies, and cover only the companies the caller’s invoice scope reaches. GET /invoices with the same q, status, clientId, from and to lists the invoices behind invoiced. Requires the invoices.view permission.

q

Free-text search, ignoring case, over the invoice number or external number, subject and bill-to name, the company’s name, legal name or order prefix, and the first and last name of the company’s users (every word must appear in one of them, in any order). A person’s name returns every invoice of each company they are a user of, plus any invoice addressed to them.

string
<= 200 characters

Free-text search, ignoring case, over the invoice number or external number, subject and bill-to name, the company’s name, legal name or order prefix, and the first and last name of the company’s users (every word must appear in one of them, in any order). A person’s name returns every invoice of each company they are a user of, plus any invoice addressed to them.

status

Filter by invoice status. UNPAID and ISSUED are filters, not statuses. UNPAID keeps SENT, VIEWED and OVERDUE, including invoices paid in part, and leaves out DRAFT, PAID and CANCELLED: the invoices the Outstanding figure counts, overdue ones included. ISSUED keeps SENT, VIEWED, PAID and OVERDUE, the invoices the Invoiced figure counts.

string
Allowed values: DRAFT SENT VIEWED OVERDUE PAID CANCELLED UNPAID ISSUED

Filter by invoice status. UNPAID and ISSUED are filters, not statuses. UNPAID keeps SENT, VIEWED and OVERDUE, including invoices paid in part, and leaves out DRAFT, PAID and CANCELLED: the invoices the Outstanding figure counts, overdue ones included. ISSUED keeps SENT, VIEWED, PAID and OVERDUE, the invoices the Invoiced figure counts.

clientId
string
from

Inclusive start of an issue-date range (YYYY-MM-DD), resolved against the workspace’s own calendar day.

string format: date
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$/

Inclusive start of an issue-date range (YYYY-MM-DD), resolved against the workspace’s own calendar day.

to

Inclusive end of an issue-date range (YYYY-MM-DD), resolved against the workspace’s own calendar day.

string format: date
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$/

Inclusive end of an issue-date range (YYYY-MM-DD), resolved against the workspace’s own calendar day.

The period covered, and the money invoiced and received in it per currency.

Media typeapplication/json
object
data
required

The money invoiced and the money received in a period, per currency.

object
invoiced
required
Array<object>
object
amount
required
number
currency
required

ISO 4217 code.

string
period
required
object
from
required

First day covered; null when open.

Any of:
string format: date
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$/
to
required

Last day covered; null when open.

Any of:
string format: date
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$/
received
required
Array<object>
object
amount
required
number
currency
required

ISO 4217 code.

string

Example generated

{
"data": {
"invoiced": [
{
"amount": 1,
"currency": "example"
}
],
"period": {
"from": "2026-04-15",
"to": "2026-04-15"
},
"received": [
{
"amount": 1,
"currency": "example"
}
]
}
}

Validation error. Parse failures include field paths and expectations.

Media typeapplication/json

Validation error with safe field paths and expected values; submitted values are never returned.

object
error
required
object
code
required

Stable machine-readable error code.

string
issues
Array<object>
object
expected
required
string
message
required
string
path
required
Array<string | number>
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}

Unauthorized.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}

Forbidden.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}

Rate limit exceeded. Wait for Retry-After before retrying.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}
RateLimit-Limit
string
/^\d+$/

Maximum requests in the current quota window.

RateLimit-Policy
string

Quota policy in requests and window seconds, for example 60;w=60.

RateLimit-Remaining
string
/^\d+$/

Requests left in this quota window (zero when blocked).

RateLimit-Reset
string
/^\d+$/

Seconds until the current quota window resets, when available from the rate-limit store.

Retry-After
string
/^\d+$/

Seconds until another request may be attempted.