Back to Project Expense

POST Method Details for ValidateProjectExpense.

Validate project expense for project

Definition

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

Parameters

  • createModel object
    • AmountIncludingVatExpenseCurrency number Gets or sets the amount including VAT in expense currency
    • Comment string Gets or sets the comment
    • ExpenseCurrencyISO string Gets or sets the currency ISO
    • 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
    • IsBillable boolean Gets or sets whether the expense is billable
    • PaymentMethodID integer Gets or sets the payment method ID
    • ProfitRatio number Gets or sets the profit ratio
    • ProjectExpenseExchangeRate number Gets or sets the exchange rate
    • 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
    • SalesPriceAmountProjectCurrency number Gets or sets the sales price amount in project currency
    • SupplierID integer Gets or sets the supplier ID
    • SupplierInvoiceNo string Gets or sets the supplier invoice number
    • VatAmountExpenseCurrency number Gets or sets the VAT amount in Expense Currency
    {
      "AmountIncludingVatExpenseCurrency": 0.0,
      "Comment": "",
      "ExpenseCurrencyISO": "",
      "ExpenseNo": "",
      "ExpenseTypeID": 0,
      "ExternalID": "",
      "IsBillable": false,
      "PaymentMethodID": 0,
      "ProfitRatio": 0.0,
      "ProjectExpenseExchangeRate": 0.0,
      "ProjectID": 0,
      "ProjectSubContractID": 0,
      "PurchaseDate": "2024-03-28T00:00:00+00:00",
      "SalesPriceAmountProjectCurrency": 0.0,
      "SupplierID": 0,
      "SupplierInvoiceNo": "",
      "VatAmountExpenseCurrency": 0.0
    }
  • version string The requested API version

Returns

  • [200] Project expense was validated successfully
  • [401] Invalid authentication token
  • [500] Project expense could not be validated
    • 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": ""
    }