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();