Skip to main content

Get Bill Lines Availability

GET 

/api/bills/:bill/lines-availability

List every line on a bill with how much of each line has already been tracked as cost entries and how much is still available, plus bill-level totals.

Required scope: purchase-orders:read

Grant this scope to your token under Settings → Developer → Personal Access Tokens.

Response fields:

  • bill_total, total_tracked, total_available - Bill-level totals; total_available is the bill total minus the sum tracked across all lines.
  • lines[] - Per line: line_total, already_tracked, available_for_tracking, and tracking_percentage (0 for zero-total lines).

Use this before calling POST /api/bills/:bill/cost-entries with scope: "lines" to choose valid allocation amounts.

Authentication: Requires Bearer token. Scope: purchase-orders (read/write).

Request

Responses

OK

Response Headers
    Content-Type