This block + 6,000 more — yours with Pro

Features Live Code Playground Showcase

76/170
DocsAll

Live playground

Write the code, see the result, ship it

Every example on our docs runs end to end, so you can inspect the output before you paste anything into your project.

create-invoice.ts
Ready
1import { createClient } from "@acme/sdk"
2 
3const client = createClient({
4 apiKey: process.env.ACME_KEY!
5})
6 
7const invoice = await client.invoices.create({
8 customerId: "cus_8f2A",
9 amount: 4900,
10 currency: "usd"
11})
mainUTF-8 · LF · TypeScript
Previewlocalhost:3000

Invoice #INV-8421

$49.00 USD

Paid
Auto-charge on renewal