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.
Authorization
apiKey Workspace API key created in Workspace settings → API keys. Scopes on the key bound what it can read and write.
In: header
Response Body
application/json
application/json
application/json
curl -X GET "https://example.com/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" } ]}{ "_tag": "ApiNotFound", "error": "not_found", "message": "That item does not exist, or this key cannot see it.", "status": 404}{ "_tag": "ApiNotFound", "error": "not_found", "message": "That item does not exist, or this key cannot see it.", "status": 404}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.