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
Path
reference (integer): the service request id.
Returns
200 OK - Invoice
Example
//get the invoice by service request id.
const int serviceRequestId = 123;
var invoice = await invoiceManager.GetByServiceRequest(serviceRequstId);