---
title: "POST /api/public/v1/billing/getPaymentDetails"
method: POST
path: "/api/public/v1/billing/getPaymentDetails"
---

# POST /api/public/v1/billing/getPaymentDetails

`POST /api/public/v1/billing/getPaymentDetails`

## Request

- Base URL: `https://app.fortuneos.ai`
- URL: `https://app.fortuneos.ai/api/public/v1/billing/getPaymentDetails`
- Auth: none declared

The business's payment card (brand, last four digits and expiry only) and the first page of its issued invoices, newest first, read from Stripe. Drafts are left out; zero-total invoices, such as a trial's opening invoice, are listed. `interval` is null when the invoice's price is not in the business's catalog. `nextCursor` is null when Stripe holds no more invoices, else the `cursor` for billing.listInvoices. Empty for a business with no billing account. Refused with PRECONDITION_FAILED as `billingNotConfigured` when billing is not configured. For a classified test organization's Stripe Sandbox records: refused with FORBIDDEN as `sandboxNotAllowed` unless the caller is a verified Fortune OS employee, and with PRECONDITION_FAILED as `billingNotConfigured` while the Sandbox is not configured; the experiment is not asked.

## Request body

- object
  - `organizationId` string, required

## Response `200`

OK

- object
  - `paymentMethod` object, nullable, required
    - `brand` string, required
    - `last4` string, required
    - `expMonth` number, required
    - `expYear` number, required
  - `invoices` object[], required
    - `id` string, required
    - `number` string, nullable, required
    - `status` 'open' | 'paid' | 'uncollectible' | 'void', required
    - `createdAt` string, date-time, required
    - `total` number, required
    - `currency` string, required
    - `interval` 'month' | 'year', nullable, required
    - `plan` object, nullable, required
      - `planCode` string, required
      - `planVersion` number, required
    - `hostedInvoiceUrl` string, nullable, required
  - `nextCursor` string, nullable, required

## Changes

- **2026-11-08** `c4943e787c2c`: 1 info
  - added the required property `invoices/items/plan` to the response with the `200` status
- **2026-10-24** `08398fc8834c`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/fortis/apis/fortune-os-api/changes/api/public/v1/billing/getPaymentDetails/post.md)

---

[API](https://skmtc.dev/fortis/apis/fortune-os-api.md) - [All operations](https://skmtc.dev/fortis/apis/fortune-os-api/llms.txt) - [OpenAPI document](https://skmtc.dev/fortis/apis/fortune-os-api/revisions/522f3cea550d?raw)
