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.
purchase-orders:readGrant 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
- 200
- 401
- 403
- 404
- 429
OK
Response Headers
Unauthenticated — the bearer token is missing, revoked, expired, or malformed. Never retry automatically; fix the credential. See the Errors guide.
Forbidden — the token lacks a required scope, the endpoint is not available to API tokens, or the user behind the token lacks the permission. A human must adjust the token scopes or user permissions; do not retry.
Not Found
Response Headers
Rate limited — platform limit is 1,000 requests/min; individual tokens may carry lower limits. Honor the Retry-After header before retrying. See the Rate Limits guide.