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

Latest commit

 

History

History

discount

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

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