For developers
Stripe
for atoms.
One SDK. Five languages. Quote a job before checkout. Book on confirmation. Stream signed events to your bus or your customer's inbox.
import { LinkClient } from "@l1fe/link";
const link = new LinkClient({
apiKey: process.env.LINK_API_KEY!,
tenant: "your-platform-id",
});
const quote = await link.quoteJob({
pickups: [/* … */],
dropoff: /* … */,
cargo: [{ cargoClass: "food-box", temperatureClass: "frozen", weightLb: 14 }],
service: "scheduled-market-day",
});
if (!quote.feasible) throw new Error(quote.reason);
const job = await link.bookJob({ quoteId: quote.id });
for await (const evt of link.streamJobEvents(job.jobId)) {