getInvoiceLineItemWith

suspend fun getInvoiceLineItemWith(invoiceId: String, invoiceLineItemId: String): Pair<InvoiceLineItem?, NetworkingError?>

Retrieves a single line item by its identifier from the specified invoice.

Return

A Pair where the first element is the matching InvoiceLineItem on success, and the second element is a NetworkingError on failure.

Parameters

invoiceId

The unique identifier of the invoice that owns the line item.

invoiceLineItemId

The unique identifier of the line item to retrieve.


fun getInvoiceLineItemWith(invoiceId: String, invoiceLineItemId: String, completionHandler: (InvoiceLineItem?, NetworkingError?) -> Unit)

Retrieves a single line item by its identifier from the specified invoice, delivering the result via a callback.

Parameters

invoiceId

The unique identifier of the invoice that owns the line item.

invoiceLineItemId

The unique identifier of the line item to retrieve.

completionHandler

Called on completion with the matching InvoiceLineItem on success, or a NetworkingError on failure.