Skip to content

GET /v1/organizations/{organizationId}/billing/invoices

Returns one page of the selected organization's invoices, newest first: every invoice issued to it with a nonzero total or actual charges, including charges fully paid by credit; drafts and empty invoices are excluded. Each names what it charged the organization's own subscription and each project. Pass subject to list only the invoices that charge the organization itself or one of its projects, and nextCursor as cursor to read further. Listing invoices does not make a payment or modify a subscription.

photon.organizations.billing.listInvoices(input: ListInvoicesInput, options?: RequestOptions): Promise<ListInvoicesOutput>
import { Photon } from "@photon-ai/api";

const photon = new Photon({
  headers: { Authorization: `Bearer ${process.env.PHOTON_API_TOKEN}` },
});
const result = await photon.organizations.billing.listInvoices({
  path: {
    organizationId: "organizationId",
  },
});
{
  "invoices": [
    {
      "amountDueCents": -9007199254740991,
      "currency": "string",
      "invoiceId": "string",
      "issuedAt": null,
      "kind": "subscription",
      "number": "string",
      "pageUrl": null,
      "paymentActionRequired": true,
      "paymentDueAt": null,
      "paymentOverdue": true,
      "paymentProcessing": true,
      "paymentStatus": "pending",
      "pdfUrl": null,
      "status": "draft",
      "subjects": [
        {
          "projectId": "string",
          "type": "project"
        }
      ],
      "totalCents": -9007199254740991
    }
  ],
  "nextCursor": null
}

Parameters

Photon-VersionPhotonVersion

Selects the API contract date. Without it, the request is served as 2026-07-01.

organizationIdstringrequired
cursorstring

nextCursor of the page before; omitted for the first page.

limitinteger

At most this many invoices, 1 to 100. 20 when omitted.

subjectListInvoicesSubjectParam

Only the invoices that charge this subject a nonzero amount: organization for the organization's own charges, such as SSO and 10DLC, or one of its projects by id. Omitted, every invoice.

Returns

200 One page of the organization's invoices, newest first, excluding drafts and empty invoices; includes charges fully paid by credit. ListInvoicesResponse

Headers: ETag, Photon-Version. The raw response carries these headers; see Raw responses.

invoicesarray of Invoicerequired
nextCursorstring | nullrequired

Pass as cursor to read the next page. Null on the last page.

304 Not Modified. Sent only when If-None-Match matches the ETag of an earlier 200 response for the same representation; no body. No body.

Headers: ETag, Photon-Version. The raw response carries these headers; see Raw responses.