v1

latestOpenAPI 3.0.3Proprietaryraw.githubusercontent.com2026-03-067260437.0 KB
Invoices

List income invoices

Retrieve a paginated list of income invoices with powerful filtering capabilities.

gigstack Connect: Access other teams' invoices using the team parameter.

Filtering Options:

  • Filter by creation date using comparison operators
  • Filter by metadata fields using dot or underscore notation (e.g., metadata.order_id or metadata_order_id)
get/invoices/income

Query parameters

teamstring

gigstack Connect: Target team ID for multi-team access.

Requires gigstack Connect enabled on your team and shared billing account.

Example: ?team=team_xyz789

limitinteger

Maximum number of items to return (default 50, max 100)

nextstring nullable

Pagination cursor for the next page of results

order_by'name' | 'timestamp'

Field name to order results by

sort'asc' | 'desc'

Sort direction for list queries

Sort direction for the results

integer
OR
string date

Filter results created on or after this timestamp. Accepts Unix timestamp in seconds (e.g., 1733011200), milliseconds (e.g., 1733011200000), or ISO 8601 date string (e.g., 2024-12-01).

integer
OR
string date

Filter results created on or before this timestamp. Accepts Unix timestamp in seconds (e.g., 1735689599), milliseconds (e.g., 1735689599000), or ISO 8601 date string (e.g., 2024-12-31).

metadata.{key}string

Filter by any metadata field using dot notation (e.g., metadata.order_id=ORD-123) or underscore notation (e.g., metadata_order_id=ORD-123). Both formats are supported and equivalent. Uses Typesense search for efficient querying without requiring Firestore indexes.

pageinteger

Page number for pagination when using metadata filters (default 1). Only applies when filtering by metadata fields.

Response

Invoices retrieved successfully

messagestring required
dataobject[] required
nextstring nullable

Cursor for next page

has_moreboolean required
total_resultsnumber required

Example response

{
  "message": "Items retrieved successfully",
  "next": "eyJjcmVhdGVkX2F0IjoxNjc3NjUxMjM0fQ==",
  "has_more": true,
  "total_results": 150
}