Before you get started, please see the introduction to the API.
Invoice / Payments Endpoint
Find Your Domain
Your domain is simple as it is the same as your OpenWater platform. In the above example, it would be training-zack.secure-platform.com
Connect to the API
The method signature to call for invoice data is the following:
public string GetInvoicesReport(bool includeUnpaid = false, DateTime? startDate = null, DateTime? endDate = null)
All arguments are optional. If the method is called with no arguments, it will pull all invoices from the platform in one go. Otherwise, you can specify start and end dates.
Usage of the module:
var domain = "https://yourdomain.secure-platform.com";
var licenseKey = "YOUR LICENSE KEY";
OpenWaterApi openwaterApi = new OpenWaterApi(licenseKey, domain);
var data = openwaterApi.GetInvoicesReport();