Skip to main content
GET
List deleted elements

Authorizations

Authorization
string
header
required

Query Parameters

s
string

Filter deleted elements with a JSON-encoded condition passed as a string in the URL — ?s={"field":{"$operator":value}} — and combine conditions with $and / $or. An $or written inside a field ({"field":{"$or":…}}) takes one plain operator: several operators, a list or a nested $or return 400 — combine conditions with a top-level $or instead.

Operators — $eq equals · $ne not equals · $gt $gte $lt $lte range · $between [min, max] · $cont $starts $ends text match · $in $notin value list · $isnull $notnull null check. Append L for case-insensitive text match ($contL, $startsL, …). Shorthand: {"field": value} is the same as {"field": {"$eq": value}}. Dates accept YYYY-MM-DD or full ISO 8601 (2026-06-01T00:00:00.000Z); filtering an unlisted field returns 400.

Filterable fields

id only takes hyphenated UUIDs (8-4-4-4-12, as the API returns them) or null: any other value returns 400. It only accepts $eq, $ne, $in, $notin, $isnull and $notnull — the range ($gt $gte $lt $lte $between) and text-matching operators return 400 even on a valid UUID. A list of values is only accepted under $in and $notin, and never nested. deletedElementId is compared as plain text, so a malformed value matches nothing rather than returning 400.

type values: payback, payment, invoice_credit_note_link, address, client, contact, invoice, credit_note. Any other value returns 400. An enum only accepts $eq, $ne, $in, $notin, $isnull and $notnull — the range ($gt $gte $lt $lte $between) and text-matching operators return 400 even on a valid value. A null operand is read as $isnull, and a list of values is only accepted under $in and $notin.

Examples

Example:

"{\"type\":{\"$in\":[\"invoice\",\"credit_note\"]}}"

page
integer
default:1

Number of the page, from 1.

Required range: x >= 1
limit
integer
default:200

Number of items per page, from 1 to 200.

Required range: 1 <= x <= 200
sort
string[]

Sort keys: id · createdAt · updatedAt. Default: updatedAt,DESC.

Pattern: ^(id|createdAt|updatedAt),(ASC|DESC)$

Response

200 - application/json

One page of deleted elements.

count
integer
required

Number of items in data.

total
integer
required

Number of items that match the filter, on all pages.

page
integer
required

Number of the page.

pageCount
integer
required

Number of pages.

data
object[]
required

The deleted elements of the page.