Browse the docs ▾

Invoices API

Read invoices, their lines and payments. GET /api/v1/invoices, GET /api/v1/invoices/{id}.

Generated from the app's endpoint listView as Markdown

2 operations. Each needs an API key with the permission shown; see API keys and permissions.

OperationPermission
GET /api/v1/invoicespay:read
GET /api/v1/invoices/{id}pay:read

#GET /api/v1/invoices

Invoices, newest first. items is what the client is billed, in dollars; lines and totals are the hours calculation an invoice started from. periodStart and periodEnd are null on an invoice not made from hours.

  • Permission: pay:read
  • Returns: a page of records: { data, hasMore, nextCursor }, status 200

Query parameters (all optional)

NameDescription
statusdraft, sent, partial (part paid), paid or void. Overdue is not a status: see the overdue field.
facilityIdOnly this site.
limitRows per page, 1 to 200. Default 50.
cursorThe nextCursor value from the previous page.

Fields in each record: id, number, facilityId, source, periodStart, periodEnd, status, overdue, issueDate, dueDate, terms, items, subtotal, discount, taxLabel, taxRate, tax, total, amountPaid, balanceDue, lines, totals, createdAt, sentAt, paidAt, voidedAt

curl "https://app.staffedly.com/api/v1/invoices?limit=50" \
  -H "Authorization: Bearer $STAFFEDLY_API_KEY"

#GET /api/v1/invoices/{id}

One invoice.

  • Permission: pay:read
  • Returns: one record: { data }, status 200

Path

NameDescription
idThe record's id.

Fields in each record: id, number, facilityId, source, periodStart, periodEnd, status, overdue, issueDate, dueDate, terms, items, subtotal, discount, taxLabel, taxRate, tax, total, amountPaid, balanceDue, lines, totals, createdAt, sentAt, paidAt, voidedAt

curl "https://app.staffedly.com/api/v1/invoices/<id>" \
  -H "Authorization: Bearer $STAFFEDLY_API_KEY"

Something missing or wrong on this page? Email [email protected] or book a free call; our team sets up every new customer at no charge.