Link Variables

Placeholders for inserting order data in various places.


When adding “Product Links” or using the “Button link” fields of your product settings, there is a range of placeholders which can be used to insert certain order data into the redirect URL (e.g. as query string parameters).

These placeholders are available in the Product Links, Confirmation modal button, and Receipt button.

Lemon Squeezy: link variables

Currently supported variables:

license_key

The complete license key.

order_id

The unique order ID associated with the transaction.

order_identifier

The unique order identifier in UUID format linked to the transaction.

email

The customer’s email address.

name

The full name of the customer.

total

The formatted total amount of the order.

You can include multiple variables like this:

https://example.com/welcome?order_id=[order_id]&email=[email]&total=[total]

These placeholders will be replaced with the real order values when a customer purchases your product.

You can then use this data when they click through to your URL. This can be used to improve the onboarding experience for new customers by displaying their order data on your site, or automatically processing their license key.


Was this page helpful?