Back to Project Expense

GET Method Details for GetAllByProjectID.

Get all project expenses by project ID

Definition

https://app[x].timelog.com/[account name]/api/v{version}/project-expense

Parameters

  • projectID integer Project ID
  • version string The requested API version

Returns

  • [200] A list of project expenses
    • AmountExpenseCurrency number Gets or sets the amount in expense currency
    • ApprovedBy integer Gets or sets the approved by
    • Comment string Gets or sets the comment
    • CustomerID integer Gets or sets the customer ID
    • DisbursementGuid string Gets or sets the disbursement GUID
    • EmployeeID integer Gets or sets the employee ID
    • ExpenseCostProjectCurrency number Gets or sets the cost of the expense in project currency
    • ExpenseCostSystemCurrency number Gets or sets the cost of the expense in system currency
    • ExpenseCurrencyISO string Gets or sets the expense currency ISO
    • ExpenseDirectProjectExchangeRate number Gets or sets the expense currency exchange rate
    • ExpenseNo string Gets or sets the expense number
    • ExpenseTypeID integer Gets or sets the expense type ID
    • ExternalID string Gets or sets the external ID
    • InstallmentID integer Gets or sets the installment ID
    • InvoicedAmountProjectCurrency number Gets or sets the invoiced amount
    • InvoicedAmountSystemCurrency number Gets or sets the invoiced amount
    • InvoiceLineID integer Gets or sets the invoice line ID
    • InvoiceNo string Gets or sets the invoice number
    • IsApproved boolean Gets or sets whether the expense is approved
    • IsBillable boolean Gets or sets whether the expense is billable
    • LegalEntityID integer Gets or sets the legal entity ID
    • PaymentMethodID integer Gets or sets the payment method ID
    • ProductNo string Gets or sets the product number
    • ProfitRatio number Gets or sets the profit ratio
    • ProjectCurrencyISO string Gets or sets the project currency ISO
    • ProjectExpenseID integer Gets or sets the project expense ID
    • ProjectID integer Gets or sets the project ID
    • ProjectSubContractID integer Gets or sets the project sub contract ID
    • PurchaseDate string Gets or sets the purchase date
    • SalesPriceProjectCurrency number Gets or sets the sales price in project currency
    • SalesPriceProjectExchangeRate number Gets or sets the sales price
    • SalesPriceSystemCurrency number Gets or sets the sales price in system currency
    • UnitType integer Gets or sets the unit type
    • VatExpenseCurrency number Gets or sets the VAT
    {
      "AmountExpenseCurrency": 0.0,
      "ApprovedBy": 0,
      "Comment": "",
      "CustomerID": 0,
      "DisbursementGuid": "00000000-0000-0000-0000-000000000000",
      "EmployeeID": 0,
      "ExpenseCostProjectCurrency": 0.0,
      "ExpenseCostSystemCurrency": 0.0,
      "ExpenseCurrencyISO": "",
      "ExpenseDirectProjectExchangeRate": 0.0,
      "ExpenseNo": "",
      "ExpenseTypeID": 0,
      "ExternalID": "",
      "InstallmentID": 0,
      "InvoicedAmountProjectCurrency": 0.0,
      "InvoicedAmountSystemCurrency": 0.0,
      "InvoiceLineID": 0,
      "InvoiceNo": "",
      "IsApproved": false,
      "IsBillable": false,
      "LegalEntityID": 0,
      "PaymentMethodID": 0,
      "ProductNo": "",
      "ProfitRatio": 0.0,
      "ProjectCurrencyISO": "",
      "ProjectExpenseID": 0,
      "ProjectID": 0,
      "ProjectSubContractID": 0,
      "PurchaseDate": "2024-12-22T00:00:00+00:00",
      "SalesPriceProjectCurrency": 0.0,
      "SalesPriceProjectExchangeRate": 0.0,
      "SalesPriceSystemCurrency": 0.0,
      "UnitType": 0,
      "VatExpenseCurrency": 0.0
    }
  • [401] Invalid authentication token
  • [500] Request to GetAllByProjectID has failed
    • Code integer Gets the code.
    • Details array Gets the details.
    • Message string Gets the message.
    • Parameters string Gets the parameters.
    • Url string Gets the URL.
    {
      "Code": 0,
      "Details": "",
      "Message": "",
      "Parameters": "",
      "Url": ""
    }