ApexERPHost

<back to all web services

CalcDepr

Requires Authentication
The following routes are available for this service:
POST/Accounting/FixedAssets/Depreciations/CalcDepr
CalcDepr Parameters:
NameParameterData TypeRequiredDescription
DeprTypebodyintNo
DateFrombodyDateTimeNo
DateTobodyDateTimeNo
OperIDbodystringNo
FaSuppFilterbodyList<int>No
SplitByMonthbodyboolNo
FinGroupbodyint?No
CalcDeprResponse Parameters:
NameParameterData TypeRequiredDescription
ResponseStatusformResponseStatusNo
ResultformList<CalcDeprView>No
BookResultformList<CalcDeprBookView>No
CalcDeprView Parameters:
NameParameterData TypeRequiredDescription
suppd_idformint?No
brnameformstringNo
locnameformstringNo
costformdecimal?No
cur_deprformdecimal?No
acum_deprformdecimal?No
svgformdecimal?No
lifeyearsformdecimal?No
deprformdecimalNo
fa_nameformstringNo
fin_nameformstringNo
tax_nameformstringNo
dbformstringNo
acc_nuformstringNo
invnumberformstringNo
rcountformdecimalNo
icountformdecimalNo
CalcDeprBookView Parameters:
NameParameterData TypeRequiredDescription
DBformAccountInfoNo
CRformAccountInfoNo
VGformdecimalNo
VUformdecimalNo
AccountInfo Parameters:
NameParameterData TypeRequiredDescription
AccformstringNo
NameformstringNo
SNformstringNo
WarehouseAddressformstringNo
AddressformstringNo
PhoneformstringNo
AccWithNameformstringNo
VatTypeformintNo
BranchIdformint?No

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /Accounting/FixedAssets/Depreciations/CalcDepr HTTP/1.1 
Host: apex.nikoratrade.ge 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	DeprType: 0,
	DateFrom: 0001-01-01,
	DateTo: 0001-01-01,
	OperID: String,
	FaSuppFilter: 
	[
		0
	],
	SplitByMonth: False,
	FinGroup: 0
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	},
	Result: 
	[
		{
			suppd_id: 0,
			brname: String,
			locname: String,
			cost: 0,
			cur_depr: 0,
			acum_depr: 0,
			svg: 0,
			lifeyears: 0,
			depr: 0,
			fa_name: String,
			fin_name: String,
			tax_name: String,
			db: String,
			acc_nu: String,
			invnumber: String,
			rcount: 0,
			icount: 0
		}
	],
	BookResult: 
	[
		{
			DB: 
			{
				Acc: String,
				Name: String,
				SN: String,
				WarehouseAddress: String,
				Address: String,
				Phone: String,
				AccWithName: String - String,
				VatType: 0,
				BranchId: 0
			},
			CR: 
			{
				Acc: String,
				Name: String,
				SN: String,
				WarehouseAddress: String,
				Address: String,
				Phone: String,
				AccWithName: String - String,
				VatType: 0,
				BranchId: 0
			},
			VG: 0,
			VU: 0
		}
	]
}