DocCloud API

<back to all web services

InvoiceUpdateCommand

Requires Authentication
The following routes are available for this service:
PUT/invoiceUpdate Invoice
InvoiceUpdateCommand Parameters:
NameParameterData TypeRequiredDescription
IdbodyulongNo
TypeIdbodyuintNo
TypeNamebodystringNo
InvSrcIdbodyuintNo
InvSrcNumberbodystringNo
SchemaIdbodyuintNo
NumberbodystringNo
OrderNumberbodystringNo
TownbodystringNo
CreationDatebodyDateTimeNo
SellDatebodyDateTimeNo
PaymentDueDatebodyDateTimeNo
IsFromOcrbodyboolNo
PaymentTypeIdbodyuintNo
PaymentTypebodystringNo
PaymentTermsbodyushortNo
CategoryIdbodyuintNo
CategoryNamebodystringNo
JpkItemCodeIdbodyintNo
JpkItemCodeCodebodystringNo
JpkItemCodeNamebodystringNo
ListJpkProcedurebodyList<InvoiceJpkProcedureDto>No
JpkDocTypeIdbodyintNo
JpkDocTypeCodebodystringNo
JpkDocTypeNamebodystringNo
SellBankIdbodyuintNo
SellBankNamebodystringNo
SellBankAccountNbbodystringNo
SwiftbodystringNo
RecipientbodyShortRecipientDtoNo
IsReceiverDiffrentbodyboolNo
ReceiverbodyShortRecipientDtoNo
InvoicePositionbodyList<InvoicePositionDto>No
BasePricebodydecimalNo
DiscountbodydecimalNo
CurrencyIdbodyuintNo
CurrencybodystringNo
NettobodydecimalNo
Vat5bodydecimalNo
Vat8bodydecimalNo
Vat23bodydecimalNo
VatBasebodydecimalNo
GrossbodydecimalNo
PaidbodydecimalNo
ToPaidbodydecimalNo
IsMarkedClearbodyboolNo
StatusbodystringNo
IsPaymentDividedbodyboolNo
IsReverseChargedbodyboolNo
SupplierNamebodystringNo
RecipientNamebodystringNo
MarginReasonIdbodyuintNo
MarginReasonbodystringNo
PrivateNotebodystringNo
RemarksbodystringNo
AdditionalRemarksbodystringNo
CodebodystringNo
CodeAvailabilitybodystringNo
InvoiceOrderIdbodyulongNo
AttachmentsbodyList<FileDocumentDto>No
InvoiceJpkProcedureDto Parameters:
NameParameterData TypeRequiredDescription
CodeformstringNo
NameformstringNo
BaseKeyDto Parameters:
NameParameterData TypeRequiredDescription
CreatedByIdformuintNo
ModifiedByIdformuintNo
CreatedDateformDateTimeNo
ModifiedDateformDateTimeNo
IdformuintNo
ShortRecipientDto Parameters:
NameParameterData TypeRequiredDescription
IdformuintNo
CatIdformuintNo
NameformstringNo
VatIdformstringNo
StreetNameformstringNo
StreetNumberformstringNo
FlatNumberformstringNo
PostalCodeformstringNo
TownformstringNo
CountryIdformintNo
IsoCountryformstringNo
CountryformstringNo
EmailformstringNo
PhoneformstringNo
BankNameformstringNo
BankAccountNbformstringNo
IsActualformboolNo
DefaultCurrencyIdformuintNo
DefaultCurrencyformstringNo
CategoryIdformuintNo
CategoryNameformstringNo
InvoicePositionDto Parameters:
NameParameterData TypeRequiredDescription
ProductIdformuintNo
PosCorrIdformulongNo
InvoiceIdformulongNo
NameformstringNo
CodeformstringNo
QuantityformdecimalNo
UnitIdformuintNo
UnitformstringNo
CurrencyIdformuintNo
CurrencyformstringNo
UnitPriceformdecimalNo
GrossformdecimalNo
NettoformdecimalNo
VatTypeIdformintNo
Vat5formdecimalNo
Vat8formdecimalNo
Vat23formdecimalNo
IsBeforeformboolNo
IsUpdatedformboolNo
IsDeletedformboolNo
FileDocumentDto Parameters:
NameParameterData TypeRequiredDescription
ObjectTypeIdformintNo
ObjectTypeNameformstringNo
ObjectIdformulongNo
FileNameformstringNo
FileGuidformstringNo
FileSizeformlongNo
FileTypeformstringNo
ParentFolderIdformulong?No
StatusIdformuintNo
StatusNameformstringNo
OcrStatusformFileOcrStatusNo
OcrResponseformOcrRecognisedDocumentNo
ProcessIdformstringNo
CostInvoiceIdformulongNo
InvoiceIdformulongNo
BaseKeyLongDto Parameters:
NameParameterData TypeRequiredDescription
CreatedByIdformuintNo
ModifiedByIdformuintNo
CreatedDateformDateTimeNo
ModifiedDateformDateTimeNo
IdformulongNo
FileOcrStatus Enum:
NameValue
None0
SubmittedForProcessing1
SentForProcessing2
ProcessingInProgress3
Completed4
Error5
NotAvailableYet100
NotAvailableYetFirstRetry101
NotAvailableYetSecondRetry102
NotAvailableYetThirdRetry103
NotAvailableYetFourthRetry104
NotAvailableYetFifthRetry105
OcrRecognisedDocument Parameters:
NameParameterData TypeRequiredDescription
NrInvoiceformstringNo
BankAccountformstringNo
BankNameformstringNo
DateOfIssueformstringNo
SaleDateformstringNo
DateOfPaymentformstringNo
SellerNipformstringNo
SellerNameformstringNo
SellerStreetNameformstringNo
SellerStreetNrformstringNo
SellerLocalNrformstringNo
SellerPlaceformstringNo
SellerZipCodeformstringNo
BuyerNipformstringNo
BuyerNameformstringNo
BuyerStreetNameformstringNo
BuyerStreetNrformstringNo
BuyerLocalNrformstringNo
BuyerPlaceformstringNo
BuyerZipCodeformstringNo
SummaryNettoformstringNo
SummaryVatformstringNo
SummaryGrossformstringNo
PositionsformICollection<OcrRecognisedPosition>No
OcrRecognisedPosition Parameters:
NameParameterData TypeRequiredDescription
LpformstringNo
NameformstringNo
UnitformstringNo
GrossformstringNo
NettoformstringNo
VatformstringNo
VatValueformstringNo
QuantityformstringNo
NettoPriceformstringNo
GrossPriceformstringNo
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.

