General
Core API
- Checkout
- Checkout Links
- Custom Checkout Fields
- Customers
- Subscriptions
- Orders
- Discounts
- Refunds
- Products
- Events
- Meters
- Benefits
- Customer Meters
- License Keys
- Files
- Organizations
- Metrics
Customer Portal API
- GETGet Customer
- GETGet Organization
- Sessions
- Subscriptions
- Orders
- License Keys
- File Downloads
Webhook Events
- Customer Events
- Billing Events
- Organization Events
Integrations
- OpenID Connect
- OAuth 2.0 Clients
- Webhooks
License Keys
Deactivate License Key
Deactivate a license key instance.
POST
/
v1
/
customer-portal
/
license-keys
/
deactivate
Copy
Ask AI
from polar_sdk import Polar
with Polar() as polar:
polar.customer_portal.license_keys.deactivate(request={
"key": "<key>",
"organization_id": "<value>",
"activation_id": "<value>",
})
# Use the SDK ...
Copy
Ask AI
This response does not have an example.
Body
application/json
Response
204
License key activation deactivated.
Was this page helpful?
Copy
Ask AI
from polar_sdk import Polar
with Polar() as polar:
polar.customer_portal.license_keys.deactivate(request={
"key": "<key>",
"organization_id": "<value>",
"activation_id": "<value>",
})
# Use the SDK ...
Copy
Ask AI
This response does not have an example.
Assistant
Responses are generated using AI and may contain mistakes.