Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Latest commit

 

History

History
28 lines (20 loc) · 644 Bytes

README.md

File metadata and controls

28 lines (20 loc) · 644 Bytes

🔖 Discount

Docs

import { LemonsqueezyClient } from "lemonsqueezy.ts";

const client = new LemonsqueezyClient("YOUR_API_KEY");

const discount = await client.retrieveDiscount({
  apiKey: "YOUR_API_KEY",
  id: "...",
});

const discounts = await client.listAllDiscounts({
  apiKey: "YOUR_API_KEY",
});
import { retrieveDiscount, listAllDiscounts } from "lemonsqueezy.ts/discount";

const discount = await retrieveDiscount({
  id: "...",
});

const discounts = await listAllDiscounts();