Customer access
email instead of client_id; it must resolve exactly one
current client in the selected team. The team must have its customer portal configured.
The challenge lasts five days. Exchanging it creates the existing three-day customer
session, which can read payments, receipts and invoices, update client data, download
files, render authorized PDFs and validate renewal. The renewal endpoint returns
claims; it does not mint a replacement JWT.
Invoice access
UsePOST /teams/{id}/invoice-portal-operations with the saved UUID, explicit
livemode, scopes: ["invoices:read"] and optional expiresIn, such as "1h".
The default is one hour and the maximum is 24 hours. This family can list invoices
and download their stored files. Original source branding remains part of its scope.
Review, read back and revoke
- Read
data.browser_handoff.urlfrom the preparation response and open it in your signed-in account browser. Opening performs a read. - Reauthenticate and review the exact team, client, mode, lifetime and effects. Current MFA is required when enrolled. Explicit approval issues access once.
- Use the private page’s copy or open action. The credential remains in memory and appears only in the first successful private response.
- After a timeout or lost response, use
GET /teams/{id}/customer-portal-operations/{operationId}or the equivalentinvoice-portal-operationsroute. Readback never replays access. Do not automatically retry issuance or replace it with a fresh UUID. DELETEat the same operation path cancels an untouched preparation; it cannot revoke completed access. Use private reviewed revocation for a managed session. A reviewed replacement uses a new saved UUID andreplaces_operation_idand revokes the previous generation before issuance. A failed replacement can leave the previous access revoked. Historical unversioned sessions are outside this guarantee.
prepare_customer_portal_access, get_customer_portal_operation,
cancel_customer_portal_preparation, prepare_invoice_portal_access,
get_invoice_portal_operation and cancel_invoice_portal_preparation.
CLI provides portal-access customer|invoices prepare|get|cancel. Both expose safe
metadata only. CLI’s --expected-mode live|test is an assertion; the server checks
actual authority independently. Private review and issuance are browser actions.
The old raw API issuers return 410; the old MCP issuer is unregistered and the
CLI alias explains this migration without issuing an HTTP request.