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 .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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: application/json
Content-Type: application/json
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-01T00:00:00.0000000Z","usageStartDate":"0001-01-01T00:00:00.0000000Z","sourceStatus":0,"disposalDate":"0001-01-01T00:00:00.0000000Z","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-01T00:00:00.0000000Z","originAmount":0,"updatedAmount":0,"currentGrossAmount":0,"allowances":0,"updatedAllowances":0,"currentYearAllowances":0,"currentNettoAmount":0,"generatePTDocumentsAtSave":false,"createdById":0,"modifiedById":0,"createdDate":"0001-01-01T00:00:00.0000000Z","modifiedDate":"0001-01-01T00:00:00.0000000Z","id":0}
HTTP/1.1 200 OK
Content-Type: application/json
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}