Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.unprice.dev/llms.txt

Use this file to discover all available pages before exploring further.

const { result, error } = await unprice.invoices.get({
  invoiceId: "inv_1234567890"
});

if (error) {
  console.error(error.message);
  return;
}

console.log(result);
{
  "invoice": {
    "id": "inv_1234567890",
    "status": "paid",
    "total_amount": 100000000
  },
  "lines": []
}

Request

invoiceId
string
required
The invoice ID to fetch.