v1

latestOpenAPI 3.0.12026-07-267912192.3 MB
Equipment Depreciation

Executes the Add action for the Equipment Depreciation data object.

Adds a Equipment Depreciation record.

post/direct/subscribers/{subscriber_code}/vista/em/2/data/equipment_depreciation/actions/add

Path parameters

subscriber_codestring required

The code of the subscriber that you are making this request for.

Headers

X-Application-Keystring required

Used to authorize access to the Direct API.

Request body

EMCointeger required

Equipment Management Company.

Equipmentstring required

Equipment ID (FK, bEquip, varchar(10), not null).

Assetstring required

Asset ID (varchar(20), not null).

Descriptionstring nullable

Asset Description (bItemDesc, varchar(60), null).

DeprMethodstring

Depreciation Method (char(1), not null).

DBFactorstring nullable

Double-Declining Balance Factor (bRate, numeric(8,6), null).

FirstMonthstring nullable

Month depreciation started (bMonth, smalldatetime, null).

NoMonthsToDeprinteger nullable

Number of Months to Depreciate (smallint, null).

TtlToDeprstring

Total amount to be depreciated (bDollar, numeric(12,2), not null).

MonthDisposedstring nullable

Month asset was disposed (bMonth, smalldatetime, null). Should be null on add.

PurchasePricestring nullable

Original purchase price (bDollar, numeric(12,2), not null).

ResidualValuestring nullable

Asset's residual or salvage value (bDollar, numeric(12,2), null).

SalePricestring nullable

Sale price of the asset if disposed (bDollar, numeric(12,2), null). Should be null on add.

AccumDeprAcctstring nullable

Accumulated Depreciation Account (FK, bGLAcct, char(20), null).

DeprExpAcctstring nullable

Depreciation Expense Account (FK, bGLAcct, char(20), null).

DeprAssetAcctstring nullable

Depreciable Asset Account (FK, bGLAcct, char(20), null).

UniqueAttchIDstring nullable

Unique Identifier for attachments (uniqueidentifier, null).

GLCointeger

General Ledger Company (FK, bCompany, tinyint, not null).

Notesstring nullable

Asset notes (varchar(max), null).

UseResidualValstring

Flag to indicate if residual value is used (char(1), not null).

DeprStartDatestring nullable

Date Depreciation Started (bDate, smalldatetime, null).

DateDisposedstring nullable

Date asset was disposed (bDate, smalldatetime, null). Should be null on add.

__custom_fieldsobject

Custom fields defined for this object in Vista.

Response

Success

idstring
operationstring
statusstring