Lemon Squeezy icon

Lemon Squeezy

Interact with Lemon Squeezy API

Subscription Invoice → Refund

AI-generated

Summary

Refunds a specified amount or the full amount of a subscription invoice in Lemon Squeezy.

Inputs

  • Subscription Invoice ID (required) — The ID of the subscription invoice to refund (e.g., "123456").
  • Refund Amount — The amount to refund in cents. Specify 0 to refund the full invoice amount. Must not exceed the original invoice amount.
  • Simplify — If true, flattens the JSON:API response attributes to the top level for easier use; otherwise returns the raw JSON:API response.
  • Retry Options — Settings to configure retry behavior for failed API requests, including maximum retry attempts and initial delay in milliseconds.

Output shape

A single subscription invoice refund record.

The returned data represents the refund details of the subscription invoice. By default, the JSON:API response is simplified by flattening attributes to the top level unless simplification is disabled. Errors include handling for invalid refund amount (exceeding original invoice) and API request failures with retry logic as configured.

Links

Discussion