Skip to main content
POST
LemonSqueezy Checkout

Body

application/json
checkout_data
object
required

Checkout data similar to the data specified in LemonSqueezy documentation (https://docs.lemonsqueezy.com/api/checkouts/create-checkout). This parameter is required if variants is not provided.

Example:
pd_identifier
string
required

Unique identifier associated with a particular deal.

Example:

"your_pd_identifier"

store_id
string
required

The unique identifier for the product on LemonSqueezy.

Example:

"your_store_id"

ip_address
string | null

Pass the IP address. This is necessary only if you are implementing this in server-side.

Example:

"192.168.1.1"

success_url
string<uri> | null

The URL to which a user will be redirected after a successful purchase.

Example:

"https://your-success-url.com"

Response

Successfully created Checkout session

id
string

The unique identifier for the LemonSqueezy Checkout Session.

Example:

"994d1506-2baf-41b3-80a9-7c0ac9c9e368"

url
string<uri>

The URL to redirect the user to for completing the checkout process.

Example:

"https://paritydeals.lemonsqueezy.com/checkout/custom/994d1506-2baf-41b3-80a9-7c0ac9c9e368?signature=f43c0fd78c65f2649bbccf28b544b141353b528e05d30743def15c917ea5ecf0"