DocCloud API

<back to all web services

CreateFixedAssetCommand

Requires Authentication
The following routes are available for this service:
POST/fixedassetCreate fixed asset
FixedAssetDto Parameters:
NameParameterData TypeRequiredDescription
IsFinishedformboolNo
InConstructionformboolNo
CountAtCostsBookingformboolNo
GroupIdformuintNo
GroupNameformstringNo
ClassificationIdformuintNo
ClassificationSymbolformstringNo
InventoryNumberformstringNo
BarCodeformstringNo
NameformstringNo
CategoryIdformuintNo
PurchaseDateformDateTimeNo
UsageStartDateformDateTimeNo
SourceStatusformintNo
DisposalDateformDateTime?No
DisposalDocumentIdformulong?No
DisposalDocumentformstringNo
DisposalCauseformstringNo
DescriptionformstringNo
BoundedDocumentsformIList<FixedAssetBoundedDocumentDto>No
IsBalanceAndCostDepreciationsDiffrentformboolNo
DepreciationMethodformintNo
DepreciationRateformdecimalNo
DepreciationFactorformdecimalNo
MonthlyDepreciationValueformdecimalNo
IsSeasonallyUsedformboolNo
IsDepreciationSuspendedformboolNo
DepreciationStartDateformDateTimeNo
OriginAmountformdecimalNo
UpdatedAmountformdecimalNo
CurrentGrossAmountformdecimalNo
AllowancesformdecimalNo
UpdatedAllowancesformdecimalNo
CurrentYearAllowancesformdecimalNo
CurrentNettoAmountformdecimalNo
ResponsiblePersonsformIList<FixedAssetResponsiblePersonDto>No
UsagePlacesformIList<FixedAssetUsagePlaceDto>No
GeneratePTDocumentsAtSaveformboolNo
BaseKeyDto Parameters:
NameParameterData TypeRequiredDescription
CreatedByIdformuintNo
ModifiedByIdformuintNo
CreatedDateformDateTimeNo
ModifiedDateformDateTimeNo
IdformuintNo
FixedAssetBoundedDocumentDto Parameters:
NameParameterData TypeRequiredDescription
FixedAssetIdformuintNo
CostInvoiceIdformulongNo
CostInvoicePositionIdformulongNo
CostInvoiceNumberformstringNo
DateformDateTimeNo
NettoformdecimalNo
GrossformdecimalNo
VatformdecimalNo
DepreciationValueTotalformdecimalNo
DepreciationValueLeftformdecimalNo
IsDeletedformboolNo
FixedAssetResponsiblePersonDto Parameters:
NameParameterData TypeRequiredDescription
FixedAssetIdformuintNo
StartDateformDateTimeNo
EndDateformDateTimeNo
AcronymformstringNo
NameformstringNo
SurnameformstringNo
IsDeletedformboolNo
FixedAssetUsagePlaceDto Parameters:
NameParameterData TypeRequiredDescription
FixedAssetIdformuintNo
StartDateformDateTimeNo
EndDateformDateTimeNo
DescriptionformstringNo
IsDeletedformboolNo
PostOperationResult<T> Parameters:
NameParameterData TypeRequiredDescription
IdformTNo
OperationResult Parameters:
NameParameterData TypeRequiredDescription
CodeformstringNo
ResponseStatusformResponseStatusNo
ResultformObjectNo
IsSuccessformboolNo

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 /fixedasset HTTP/1.1 
Host: api.chmuradokumentow.pl 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	isFinished: False,
	inConstruction: False,
	countAtCostsBooking: False,
	groupId: 0,
	groupName: String,
	classificationId: 0,
	classificationSymbol: String,
	inventoryNumber: String,
	barCode: String,
	name: String,
	categoryId: 0,
	purchaseDate: 0001-01-01,
	usageStartDate: 0001-01-01,
	sourceStatus: 0,
	disposalDate: 0001-01-01,
	disposalDocumentId: 0,
	disposalDocument: String,
	disposalCause: String,
	description: String,
	isBalanceAndCostDepreciationsDiffrent: False,
	depreciationMethod: 0,
	depreciationRate: 0,
	depreciationFactor: 0,
	monthlyDepreciationValue: 0,
	isSeasonallyUsed: False,
	isDepreciationSuspended: False,
	depreciationStartDate: 0001-01-01,
	originAmount: 0,
	updatedAmount: 0,
	currentGrossAmount: 0,
	allowances: 0,
	updatedAllowances: 0,
	currentYearAllowances: 0,
	currentNettoAmount: 0,
	generatePTDocumentsAtSave: False,
	createdById: 0,
	modifiedById: 0,
	createdDate: 0001-01-01,
	modifiedDate: 0001-01-01,
	id: 0
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	id: 0,
	code: FAIL,
	responseStatus: 
	{
		errorCode: String,
		message: String,
		stackTrace: String,
		errors: 
		[
			{
				errorCode: String,
				fieldName: String,
				message: String,
				meta: 
				{
					String: String
				}
			}
		],
		meta: 
		{
			String: String
		}
	},
	result: {},
	isSuccess: False
}