Polar MCP by usefulapi

v1.41.1
io.usefulapi/polar-sh Checked 3 days ago Published 2 days ago

Products, customers, orders, subscriptions, benefits, revenue metrics and refunds.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

polar_list_organizations List organisations

List the organisations the token can act for. Start here — most other tools take an organization_id. Polar: GET /v1/organizations/.

ParameterTypeDescription
limitintegerPage size, 1-100.
pageinteger1-based page number.

polar_list_products List products

List products, optionally filtered by archived state, recurrence or a text query. Polar: GET /v1/products/.

ParameterTypeDescription
is_archivedbooleanOnly archived, or only live, products.
is_recurringbooleanOnly subscriptions, or only one-off products.
limitintegerPage size, 1-100.
organization_idstringRestrict to this organisation id. Needed when the token spans several organisations.
pageinteger1-based page number.
querystringFree-text search over product names.

polar_get_product Get one product

Fetch a single product with its prices and attached benefits. Polar: GET /v1/products/{id}.

ParameterTypeDescription
product_id *stringThe product's id.

polar_list_customers List customers

List customers, optionally by email or a text query. Polar: GET /v1/customers/.

ParameterTypeDescription
emailstringOnly the customer with this email.
limitintegerPage size, 1-100.
organization_idstringRestrict to this organisation id. Needed when the token spans several organisations.
pageinteger1-based page number.
querystringFree-text search over name and email.

polar_get_customer Get one customer

Fetch a single customer by Polar id. Polar: GET /v1/customers/{id}.

ParameterTypeDescription
customer_id *stringThe customer's Polar id.

polar_get_customer_state Get a customer's full state

Fetch everything about one customer in a single call — active subscriptions, granted benefits and entitlements. The best answer to 'what does this customer currently have?'. Polar: GET /v1/customers/{id}/state.

ParameterTypeDescription
customer_id *stringThe customer's Polar id.

polar_get_customer_state_by_external_id Get a customer's state by your own id

Same as polar_get_customer_state, but looked up by YOUR external id rather than Polar's — the usual path when you hold your own user id. Polar: GET /v1/customers/external/{external_id}/state.

ParameterTypeDescription
external_id *stringYour own id for this customer.

polar_list_orders List orders

List orders, filtered by customer, product, subscription, status or a date window. Polar: GET /v1/orders/.

ParameterTypeDescription
created_afterstringISO-8601 lower bound on creation time.
created_beforestringISO-8601 upper bound on creation time.
customer_idstringOnly this customer's orders.
limitintegerPage size, 1-100.
organization_idstringRestrict to this organisation id. Needed when the token spans several organisations.
pageinteger1-based page number.
product_idstringOnly orders for this product.
statusstringOnly orders in this state, e.g. paid, pending, refunded.
subscription_idstringOnly orders from this subscription.

polar_get_order Get one order

Fetch a single order with its line items, discount and tax. Polar: GET /v1/orders/{id}.

ParameterTypeDescription
order_id *stringThe order's id.

polar_list_subscriptions List subscriptions

List subscriptions, filtered by customer, product, status, active state or cancellation window. Polar: GET /v1/subscriptions/.

ParameterTypeDescription
activebooleanOnly active, or only inactive, subscriptions.
cancel_at_period_endbooleanOnly those already set to cancel — your churn pipeline.
customer_idstringOnly this customer's subscriptions.
limitintegerPage size, 1-100.
organization_idstringRestrict to this organisation id. Needed when the token spans several organisations.
pageinteger1-based page number.
product_idstringOnly subscriptions to this product.
statusstringOnly subscriptions in this state.

polar_get_subscription Get one subscription

Fetch a single subscription with its product, price and period. Polar: GET /v1/subscriptions/{id}.

ParameterTypeDescription
subscription_id *stringThe subscription's id.

polar_get_metrics Get revenue metrics

Fetch revenue and subscription metrics over a date range, bucketed by interval — orders, revenue, MRR, active subscriptions. Polar: GET /v1/metrics/.

ParameterTypeDescription
end_date *stringEnd of the window, YYYY-MM-DD.
interval *stringBucket size for the series.
start_date *stringStart of the window, YYYY-MM-DD.
customer_idstringOnly this customer's metrics.
organization_idstringRestrict to this organisation id. Needed when the token spans several organisations.
product_idstringOnly this product's metrics.

polar_list_benefits List benefits

List benefits — the things a product grants, such as licence keys, file downloads or Discord roles. Polar: GET /v1/benefits/.

ParameterTypeDescription
limitintegerPage size, 1-100.
organization_idstringRestrict to this organisation id. Needed when the token spans several organisations.
pageinteger1-based page number.
querystringFree-text search.
typestringOnly benefits of this type.

