Lemon Squeezy icon

Lemon Squeezy

Interact with Lemon Squeezy API

Usage Record → Get Many

AI-generated

Summary

Retrieves usage records from Lemon Squeezy, optionally filtering them by subscription item ID. Choose whether to fetch every matching record or cap the results, and whether to return simplified attributes or the raw JSON:API format.

Inputs

  • Return All — When enabled, fetches all matching records; otherwise, returns up to the Limit (default 50, range 1–100).
  • Filters → Subscription Item ID — Restricts results to records for the specified subscription item.
  • Simplify — Defaults to enabled: flattens JSON:API attributes into each record. Disable for the raw JSON:API structure.
  • Retry Options — Configures retries for failed API requests: Max Retries defaults to 3 (0 disables retries; range 0–10), and Initial Delay defaults to 1000 ms (range 100–30000 ms, doubling on each retry).

Output shape

A list of usage record items.

Records are simplified by default; disabling Simplify returns the raw JSON:API structure. Fetching all records may paginate through multiple API pages.

Links

Discussion