Pages / Landing pages
Developer API
An API product page: install in one line, a real request and response, the client libraries, and the changelog.
Halden API
Your jobs and invoices, over one API.
Create jobs, log hours and send invoices from your own tools. Every endpoint returns plain JSON.
Install with
npm install @halden/sdkpnpm add @halden/sdkyarn add @halden/sdk
Two calls to your first invoice
POST
/v2/invoicesCreate an invoice from a signed-off job sheet.Request
Authorization: Bearer $HALDEN_KEY
Content-Type: application/json
{
"job": "JS-2207",
"due_days": 30,
"send": true
}
Response
{
"id": "inv_0418",
"number": "INV-0418",
"status": "sent",
"total": 2140.00,
"currency": "USD",
"pdf": "/v2/invoices/inv_0418.pdf"
}
{
"error": "job_not_signed_off",
"message": "JS-2207 has no sign-off yet",
"field": "job"
}
201 Created · 184 ms422 Unprocessable · 61 ms
Client libraries and changes
import { Halden } from "@halden/sdk";
// Reads HALDEN_KEY from your environment
const halden = new Halden();
const job = await halden.jobs.get("JS-2207");
const invoice = await job.invoice();
await invoice.send({ to: job.client });
from halden import Halden
# Reads HALDEN_KEY from your environment
halden = Halden()
job = halden.jobs.get("JS-2207")
invoice = job.invoice()
invoice.send(to=job.client)
# The same call, straight to the API
curl api.halden.example/v2/invoices \
-H "Authorization: Bearer $HALDEN_KEY" \
-d job=JS-2207 \
-d send=true
$ npx tsx send-invoice.ts ✓ Drafted INV-0418 from 22.5 h and 3 receipts ✓ Sent to Reyes Framing · $2,140.00 $
-
v2.6.0Latest
Supplier price lists
- NewImport a supplier CSV and pick prices straight into a quote.
- ChangedQuotes flag any price older than 30 days.
-
v2.5.2
Rounding fixes
- FixedInvoices over 40 lines no longer round the total twice.
- FixedOffline photos upload in the order they were taken.
-
v2.5.0
Crew timesheets
- NewA weekly timesheet per crew, approved in one tap.