v356

latestOpenAPI 3.0.3raw.githubusercontent.com2026-08-031733562.1 MB
Invoices

List all Invoices

List all Invoices

get/invoices

Query parameters

beforestring

Pagination cursor. To page through items, omit this parameter to retrieve the first page, and then successively use the value you get from pagination.after or pagination.before to retrieve each page.

afterstring

Pagination cursor. To page through items, omit this parameter to retrieve the first page, and then successively use the value you get from pagination.after or pagination.before to retrieve each page.

limitinteger

Maximum number of objects to return per-page. Must be between 1 and 100 (inclusive).

sortOrder'ASC' | 'DESC'

Sort order. Default: DESC (descending, most often used for reverse chronological sorting).

sortBystring

Sort column. Default: creation time. Options: CUSTOMER_LEGAL_COMPANY_NAME, GROSS_TOTAL, ACCOUNTING_DATE, DUE_DATE, ISSUE_DATE

invoiceStatusstring

Filter by invoice status. Options: IN_PROGRESS, DRAFT, FINAL, SENT, VOIDED

invoicePaymentStatusstring

Filter by payment status. Options: UNPAID, PARTIALLY_PAID, PAID, UNCOLLECTIBLE

customerIdstring

Filter by customer id.

billingScheduleIdstring

Filter by billing schedule id.

dueBeforestring

Filter by due date before. Format: yyyy-MM-dd

dueAfterstring

Filter by due date after. Format: yyyy-MM-dd

sentBeforestring

Filter by sent date before. Format: yyyy-MM-dd

sentAfterstring

Filter by sent date after. Format: yyyy-MM-dd

invoiceBeforestring

Filter by invoice date before. Format: yyyy-MM-dd

invoiceAfterstring

Filter by invoice date after. Format: yyyy-MM-dd

excludeZeroQuantityboolean

Exclude invoices with zero quantity.

invoiceCurrencystring

Get invoices for a specific currency (provide a comma-separated list)

searchstring

Search invoices by invoice number (partial, case-insensitive match)

invoiceNumberstring

Filter by invoice number

netTotalnumber

Filter by net total amount

excludeInvoiceStatusstring

Exclude invoices with these statuses. Options: IN_PROGRESS, DRAFT, FINAL, SENT, VOIDED

excludeInvoicePaymentStatusstring

Exclude invoices with these payment statuses. Options: UNPAID, PARTIALLY_PAID, PAID, UNCOLLECTIBLE

excludeCustomerIdstring

Exclude invoices for these customer ids.

excludeBillingScheduleIdstring

Exclude invoices for these billing schedule ids.

excludeInvoiceCurrencystring

Exclude invoices for these currencies (provide a comma-separated list)

excludeInvoiceNumberstring

Exclude invoices with these invoice numbers

excludeNetTotalnumber

Exclude invoices with this exact net total amount

excludeSearchstring

Exclude invoices whose invoice number contains this (partial, case-insensitive match)

Headers

Authorizationstring required

Your API credentials. Eg. Basic {credentials}.

sequence-version'2024-07-30'

Use this header to select an API version

Response

OK

Example response

{
  "items": [
    {
      "id": "ba37a392-7054-4dae-ab37-6fee9e23fe06",
      "sequenceAccountId": "af9b5988-1d7b-45f6-a188-326df5e59b24",
      "status": "DRAFT",
      "currency": "GBP",
      "invoiceNumber": "INV2",
      "dueDate": "2022-11-05",
      "purchaseOrderNumber": "PO123",
      "reference": "ref",
      "customerEmails": [
        "customer@example.com"
      ],
      "customerLegalCompanyName": "Facebook",
      "customerBillingAddress": {
        "line1": "Flat 1",
        "line2": "15 Yemen Road",
        "town": "Yemen",
        "state": "CA",
        "postcode": "YE1 2YE",
        "country": "YE"
      },
      "customerShippingAddress": {
        "line1": "742 Evergreen Terrace",
        "line2": "",
        "town": "Springfield",
        "state": "CA",
        "postcode": "12345",
        "country": "US"
      },
      "memo": "Thanks",
      "paymentOptions": [
        "BANK_TRANSFER"
      ],
      "billingPeriod": {
        "start": "2022-10-01",
        "endInclusive": "2022-10-30"
      },
      "customerId": "b3c0cf23-6717-4cdc-b190-acf8aa6ccd8a",
      "totalTax": "2",
      "netTotal": "12",
      "grossTotal": "10",
      "metadata": [
        {
          "key": "example-label",
          "value": "label-value"
        }
      ],
      "paymentStatus": "UNPAID",
      "createdAt": "2022-10-30T00:00:00Z",
      "creditNoteIds": [
        "941272d1-f840-4e16-b698-0cd455c81e0e"
      ],
      "linkedServices": [
        {
          "externalId": "ID",
          "externalService": "Xero",
          "syncTime": "2022-06-28T16:47:00Z",
          "externalUrl": "https://invoicing.xero.com/view/85e52542-3e54-4f0d-872b-33bba11a0504"
        }
      ],
      "merchantDetails": {
        "address": {
          "line1": "Flat 1",
          "line2": "123 Fake Street",
          "town": "New York",
          "state": "NY",
          "postcode": "AB1 2EF",
          "country": "US"
        },
        "phoneNumber": "0800001066",
        "email": "donald@example.com",
        "taxId": "TAX",
        "iban": "GB33BUKB20201555555555",
        "ukAccountDetails": {
          "sortCode": "123456",
          "accountNumber": "12345678"
        },
        "usAchDetails": {
          "accountNumber": "12345678",
          "accountName": "John Doe",
          "bankName": "Chase",
          "bankRoutingNumber": "123456789"
        },
        "usWireDetails": {
          "accountNumber": "12345678",
          "accountName": "John Doe",
          "bankName": "Chase",
          "bankRoutingNumber": "123456789",
          "swiftCode": "CHASUS33",
          "bankAddress": {
            "line1": "JP Morgan Chase",
            "town": "New York City",
            "state": "NY",
            "postcode": "10017",
            "country": "US"
          }
        },
        "swedishBankgiroDestination": {
          "bankgiroNumber": "123-4567",
          "accountName": "The Merchant"
        },
        "legalCompanyName": "The Merchant",
        "customFields": [],
        "includeBeneficiaryAddressInPaymentDetails": false
      },
      "accountingDate": "2022-10-05",
      "customerTaxStatus": "TAXED",
      "renderSettings": {
        "paymentLinkDisplay": "HIDE_PAYMENT_LINK"
      },
      "isCustomerArchived": false,
      "updatedAt": "2022-10-30T00:00:00Z"
    }
  ],
  "pagination": {
    "after": "MDE4NDUyNjYtNmQ2NC03N2M4LTlhZGYtNDQ4N2Q5NGQxNDU3",
    "before": "MDE4NDQyMWUtYTljYy03MTFiLWFmOTMtYmYwNTExZDRkODMz",
    "totalResultSize": 10
  }
}