PUT /invoice HTTP/1.1 
Host: api.chmuradokumentow.pl 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	id: 0,
	typeId: 0,
	typeName: String,
	invSrcId: 0,
	invSrcNumber: String,
	schemaId: 0,
	number: String,
	orderNumber: String,
	town: String,
	creationDate: 0001-01-01,
	sellDate: 0001-01-01,
	paymentDueDate: 0001-01-01,
	isFromOcr: False,
	paymentTypeId: 0,
	paymentType: String,
	paymentTerms: 0,
	categoryId: 0,
	categoryName: String,
	jpkItemCodeId: 0,
	jpkItemCodeCode: String,
	jpkItemCodeName: String,
	listJpkProcedure: 
	[
		{
			code: String,
			name: String,
			createdById: 0,
			modifiedById: 0,
			createdDate: 0001-01-01,
			modifiedDate: 0001-01-01,
			id: 0
		}
	],
	jpkDocTypeId: 0,
	jpkDocTypeCode: String,
	jpkDocTypeName: String,
	sellBankId: 0,
	sellBankName: String,
	sellBankAccountNb: String,
	swift: String,
	recipient: 
	{
		id: 0,
		catId: 0,
		name: String,
		vatId: String,
		streetName: String,
		streetNumber: String,
		flatNumber: String,
		postalCode: String,
		town: String,
		countryId: 0,
		isoCountry: String,
		country: String,
		email: String,
		phone: String,
		bankName: String,
		bankAccountNb: String,
		isActual: False,
		defaultCurrencyId: 0,
		defaultCurrency: String,
		categoryId: 0,
		categoryName: String
	},
	isReceiverDiffrent: False,
	receiver: 
	{
		id: 0,
		catId: 0,
		name: String,
		vatId: String,
		streetName: String,
		streetNumber: String,
		flatNumber: String,
		postalCode: String,
		town: String,
		countryId: 0,
		isoCountry: String,
		country: String,
		email: String,
		phone: String,
		bankName: String,
		bankAccountNb: String,
		isActual: False,
		defaultCurrencyId: 0,
		defaultCurrency: String,
		categoryId: 0,
		categoryName: String
	},
	invoicePosition: 
	[
		{
			productId: 0,
			posCorrId: 0,
			invoiceId: 0,
			name: String,
			code: String,
			quantity: 0,
			unitId: 0,
			unit: String,
			currencyId: 0,
			currency: String,
			unitPrice: 0,
			gross: 0,
			netto: 0,
			vatTypeId: 0,
			vat5: 0,
			vat8: 0,
			vat23: 0,
			isBefore: False,
			isUpdated: False,
			isDeleted: False,
			createdById: 0,
			modifiedById: 0,
			createdDate: 0001-01-01,
			modifiedDate: 0001-01-01,
			id: 0
		}
	],
	basePrice: 0,
	discount: 0,
	currencyId: 0,
	currency: String,
	netto: 0,
	vat5: 0,
	vat8: 0,
	vat23: 0,
	vatBase: 0,
	gross: 0,
	paid: 0,
	toPaid: 0,
	isMarkedClear: False,
	status: String,
	isPaymentDivided: False,
	isReverseCharged: False,
	supplierName: String,
	recipientName: String,
	marginReasonId: 0,
	marginReason: String,
	privateNote: String,
	remarks: String,
	additionalRemarks: String,
	code: String,
	codeAvailability: String,
	invoiceOrderId: 0,
	attachments: 
	[
		{
			objectTypeId: 0,
			objectTypeName: String,
			objectId: 0,
			fileName: String,
			fileGuid: String,
			fileSize: 0,
			fileType: String,
			parentFolderId: 0,
			statusId: 0,
			statusName: String,
			ocrStatus: 0,
			ocrResponse: 
			{
				nrInvoice: String,
				bankAccount: String,
				bankName: String,
				dateOfIssue: String,
				saleDate: String,
				dateOfPayment: String,
				sellerNip: String,
				sellerName: String,
				sellerStreetName: String,
				sellerStreetNr: String,
				sellerLocalNr: String,
				sellerPlace: String,
				sellerZipCode: String,
				buyerNip: String,
				buyerName: String,
				buyerStreetName: String,
				buyerStreetNr: String,
				buyerLocalNr: String,
				buyerPlace: String,
				buyerZipCode: String,
				summaryNetto: String,
				summaryVat: String,
				summaryGross: String
			},
			processId: String,
			costInvoiceId: 0,
			invoiceId: 0,
			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
}