{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/attestwire-com/json-schema/attestwire-com-portal-endpoint-schema.json",
  "title": "PortalEndpoint",
  "description": "The ROUTE that mints a billing-portal link — not a link. Always `/v1/billing/portal`. Call it with the customer's own key and it returns a one-time URL where they change plan, update the card, download invoices and cancel.\n\nIt is an endpoint rather than a URL because Paddle has no static portal page: each link is a session bound to one customer and it expires, so there is nothing durable to publish here, and minting one on every `/v1/usage` poll would spend a live API call on a link nobody opens.\n\nPresent on `/v1/usage` only for keys that actually have a subscription — a free key has nothing to manage, and pointing one at a route that will answer 409 is worse than saying nothing. Absent, never null.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/attestwire-com-billing-api-openapi.yml#/components/schemas/PortalEndpoint",
  "type": "string"
}