POST /api/public/v1/billing/getPaymentDetails
Changed onThe 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 URLhttps://app.fortuneos.ai
- Authnone declared
Request body
Response
OK
Changes
- info
added the required property
invoices/items/planto the response with the status
- info
- info
endpoint added
- info