Soporte/Revenue Attribution
Revenue Attribution

Attribute revenue with LemonSqueezy Checkout API

Before proceeding, confirm that you have linked your LemonSqueezy account.

Flowsery routes LemonSqueezy events by reading meta.custom_data.website_id.

JavaScript
const { data } = await createCheckout({
  storeId,
  variantId,
  checkoutData: {
    custom: {
      website_id: 'flid_******',
    },
  },
});

Supported LemonSqueezy webhook events

  • order_created
  • subscription_payment_success
  • order_refunded
  • order_updated

If you use Flowsery's LemonSqueezy connection flow, keep the storeId configured because webhook auto-registration depends on it.