POST /api/public/v1/billing/getPaymentDetails

Changed on

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

  • Base URL
    https://app.fortuneos.ai
  • Auth
    none declared

Request body

object required
organizationId, string required

Response

OK

object required
paymentMethod, object nullable required
invoices, object[] required
nextCursor, string nullable required

Changes