Lemon Squeezy icon

Lemon Squeezy

Interact with Lemon Squeezy API

License Key → Bulk Deactivate

AI-generated

Summary

Deactivate multiple license key instances in bulk by providing an array of license key and instance ID pairs. Optionally simplify the output to a flattened JSON format, and configure retry behavior for handling failed API requests.

Inputs

  • License Key Instances (required) — A JSON array of objects each containing a license_key and instance_id to specify which instances to deactivate in bulk.
  • Simplify — Boolean toggle to simplify the API response by flattening JSON:API attributes to the top level. If disabled, returns raw JSON:API formatted data with type, attributes, and relationships.
  • Retry Options — Collection of settings to control retry behavior on failed API requests, including maximum retry attempts and initial delay before retrying (which doubles on each retry).

Output shape

a list of license key instance objects reflecting the results of the bulk deactivation operation

The output corresponds to the Lemon Squeezy API response for bulk deactivation; if simplification is enabled, the JSON:API format is flattened for easier consumption. Retry options apply to the API request and influence error handling.

Links

Discussion