网页
综合
更新时间 2026-11-13 17:17:02
Integrate Polar | Polar
自动蜘蛛
polar.sh
正文约 2408 字
Introducing our new Usage Billing Engine
From one prompt to production billing
Your agent reads and acts on your billing.
Typed clients for TypeScript and Python.
Webhooks on localhost, events on demand.
Polar as a tool your agent can call
A remote MCP server with OAuth, so there are no keys to paste. Three meta-tools keep the context small, so the agent only loads the operations it needs.
Your browser opens to sign in and authorize. No API key to copy into the agent.
The agent describes what it wants to do and gets back the operations that fit.
It loads the exact inputs for the best matches, and nothing else.
It runs the operation with validated arguments and reads the result.
Products, customers, subscriptions, orders, benefits, refunds and metrics.
Typed clients underneath
Start with an adapter for your framework. Underneath sit the typed TypeScript and Python clients for everything else.
One file in your framework gives you a checkout route, a customer portal and verified webhooks. Pick yours to see the checkout handler.
app/checkout/route.ts
The adapters are built on these. Reach for them when you need the rest of the API.
For Node, Bun, Deno and the browser. The import path pins your API version and everything after that is autocomplete.
npm install @polar-sh/sdk
Sync and async clients for Django, Flask and FastAPI, typed end to end.
pip install polar-sdk
The whole API from the terminal
Sign in, tunnel webhooks, fire events and call any endpoint without leaving the terminal. Every command can speak JSON.
Auth, webhook and the API commands print JSON on request, so a coding agent can drive the CLI.
webhook trigger --list
The full webhook catalog with descriptions. Pick one interactively or pass it by name.
Change any field in the payload and get the same IDs on every run.
Customers, products, subscriptions, orders, meters and more, generated from the OpenAPI spec.
Everything the dashboard can do
Every resource the dashboard touches, behind versioned endpoints and organization tokens.
Open a hosted checkout for any product.
Profiles, external ids and full customer state.
Upgrades, downgrades and cancellations, prorated.
Ingest usage the moment it happens.
Aggregate events into billable numbers.
Every invoice, receipt and refund.
Revenue, usage and cost over time.
Signed deliveries for everything that happens.
Integrate in an afternoon
© Polar Software, Inc. 2026
本页为82搜索生成的网页快照,内容来自站内索引;演示数据的原文链接仅作示例。