In Lemon Squeezy, a file represents a digital good that can be downloaded by a customer after the product has been purchased.
A file belongs to a Variant.
The file object
The ID of the variant this file belongs to.
The unique identifier (UUID) for this file.
The name of the file (e.g.
The file extension of the file (e.g.
The unique URL to download the file. Note: for security reasons, download URLs are signed, expire after 1 hour and are rate-limited to 10 downloads per day per IP address.
A positive integer in bytes representing the size of the file.
The human-readable size of the file (e.g.
The software version of this file (if one exists, e.g.
An integer representing the order of this file when displayed.
The status of the file. Either
An ISO-8601 formatted date-time string indicating when the object was created.
An ISO-8601 formatted date-time string indicating when the object was last updated.
Retrieve a file
Retrieves the file with the given ID.
Returns a file object.
List all files
Returns a paginated list of files.
Only return files belonging to the variant with this ID.
Returns a paginated list of file objects ordered by