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",
"store_id": "your_store_id",
"ip_address": "192.168.1.1",
"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"
}This endpoint creates a checkout session with LemonSqueezy and applies geographic pricing and discounts as configured in ParityDeals. It returns a checkout URL.
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",
"store_id": "your_store_id",
"ip_address": "192.168.1.1",
"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"
}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.
{}
Unique identifier associated with a particular deal.
"your_pd_identifier"
The unique identifier for the product on LemonSqueezy.
"your_store_id"
Pass the IP address. This is necessary only if you are implementing this in server-side.
"192.168.1.1"
The URL to which a user will be redirected after a successful purchase.
"https://your-success-url.com"
Successfully created Checkout session
The unique identifier for the LemonSqueezy Checkout Session.
"994d1506-2baf-41b3-80a9-7c0ac9c9e368"
The URL to redirect the user to for completing the checkout process.
"https://paritydeals.lemonsqueezy.com/checkout/custom/994d1506-2baf-41b3-80a9-7c0ac9c9e368?signature=f43c0fd78c65f2649bbccf28b544b141353b528e05d30743def15c917ea5ecf0"