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) · 605 Bytes

README.md

File metadata and controls

28 lines (20 loc) · 605 Bytes

🧾 Order

Docs

import { LemonsqueezyClient } from "lemonsqueezy.ts";

const client = new LemonsqueezyClient("YOUR_API_KEY");

const order = await client.retrieveOrder({
  id: "...",
});

const orders = await client.listAllOrders();
import { retrieveOrder, listAllOrders } from "lemonsqueezy.ts/order";

const order = await retrieveOrder({
  apiKey: "YOUR_API_KEY",
  id: "...",
});

const orders = await listAllOrders({
  apiKey: "YOUR_API_KEY",
});