Skip to main content
GET
Get Invoice Product Line

Get Invoice Product Line

Returns the CoworkerProduct record linked to a specific invoice line. This endpoint enriches invoice lines that originate from a product purchase, providing details such as product ID, quantity, and recurrence type.

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 customer product record associated with the invoice line. Available on the invoice line as CoworkerProductUniqueId.

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=Product.Price,Product.Quantity,Product.Product.Name.

Response

Returns a CoworkerProduct object.
number
Unique identifier of the customer product record.
number
ID of the underlying product in the catalogue.
number
Quantity of the product purchased.
boolean
Whether this product is set up as a recurring charge.
string
Globally unique identifier for this customer product record.

Example Response

Usage in Portal

Used to render product details in invoice line rows within the basket and invoice summary.
  • File: src/components/Basket/invoiceLines/ProductInvoiceLineRow.tsx

Typical integration pattern

  • GET /api/public/billing/invoices/{invoiceId} – Get full invoice details
  • GET /api/public/store/products/{productId} – Get store product details

Error Responses

error
The current user is not authenticated or does not have access to this invoice.
error
The invoice or customer product record does not exist.