20.03.30 Invoice

Get Invoices By Client and Date Range

Display Client Invoices. Returns a 200 OK response code if the call succeeded.
GET /API/Invoice/Client/{Client_ID}/{Start_Date}/{End_Date}

Example Request

curl "https://demo.unitektime.com/api/Invoice/Client/00001/2018-01-01/2018-01-31" \
      -H "APIKey: {Your API Key}" \
      -H "AuthToken: {Your Authentication Token}" \
      -H "User-Agent: MyApp (yourname@example.com)" \
      -X GET \
      -H "Content-Type: application/json"

Example Response

[
  {
    "AccountId": 1,
    "Description": "Sample Description",
    "AccountClientId": 1,
    "ClientName": "Demo Client",
    "BillingCycleStartDate": "2020-04-21T00:00:00+00:00",
    "BillingCycleEndDate": "2020-04-21T00:00:00+00:00",
    "InvoiceNumber": "1",
    "PONumber": "",
    "IsDisabled": false,
    "InvoiceDate": "2020-04-21T00:00:00+00:00",
    "AccountCurrencyId": 1,
    "SubTotal": 352,
    "TaxCode1": 46.64,
    "TaxCode2": 22.5,
    "GrandTotal": 421.14,
    "AccountTimeExpenseBillingId": "00000000-0000-0000-0000-000000000000",
    "IsPaid": false,
    "AccountProjectId": 1,
    "ProjectName": "Demo Project",
    "Terms": "",
    "BankDetails": "",
    "ParentAccountProjectTaskId": 0,
    "ParentTaskName": null,
    "GroupExpenseBillingListBy": "ExpenseName",
    "InvoicePrefix": "",
    "Discount": 0,
    "DiscountPercentage": 0,
    "Detail": [
      {
        "ProjectName": "Demo Project",
        "TaskName": "Demo Task",
        "AccountProjectTaskId": 1,
        "AccountProjectId": 1,
        "AccountTimeExpenseBillingTimesheetId": "00000000-0000-0000-0000-000000000000",
        "Description": "Sample Description",
        "BillingRate": 55,
        "BillHours": 5,
        "TotalAmount": 275,
        "AccountTaxCodeId1": 1,
        "AccountTaxCodeId2": 1,
        "TaxCode2": 17.875,
        "TaxCode1": 41.25,
        "ActualHours": 0,
        "ActualBillingRate": 0,
        "AccountTimeExpenseBillingId": "00000000-0000-0000-0000-000000000000",
        "ExchangeRate": 1,
        "AccountEmployeeTimeEntryId": "0",
        "TaxName1": "VAT",
        "TaxName2": "State Sales Tax"
      }
    ],
    "Expense": [
      {
        "InvoiceNumber": "1",
        "InvoiceDate": "2020-04-21T00:00:00+00:00",
        "PONumber": "",
        "ProjectName": "Demo Project",
        "AccountProjectId": 1,
        "AccountTimeExpenseBillingExpenseId": "00000000-0000-0000-0000-000000000000",
        "AccountTimeExpenseBillingId": "00000000-0000-0000-0000-000000000000",
        "Description": "Sample Description",
        "ActualExpenseAmount": 0,
        "BilledExpenseAmount": 77,
        "AccountExpenseId": 1,
        "AccountExpenseName": "Entertainment",
        "AccountExpenseTypeId": 1,
        "ExpenseType": "Hotel",
        "ExchangeRate": 1,
        "AccountTaxCodeId1": 77383,
        "AccountTaxCodeId2": 77382,
        "TaxCode1": 1,
        "TaxCode2": 1,
        "AccountExpenseEntryId": "0",
        "TaxName1": "PST",
        "TaxName2": "Hotel Tax"
      }
    ]
  }
]