Invoices
Get Invoice Contract Line
GET
Get Invoice Contract Line
Get Invoice Contract Line
Returns theCoworkerContract record linked to a specific invoice line. This endpoint is used to enrich invoice lines that originate from a plan/contract charge, providing full contract details (plan name, dates, pricing, status) alongside the invoice.
Authentication
This endpoint requires an authenticated customer session.Path Parameters
number
required
The unique identifier of the parent invoice.
string
required
The
UniqueId of the contract associated with the invoice line. Available on the invoice line object.Query Parameters
string
Comma-separated list of field paths to include in the response. When provided, only the
specified fields are returned — useful for reducing payload size. Supports nested paths
using dot notation. Example:
_shape=Contract.Tariff.Name,Contract.Price,Contract.Active.Response
Returns aCoworkerContract object.
number
Unique identifier of the contract.
string
Globally unique identifier of the contract.
number
ID of the plan associated with this contract.
string
Display name of the plan.
string
ISO 8601 date when the contract started.
string
ISO 8601 date of the next renewal.
number
Current price of the contract.
string
Pre-formatted price string (e.g.
"$99.00/mo").boolean
Whether the contract is currently active.
boolean
Whether the contract has been cancelled.
boolean
Whether the contract is currently in a paused state.
number
Day of the month on which the contract is billed.
string
ISO 4217 currency code for the contract.
Example Response
Usage in Portal
Used to render contract/plan details within invoice line rows in the basket summary and invoice views.- File:
src/components/Basket/invoiceLines/PlanInvoiceLineRow.tsx
Typical integration pattern
Related Endpoints
GET /api/public/billing/invoices/{invoiceId}– Get full invoice detailsGET /api/public/billing/coworkerContracts/{contractId}– Get contract details directly
Error Responses
error
The current user is not authenticated or does not have access to this invoice.
error
The invoice or contract does not exist or cannot be associated.
Get Invoice Contract Line