Other Documents
Same patterns as invoices. Create, finalize, render, send.
Delivery Notes
Shipping or packing slips. Set hide_prices: true for a packing list without pricing.
// title: Create delivery note
const _deliveryNote = await sdk.deliveryNotes.create({
customer: { name: "Warehouse Inc.", email: "warehouse@example.com" },
items: [
{ name: "Product A", quantity: 10, price: 50 },
{ name: "Product B", quantity: 5, price: 200 },
],
hide_prices: true,
});Estimates
Quotes or proposals before invoicing.
// title: Create estimate
const _estimate = await sdk.estimates.create({
customer: { name: "Potential Client", email: "client@example.com" },
items: [
{ name: "Web Design", quantity: 1, price: 3000 },
{ name: "Development", quantity: 40, price: 100 },
],
valid_until: "2024-12-31",
});Credit Notes
Refunds or corrections.
// title: Create credit note
const _creditNote = await sdk.creditNotes.create({
customer: { name: "Acme Corp" },
items: [{ name: "Refund - Duplicate charge", quantity: 1, price: 100 }],
related_document_id: invoice.id,
});Advance Invoices
Deposits or prepayments.
// title: Create advance invoice
const _advance = await sdk.advanceInvoices.create({
customer: { name: "Acme Corp", email: "billing@acme.com" },
items: [{ name: "Project deposit (50%)", quantity: 1, price: 5000 }],
});