Skip to main content
POST
/
lemon-squeezy-checkout
/
LemonSqueezy Checkout
curl --request POST \
  --url https://api.paritydeals.com/api/v1/lemon-squeezy-checkout/ \
  --header 'Content-Type: application/json' \
  --data '{
  "checkout_data": {},
  "pd_identifier": "your_pd_identifier",
  "ip_address": "192.168.1.1",
  "store_id": "your_store_id",
  "success_url": "https://your-success-url.com"
}'
{
  "id": "994d1506-2baf-41b3-80a9-7c0ac9c9e368",
  "url": "https://paritydeals.lemonsqueezy.com/checkout/custom/994d1506-2baf-41b3-80a9-7c0ac9c9e368?signature=f43c0fd78c65f2649bbccf28b544b141353b528e05d30743def15c917ea5ecf0"
}

Body

application/json
  • Option 1
  • Option 2
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"

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:
{}
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"

I