Skip to main content

Get Bill Line Availability

GET 

/api/bills/:bill/lines/:billLine/availability

Get the tracking availability for a single bill line: its total, how much has already been tracked as cost entries, and how much is still available.

Required scope: purchase-orders:read

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

Response fields:

  • line_total - The line's extended total.
  • already_tracked - Amount of this line already covered by cost entries.
  • available_for_tracking - Remainder that can still be tracked.
  • tracking_percentage - Tracked amount as a percentage of the line total (0 for zero-total lines).

Returns 404 when the line exists but does not belong to the given bill.

Use this before calling POST /api/bills/:bill/cost-entries with scope: "lines" to validate a single allocation amount.

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

Request

Responses

OK

Response Headers
    Content-Type