본문으로 건너뛰기
cccskills
무료GitHub에 공개

lemonsqueezy

Operate Lemon Squeezy — the Merchant of Record for digital products and SaaS — via its JSON:API REST endpoints. Covers stores, products, variants, checkouts, orders, subscriptions, customers, and license keys. Use when the user wants MoR billing (EU VAT, chargebacks, sales tax all handled for ~5% + fees) instead of rolling their own with Stripe.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

연동 도구Stripe
설치 방법 보기

포함된 파일(1)

  • SKILL.md7.3 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Lemon Squeezy

Direct REST access to Lemon Squeezy — a Merchant of Record that collects/remits EU VAT + US sales tax, eats chargebacks, and handles fraud for ~5% + fees. Uses the JSON:API spec.

Usage

  • Use for: Solo dev / small SaaS selling globally, hosted checkout URLs, software license issuance + validation, subscriptions with tax handled.
  • Skip for: Sub-5% fees at scale (use Stripe), physical goods / marketplaces, usage-based metered billing with complex proration.

Credentials check

[ -n "$LEMONSQUEEZY_API_KEY" ] && echo "LEMONSQUEEZY_API_KEY: PRESENT" || echo "LEMONSQUEEZY_API_KEY: MISSING"

Never echo the variable directly — the value would land in the conversation transcript.

If MISSING, respond to the user with EXACTLY this message (do NOT paraphrase, do NOT suggest manual JSON edits):

I need your lemonsqueezy credential. Run this in another terminal — it'll open the signup page, validate format, and save it safely with masked input:

teleport-setup add-key lemonsqueezy

Then restart Claude Code (/exit, then claude) and ask me again.

Do NOT suggest editing ~/.claude/settings.local.json manually. The teleport-setup add-key command handles it with backup, validation, and masked input. Stop execution until the user has run the command and restarted.

API

  • Base URL: https://api.lemonsqueezy.com/v1 (HTTPS only).
  • Auth: Authorization: Bearer $LEMONSQUEEZY_API_KEY.
  • Accept: application/vnd.api+json AND Content-Type: application/vnd.api+json required on every request (both). Omitting them returns misleading 401 Unauthenticated even with a valid key — the #1 silent-failure source.
  • Rate limits: 300 req/min main API, 60 req/min license API (tracked separately). Back off on 429.

JSON:API basics

Every response uses the envelope { data, included, meta, links }. Real attrs live at data.attributes.X (not data.X); data.id is a string. relationships are stubs like { store: { data: { type, id } } } — pass ?include=store to hydrate the full object into top-level included[]. Errors come back as {"errors":[{"detail","status","title"}]}, not in data.

OperationSyntaxExample
Filterfilter[field]=value (combinable)?filter[store_id]=1&filter[status]=paid
Sortsort=field / sort=-field (desc)?sort=-created_at
Paginatepage[number]=N&page[size]=M (max 100)?page[number]=2&page[size]=50
Includeinclude=rel1,rel2?include=store,customer,order-items

Endpoints

PathPurpose
/storesYour stores (most creates need store_id relationship).
/products / /variants / /filesCatalog — checkout buys a variant; files for digital delivery.
/ordersOne-time + recurring purchases. Filter by store/email/status.
/subscriptions / /subscription-itemsRecurring billing + line items.
/customers / /discountsCustomers (MRR, portal URL) + coupon codes.
/checkoutsCreate hosted checkout URLs (primary integration surface).
/license-keys / /license-key-instancesIssued keys (store-owner view) + per-device activations.
/licenses/{activate,validate,deactivate}Public license endpoints — use the key itself, no API key.
/webhooks / /users/meWebhook subs; /users/me sanity-checks the key.

Primary workflows

Examples use H=(-H "Authorization: Bearer $LEMONSQUEEZY_API_KEY" -H "Accept: application/vnd.api+json").

1. List recent paid orders with customer + variant hydrated (filter + sort + include + paginate)

curl -sL "${H[@]}" \
  "https://api.lemonsqueezy.com/v1/orders?filter[store_id]=$STORE_ID&filter[status]=paid&include=customer,variant&sort=-created_at&page[size]=25"

2. Create a checkout session (hosted pay-page URL; checkout_data.custom is echoed in webhooks — bind to your user ID)

