Skip to main content
GET
/
v1
/
invoices
Find invoices
curl --request GET \
  --url https://api.infinity.swiss/v1/invoices \
  --header 'x-api-token: <api-key>'
{
  "invoices": [
    {
      "id": "<string>",
      "isDraft": true,
      "openingDate": "2023-12-25",
      "dueDate": "2023-12-25",
      "totalAmount": 123,
      "totalVatDebt": 123,
      "isPaid": true,
      "isAnnulled": true,
      "isQrInvoice": true,
      "totalAmountPaid": 123,
      "totalRestAmount": 123,
      "title": "<string>",
      "recipient": "<string>",
      "originalCurrency": "<string>"
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs.infinity.swiss/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

x-api-token
string
header
required

API token for authentication. Obtain from your Infinity account settings.

Query Parameters

limit
number
default:30

Pagination limit. Defaults to 30, maximum 200.

Required range: x <= 200
skip
number

Pagination offset for the results.

isDraft
boolean

When set, filters to only draft or only posted invoices.

isPaid
boolean

When set, filters to only paid or only unpaid invoices.

isAnnulled
boolean

When set, filters to only annulled or only non-annulled invoices.

recipient
string

Filters invoices addressed to the contact with the given id.

fromDate
string<date>

Inclusive lower bound on opening date (YYYY-MM-DD).

toDate
string<date>

Inclusive upper bound on opening date (YYYY-MM-DD).

Response

Successfully returns the list of invoices.

invoices
InvoicePreview · object[]