GetByServiceRequest() [InvoiceManager]

Get an invoice by service request

Description

Retrieves an invoice by it's service request id.

Package Details

Interface

IInvoiceManager

Syntax

await invoiceManager.GetByServiceRequest(int serviceRequestId);

Returns

Task<Invoice>

API

GET
/api/v1/servicerequests/{id}/invoices

Parameters

Parameter

Description

Parameter Type

Parameter

Description

Parameter Type

id

service request id

path

Returns

200 OK - Invoice

Example

const int serviceRequestId = 123; var invoice = await invoiceManager.GetByServiceRequest(serviceRequstId);