Skip to main content

Endpoint

Overview

Redirects the authenticated user to their Polar customer portal where they can manage their subscription, update payment methods, and view invoices.

Request

Requires authentication via Bearer token. User must have a DROP service entitlement with a Polar customer ID.

Response

307 redirect to Polar customer portal URL.

Implementation Details

Code Reference

Status Codes

Temporary Redirect
Redirect to Polar portal
Bad Request
No Polar customer ID found or customer not found in Polar
Unauthorized
Missing or invalid authentication token
Internal Server Error
Failed to verify customer with Polar

Example Request

Portal Features

The Polar customer portal allows users to:
  • View subscription details
  • Update payment methods
  • View invoices and billing history
  • Cancel subscriptions
  • Update billing information

Environment Variables

string
required
Polar API access token
string
default:"production"
Polar server: "sandbox" or "production". Affects portal URL.

Notes

  • Only works for DROP service
  • Requires existing Polar customer ID
  • Customer is verified with Polar before redirect
  • Portal URL depends on POLAR_SERVER environment variable