polar_list_benefit_grants List grants of a benefit

List who has been granted one benefit, and whether the grant is still active. Polar: GET /v1/benefits/{id}/grants.

ParameterTypeDescription
benefit_id *stringThe benefit's id.
limitintegerPage size, 1-100.
pageinteger1-based page number.

polar_list_discounts List discounts

List discount codes and their redemption limits. Polar: GET /v1/discounts/.

ParameterTypeDescription
limitintegerPage size, 1-100.
organization_idstringRestrict to this organisation id. Needed when the token spans several organisations.
pageinteger1-based page number.
querystringFree-text search over discount names and codes.

polar_list_refunds List refunds

List refunds, filtered by order, subscription, customer or success. Polar: GET /v1/refunds/.

ParameterTypeDescription
customer_idstringOnly this customer's refunds.
limitintegerPage size, 1-100.
order_idstringOnly refunds against this order.
organization_idstringRestrict to this organisation id. Needed when the token spans several organisations.
pageinteger1-based page number.
succeededbooleanOnly successful, or only failed, refunds.

polar_list_license_keys List licence keys

List issued licence keys and their status. Polar: GET /v1/license-keys/.

ParameterTypeDescription
benefit_idstringOnly keys from this benefit.
limitintegerPage size, 1-100.
organization_idstringRestrict to this organisation id. Needed when the token spans several organisations.
pageinteger1-based page number.
statusstringOnly keys in this state, e.g. granted, revoked, disabled.

polar_list_meters List usage meters

List the usage meters that aggregate events into billable quantities. Polar: GET /v1/meters/.

ParameterTypeDescription
limitintegerPage size, 1-100.
organization_idstringRestrict to this organisation id. Needed when the token spans several organisations.
pageinteger1-based page number.

polar_get_meter_quantities Get a meter's quantities

Fetch the aggregated quantities a meter has recorded over a window — what usage-based billing will charge for. Polar: GET /v1/meters/{id}/quantities.

ParameterTypeDescription
end_timestamp *stringISO-8601 end of the window.
interval *stringBucket size for the series.
meter_id *stringThe meter's id.
start_timestamp *stringISO-8601 start of the window.
customer_idstringOnly this customer's usage.

polar_list_events List usage events

List the raw usage events ingested for metering, filtered by customer, meter, name or time. Polar: GET /v1/events/.

ParameterTypeDescription
customer_idstringOnly this customer's events.
end_timestampstringISO-8601 upper bound.
limitintegerPage size, 1-100.
meter_idstringOnly events matching this meter.
namestringOnly events with this name.
organization_idstringRestrict to this organisation id. Needed when the token spans several organisations.
pageinteger1-based page number.
start_timestampstringISO-8601 lower bound.

polar_list_webhook_deliveries List webhook deliveries

List webhook delivery attempts with their HTTP results — the tool for 'why did my webhook not arrive?'. Polar: GET /v1/webhooks/deliveries.

ParameterTypeDescription
end_timestampstringISO-8601 upper bound.
endpoint_idstringOnly deliveries to this endpoint.
event_typestringOnly deliveries of this event type.
limitintegerPage size, 1-100.
pageinteger1-based page number.
start_timestampstringISO-8601 lower bound.
succeededbooleanOnly failures, or only successes.

polar_list_webhook_endpoints List webhook endpoints

List the configured webhook endpoints and their subscribed events. Polar: GET /v1/webhooks/endpoints.

ParameterTypeDescription
limitintegerPage size, 1-100.
organization_idstringRestrict to this organisation id. Needed when the token spans several organisations.
pageinteger1-based page number.

polar_redeliver_webhook_event Redeliver a webhook event

Queue one webhook event for redelivery after your endpoint recovered. Polar: POST /v1/webhooks/events/{id}/redeliver.

ParameterTypeDescription
event_id *stringThe webhook event to resend.

polar_create_refund Refund an order

Refund an order, in full or in part. This moves real money back to the customer. Polar: POST /v1/refunds/.

ParameterTypeDescription
order_id *stringThe order to refund.
reason *stringWhy the refund is being issued.
amountintegerAmount in the currency's minor unit (cents). Omit to refund the full order.
commentstringAn internal note about the refund.
revoke_benefitsbooleanAlso revoke the benefits the order granted. Defaults to false.

polar_cancel_subscription Cancel a subscription

Cancel a subscription at the end of its current period. The customer keeps access until then. Polar: PATCH /v1/subscriptions/{id}.

ParameterTypeDescription
subscription_id *stringThe subscription to cancel.
customer_cancellation_commentstringThe customer's own words.
customer_cancellation_reasonstringWhy the customer is leaving, for your churn reporting.