GET Method Details for GetByStatus.
Get a list of expense type by status (all, inactive, active)
Definition
https://app[x].timelog.com/[account name]/api/v{version}/expense-type/{status}
Parameters
- status integer An enum of ActiveStatus, can be all(-1), inactive(0) or active(1)
- version string The requested API version
Returns
-
[200] A list of expense type
- AccountNo string Gets or sets the account no.
- CostPrice number Gets or sets the cost price.
- EquipmentText string Gets or sets the equipment text.
- ExpenseTypeID integer Gets or sets the expense type identifier.
- ExpenseTypeName string Gets or sets the name of the expense type.
- IsActive boolean Gets or sets a value indicating whether this instance is active.
- IsEquipment boolean Gets or sets a value indicating whether this instance is equipment.
- ProductNo string Gets or sets the product no.
- SalaryCode string Gets or sets the salary code.
- SalesPrice number Gets or sets the sales price.
- ShowInTravel boolean Gets or sets a value indicating whether [show in travel].
- VAT number Gets or sets the vat.
-
[400] Status specified is invalid
- 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.
- [401] Invalid authentication token
-
[500] Request to GetByStatus 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.