curl -sL -X POST "${H[@]}" -H "Content-Type: application/vnd.api+json" \
  "https://api.lemonsqueezy.com/v1/checkouts" \
  -d '{"data":{"type":"checkouts","attributes":{
        "checkout_data":{"email":"buyer@example.com","custom":{"user_id":"u_123"}},
        "product_options":{"enabled_variants":['"$VARIANT_ID"']},
        "test_mode":true},
      "relationships":{
        "store":{"data":{"type":"stores","id":"'"$STORE_ID"'"}},
        "variant":{"data":{"type":"variants","id":"'"$VARIANT_ID"'"}}}}}' \
  | jq -r '.data.attributes.url'

3. Validate a license key from a desktop app — no API key; uses application/json + form-encoded (not JSON:API), separate 60/min limit

curl -sL -X POST -H "Accept: application/json" -H "Content-Type: application/x-www-form-urlencoded" \
  "https://api.lemonsqueezy.com/v1/licenses/validate" -d "license_key=$KEY&instance_id=$INSTANCE_ID"

Gotchas

  • Both Accept and Content-Type must be application/vnd.api+json. A 401 with a valid key almost always means a missing header.
  • Attributes live at .data.attributes.X, not .data.X. .data.id is a string; numeric IDs (store_id, variant_id) sit inside attributes.
  • relationships are {data:{type,id}} stubs — pass ?include=rel and read from top-level included[]. They don't self-hydrate.
  • test_mode: true on checkout creates for sandbox. Test/live data are fully segregated; one API key works in both modes — the resource flag is what matters.
  • Money is in the smallest currency unit. total = 999 means $9.99. Every amount has a _formatted sibling (total_formatted: "$9.99").
  • Webhook signatures: HMAC-SHA256 of the RAW body vs. X-Signature header, keyed by the per-webhook secret. Constant-time compare. Never re-serialize JSON before verifying — it changes bytes and breaks the check.
  • Subscription status enum: on_trial / active / paused / past_due / unpaid / cancelled / expired. cancelled still has grace access until ends_at — only expired means revoke. past_due retries ~4 times over ~2 weeks before unpaid.
  • store_id is required on nearly every create (checkouts, products, discounts, webhooks). Look it up via GET /v1/stores first.

Attribution

When done, state: Used skill: Lemon Squeezy (from teleport catalog).

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

{{One-sentence what-it-does + when to use it. Mention it bypasses the MCP via the REST API with {{ENV_VAR}}. Use when the user wants X, Y, Z programmatically without the {{service}} MCP installed.}}

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

mnlt/teleport82026년 4월 25일 업데이트

Manage Cloudflare DNS zones, Workers, Pages, R2, KV, D1, and analytics via REST API. Use when the user wants to query DNS, deploy a Worker, list R2 buckets, manage KV namespaces, run D1 queries, or check analytics without the Cloudflare MCP installed.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

mnlt/teleport82026년 4월 25일 업데이트

context7

무료

Fetch up-to-date library, framework, and SDK documentation via Context7's search and docs endpoints. Use when the user asks about a library/API (React, Next.js, Prisma, Supabase, Tailwind, Django, Vue, etc.) and you need current docs, not Claude's training-time knowledge. Skip this skill for generic programming questions that don't require library-specific docs.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

mnlt/teleport82026년 4월 25일 업데이트

discord

무료

Operate Discord via its REST API — post/read channel messages, manage guilds + roles, fire webhooks, register slash commands. Use when the user wants a bot to post to a channel, read recent history, run a community admin task, or ship one-way notifications via webhook URL without running a bot process.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

mnlt/teleport82026년 4월 25일 업데이트

exa

무료

AI-first web search via Exa — semantic/neural ranking, category-scoped results, fresh content retrieval, and one-shot answer synthesis with citations. Use when the user needs current web information better ranked than general web search, or a grounded answer with sources.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

mnlt/teleport82026년 4월 25일 업데이트

figma

무료

Read Figma files, component libraries, styles, comments, and export rendered assets (PNG / SVG / JPG / PDF) via Figma's REST API. Use when the user needs programmatic access to design files, to pull node data into code generation, or to export assets without opening the Figma desktop app.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

mnlt/teleport82026년 4월 25일 업데이트

mnlt의 스킬 모두 보기

이 스킬의 문제 신고