POST api/MasterDepreciation
Insert Master Depreciation
Request Information
URI Parameters
None.
Body Parameters
MasterDepreciationInsertUpdateRequestModelName | Description | Type | Additional information |
---|---|---|---|
DepMasterID | integer |
None. |
|
DepMethodID | integer |
Required |
|
DepMethodName | string |
Required |
|
CountryID | integer |
Required |
|
CompanyID | integer |
Required |
|
LifeSpan | decimal number |
None. |
|
OriginalSalvage | decimal number |
None. |
|
ExpectedSalvage | decimal number |
None. |
|
LifeSpanForAllYear | boolean |
Required |
|
ApportionedId | integer |
None. |
|
Description | string |
None. |
|
IsActive | integer |
None. |
|
AddedBy | integer |
None. |
|
AddedDate | date |
None. |
|
ModifiedBy | integer |
None. |
|
ModifiedDate | date |
None. |
|
SageAccountGroupID | integer |
None. |
|
SageAccountID | integer |
None. |
|
SageItemGLGroupID | integer |
None. |
|
MasterDepreciationMainGroupList | Collection of MasterDepreciationMainGroupRequestModel |
None. |
|
DepreciationPercentageYearlyList | Collection of DepreciationPercentageYearlyRequestModel |
None. |
Request Formats
application/json, text/json, text/plain, text/html
Sample:
{ "depMasterID": 1, "depMethodID": 1, "depMethodName": "sample string 2", "countryID": 3, "companyID": 4, "lifeSpan": 1.0, "originalSalvage": 1.0, "expectedSalvage": 1.0, "lifeSpanForAllYear": true, "apportionedId": 1, "description": "sample string 6", "isActive": 1, "addedBy": 1, "addedDate": "2025-07-17T05:07:00.9312932+00:00", "modifiedBy": 1, "modifiedDate": "2025-07-17T05:07:00.9312932+00:00", "sageAccountGroupID": 1, "sageAccountID": 1, "sageItemGLGroupID": 1, "masterDepreciationMainGroupList": [ { "id": 1, "depMasterId": 1, "mainGroupId": 1, "assetGroupId": 1, "isActive": 1, "addedBy": 1, "addedDate": "2025-07-17T05:07:00.9312932+00:00", "modifiedBy": 1, "modifiedDate": "2025-07-17T05:07:00.9312932+00:00" }, { "id": 1, "depMasterId": 1, "mainGroupId": 1, "assetGroupId": 1, "isActive": 1, "addedBy": 1, "addedDate": "2025-07-17T05:07:00.9312932+00:00", "modifiedBy": 1, "modifiedDate": "2025-07-17T05:07:00.9312932+00:00" } ], "depreciationPercentageYearlyList": [ { "depPerYearlyID": 1, "depMasterId": 1, "yearValue": 1, "percentageAmount": 1.0, "additionalPerAmount": 1.0, "companyID": 2, "isActive": 1, "addedBy": 1, "addedDate": "2025-07-17T05:07:00.9312932+00:00", "modifiedBy": 1, "modifiedDate": "2025-07-17T05:07:00.9312932+00:00" }, { "depPerYearlyID": 1, "depMasterId": 1, "yearValue": 1, "percentageAmount": 1.0, "additionalPerAmount": 1.0, "companyID": 2, "isActive": 1, "addedBy": 1, "addedDate": "2025-07-17T05:07:00.9312932+00:00", "modifiedBy": 1, "modifiedDate": "2025-07-17T05:07:00.9312932+00:00" } ] }
application/xml, text/xml
Sample:
<MasterDepreciationInsertUpdateRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.RequestModel"> <AddedBy>1</AddedBy> <AddedDate>2025-07-17T05:07:00.9312932+00:00</AddedDate> <ApportionedId>1</ApportionedId> <CompanyID>4</CompanyID> <CountryID>3</CountryID> <DepMasterID>1</DepMasterID> <DepMethodID>1</DepMethodID> <DepMethodName>sample string 2</DepMethodName> <DepreciationPercentageYearlyList> <DepreciationPercentageYearlyRequestModel> <AddedBy>1</AddedBy> <AddedDate>2025-07-17T05:07:00.9312932+00:00</AddedDate> <AdditionalPerAmount>1</AdditionalPerAmount> <CompanyID>2</CompanyID> <DepMasterId>1</DepMasterId> <DepPerYearlyID>1</DepPerYearlyID> <IsActive>1</IsActive> <ModifiedBy>1</ModifiedBy> <ModifiedDate>2025-07-17T05:07:00.9312932+00:00</ModifiedDate> <PercentageAmount>1</PercentageAmount> <YearValue>1</YearValue> </DepreciationPercentageYearlyRequestModel> <DepreciationPercentageYearlyRequestModel> <AddedBy>1</AddedBy> <AddedDate>2025-07-17T05:07:00.9312932+00:00</AddedDate> <AdditionalPerAmount>1</AdditionalPerAmount> <CompanyID>2</CompanyID> <DepMasterId>1</DepMasterId> <DepPerYearlyID>1</DepPerYearlyID> <IsActive>1</IsActive> <ModifiedBy>1</ModifiedBy> <ModifiedDate>2025-07-17T05:07:00.9312932+00:00</ModifiedDate> <PercentageAmount>1</PercentageAmount> <YearValue>1</YearValue> </DepreciationPercentageYearlyRequestModel> </DepreciationPercentageYearlyList> <Description>sample string 6</Description> <ExpectedSalvage>1</ExpectedSalvage> <IsActive>1</IsActive> <LifeSpan>1</LifeSpan> <LifeSpanForAllYear>true</LifeSpanForAllYear> <MasterDepreciationMainGroupList> <MasterDepreciationMainGroupRequestModel> <AddedBy>1</AddedBy> <AddedDate>2025-07-17T05:07:00.9312932+00:00</AddedDate> <AssetGroupId>1</AssetGroupId> <DepMasterId>1</DepMasterId> <ID>1</ID> <IsActive>1</IsActive> <MainGroupId>1</MainGroupId> <ModifiedBy>1</ModifiedBy> <ModifiedDate>2025-07-17T05:07:00.9312932+00:00</ModifiedDate> </MasterDepreciationMainGroupRequestModel> <MasterDepreciationMainGroupRequestModel> <AddedBy>1</AddedBy> <AddedDate>2025-07-17T05:07:00.9312932+00:00</AddedDate> <AssetGroupId>1</AssetGroupId> <DepMasterId>1</DepMasterId> <ID>1</ID> <IsActive>1</IsActive> <MainGroupId>1</MainGroupId> <ModifiedBy>1</ModifiedBy> <ModifiedDate>2025-07-17T05:07:00.9312932+00:00</ModifiedDate> </MasterDepreciationMainGroupRequestModel> </MasterDepreciationMainGroupList> <ModifiedBy>1</ModifiedBy> <ModifiedDate>2025-07-17T05:07:00.9312932+00:00</ModifiedDate> <OriginalSalvage>1</OriginalSalvage> <SageAccountGroupID>1</SageAccountGroupID> <SageAccountID>1</SageAccountID> <SageItemGLGroupID>1</SageItemGLGroupID> </MasterDepreciationInsertUpdateRequestModel>
multipart/form-data
Sample:
<MasterDepreciationInsertUpdateRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.RequestModel"><AddedBy>1</AddedBy><AddedDate>2025-07-17T05:07:00.9312932+00:00</AddedDate><ApportionedId>1</ApportionedId><CompanyID>4</CompanyID><CountryID>3</CountryID><DepMasterID>1</DepMasterID><DepMethodID>1</DepMethodID><DepMethodName>sample string 2</DepMethodName><DepreciationPercentageYearlyList><DepreciationPercentageYearlyRequestModel><AddedBy>1</AddedBy><AddedDate>2025-07-17T05:07:00.9312932+00:00</AddedDate><AdditionalPerAmount>1</AdditionalPerAmount><CompanyID>2</CompanyID><DepMasterId>1</DepMasterId><DepPerYearlyID>1</DepPerYearlyID><IsActive>1</IsActive><ModifiedBy>1</ModifiedBy><ModifiedDate>2025-07-17T05:07:00.9312932+00:00</ModifiedDate><PercentageAmount>1</PercentageAmount><YearValue>1</YearValue></DepreciationPercentageYearlyRequestModel><DepreciationPercentageYearlyRequestModel><AddedBy>1</AddedBy><AddedDate>2025-07-17T05:07:00.9312932+00:00</AddedDate><AdditionalPerAmount>1</AdditionalPerAmount><CompanyID>2</CompanyID><DepMasterId>1</DepMasterId><DepPerYearlyID>1</DepPerYearlyID><IsActive>1</IsActive><ModifiedBy>1</ModifiedBy><ModifiedDate>2025-07-17T05:07:00.9312932+00:00</ModifiedDate><PercentageAmount>1</PercentageAmount><YearValue>1</YearValue></DepreciationPercentageYearlyRequestModel></DepreciationPercentageYearlyList><Description>sample string 6</Description><ExpectedSalvage>1</ExpectedSalvage><IsActive>1</IsActive><LifeSpan>1</LifeSpan><LifeSpanForAllYear>true</LifeSpanForAllYear><MasterDepreciationMainGroupList><MasterDepreciationMainGroupRequestModel><AddedBy>1</AddedBy><AddedDate>2025-07-17T05:07:00.9312932+00:00</AddedDate><AssetGroupId>1</AssetGroupId><DepMasterId>1</DepMasterId><ID>1</ID><IsActive>1</IsActive><MainGroupId>1</MainGroupId><ModifiedBy>1</ModifiedBy><ModifiedDate>2025-07-17T05:07:00.9312932+00:00</ModifiedDate></MasterDepreciationMainGroupRequestModel><MasterDepreciationMainGroupRequestModel><AddedBy>1</AddedBy><AddedDate>2025-07-17T05:07:00.9312932+00:00</AddedDate><AssetGroupId>1</AssetGroupId><DepMasterId>1</DepMasterId><ID>1</ID><IsActive>1</IsActive><MainGroupId>1</MainGroupId><ModifiedBy>1</ModifiedBy><ModifiedDate>2025-07-17T05:07:00.9312932+00:00</ModifiedDate></MasterDepreciationMainGroupRequestModel></MasterDepreciationMainGroupList><ModifiedBy>1</ModifiedBy><ModifiedDate>2025-07-17T05:07:00.9312932+00:00</ModifiedDate><OriginalSalvage>1</OriginalSalvage><SageAccountGroupID>1</SageAccountGroupID><SageAccountID>1</SageAccountID><SageItemGLGroupID>1</SageItemGLGroupID></MasterDepreciationInsertUpdateRequestModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
MasterDepreciationInsertUpdateDataModelName | Description | Type | Additional information |
---|---|---|---|
ReturnID | integer |
Required |
|
Message | string |
Required |
|
Successful | boolean |
Required |
|
Code | integer |
None. |
|
TotalRecord | integer |
None. |
Response Formats
application/json, text/json, text/plain, text/html
Sample:
{ "returnID": 1, "message": "sample string 2", "successful": true, "code": 4, "totalRecord": 5 }
application/xml, text/xml
Sample:
<MasterDepreciationInsertUpdateDataModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.DataModel"> <Code>4</Code> <Message>sample string 2</Message> <ReturnID>1</ReturnID> <Successful>true</Successful> <TotalRecord>5</TotalRecord> </MasterDepreciationInsertUpdateDataModel>
multipart/form-data
Sample:
<MasterDepreciationInsertUpdateDataModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.DataModel"><Code>4</Code><Message>sample string 2</Message><ReturnID>1</ReturnID><Successful>true</Successful><TotalRecord>5</TotalRecord></MasterDepreciationInsertUpdateDataModel>