List Polar subscriptions not linked to a workspace
Returns the Polar subscriptions that exist upstream but are not yet attached to a Snoze workspace, joined with the plan each product maps to. Used for the migration flow. Platform admins only.
apiKeyAuthorizationBearer <snoze_sk_…>Workspace API key created in Workspace settings → API keys. Scopes on the key bound what it can read and write.
Success
application/json- response
data*array<>curl -X GET 'https://api.snoze.dev/v1/admin/billing/migratable'{ "data": [ { "subscriptionId": "string", "customerId": "string", "customerEmail": "string", "productId": "string", "productName": "string", "plan": "free", "status": "string", "amountCents": 0, "currency": "string", "currentPeriodEnd": "string" } ]}Launch a pricing experiment
Creates the variant price rows for a pricing experiment, provisions their Polar products, and returns the experiment summary. Platform admins only; an invalid variant set is rejected as a validation error.
Attach a Polar subscription to a workspace
Links an existing Polar subscription to a workspace, deriving the plan from the subscription's product and recording the supplied `reason`. Platform admins only; a `subscriptionId` that is not present upstream is reported as not found.