Lemon Squeezy icon

Lemon Squeezy

Interact with Lemon Squeezy API

Subscription Item → Get Current Usage

AI-generated

Summary

Retrieve the current usage details for a specific subscription item by its ID from the Lemon Squeezy API.

Inputs

  • Subscription Item ID (required) — The ID of the subscription item to retrieve usage information for.
  • Simplify — Option to simplify the response by flattening JSON:API attributes to the top level. Disable to receive the raw JSON:API formatted response.
  • Retry Options — Configuration for retry behavior on failed API requests, including max retry attempts and initial delay for exponential backoff.

Output shape

A single JSON object containing the current usage data for the specified subscription item.

The output format depends on the 'Simplify' parameter: if true (default), the response attributes are flattened to the top level; if false, the raw JSON:API response is returned including type, attributes, and relationships. Errors during API calls honor the retry options if configured.

Examples

Example 1: Retrieve usage for subscription item with ID 'abc123' and simplified output.

Set Subscription Item ID to 'abc123', Simplify to true (default). The node returns current usage data with attributes flattened for easy access.

Links

Discussion