DocCloud API

<back to all web services

UpdateCashBankRecordCommand

Requires Authentication
The following routes are available for this service:
PUT/cashbank/record/{id}Update cash bank record
UpdateCashBankRecordCommand Parameters:
NameParameterData TypeRequiredDescription
MatchByRecipientDetailsbodyboolNo
CashBankRecordDto Parameters:
NameParameterData TypeRequiredDescription
CashBankAccountIdformuintNo
CashBankAccountTypeformintNo
ReportIdformuintNo
NumberInReportformstringNo
DocumentformstringNo
DocumentNumberformstringNo
DocumentForeignNumberformstringNo
IdentifierHashCodeformintNo
IsDuplicateformboolNo
OperationDateformDateTimeNo
OperationTypeformintNo
OperationAmountformdecimalNo
RegulatedAmountformdecimalNo
IsClearedformboolNo
IsIncomeformboolNo
IncomeformdecimalNo
OutgoingformdecimalNo
IncomeInCurrencyformdecimalNo
OutgoingInCurrencyformdecimalNo
RegulationStatusformintNo
ToRegulateformdecimalNo
RecipientformRecipientDtoNo
RecipientDetailsformstringNo
RecipientIbanformstringNo
UpdateRecipientformboolNo
CategoryNameformstringNo
CategoryIdformuintNo
DescriptionformstringNo
OppositeAccountformstringNo
DocumentCurrencyformstringNo
DocumentCurrencyIdformuintNo
RegulationCurrencyformstringNo
RegulationCurrencyIdformuintNo
SalaryformboolNo
MppSplitPaymentformboolNo
TaxAmountformboolNo
ValidateAmountWithDocumentsformboolNo
StatusformintNo
StatusMWformintNo
DocumentsformIList<CashBankRecordDocumentDto>No
LabelsformstringNo
BaseKeyLongDto Parameters:
NameParameterData TypeRequiredDescription
CreatedByIdformuintNo
ModifiedByIdformuintNo
CreatedDateformDateTimeNo
ModifiedDateformDateTimeNo
IdformulongNo
RecipientDto Parameters:
NameParameterData TypeRequiredDescription
ShortNameformstringNo
NameformstringNo
NipformstringNo
RegonformstringNo
KrsformstringNo
CatIdformuintNo
TypeIdformintNo
RecipientCTypeformstringNo
DescriptionformstringNo
StreetNameformstringNo
StreetNumberformstringNo
StreetFlatNumberformstringNo
PostalCodeformstringNo
TownformstringNo
CountryIdformintNo
IsoCountryformstringNo
CountryformstringNo
EmailformstringNo
WebSiteformstringNo
PhoneNumberformstringNo
FaxNumberformstringNo
PhoneNumber1formstringNo
MobileNumberformstringNo
BankAccNameformstringNo
BankAccNumberformstringNo
DefaultPaymentTypeformstringNo
DefaultPaymentTermformuintNo
DefaultDiscountformdecimalNo
DefaultCurrencyIdformuintNo
DefaultCurrencyformstringNo
CategoryIdformuintNo
CategoryNameformstringNo
BaseKeyDto Parameters:
NameParameterData TypeRequiredDescription
CreatedByIdformuintNo
ModifiedByIdformuintNo
CreatedDateformDateTimeNo
ModifiedDateformDateTimeNo
IdformuintNo
CashBankRecordDocumentDto Parameters:
NameParameterData TypeRequiredDescription
InvoiceNumberformstringNo
InvoiceSellDateformDateTimeNo
InvoiceDeadLineformDateTimeNo
CashBankRecordNumberformstringNo
RegulatedAmountformdecimalNo
CashBankRecordIdformulongNo
SettlementIdformulongNo
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.

PUT /cashbank/record/{id} HTTP/1.1 
Host: api.chmuradokumentow.pl 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	matchByRecipientDetails: False,
	cashBankAccountId: 0,
	cashBankAccountType: 0,
	reportId: 0,
	numberInReport: String,
	document: String,
	documentNumber: String,
	documentForeignNumber: String,
	identifierHashCode: 0,
	isDuplicate: False,
	operationDate: 0001-01-01,
	operationType: 0,
	operationAmount: 0,
	regulatedAmount: 0,
	isCleared: False,
	isIncome: False,
	income: 0,
	outgoing: 0,
	incomeInCurrency: 0,
	outgoingInCurrency: 0,
	regulationStatus: 0,
	toRegulate: 0,
	recipient: 
	{
		shortName: String,
		name: String,
		nip: String,
		regon: String,
		krs: String,
		catId: 0,
		typeId: 0,
		recipientCType: String,
		description: String,
		streetName: String,
		streetNumber: String,
		streetFlatNumber: String,
		postalCode: String,
		town: String,
		countryId: 0,
		isoCountry: String,
		country: String,
		email: String,
		webSite: String,
		phoneNumber: String,
		faxNumber: String,
		phoneNumber1: String,
		mobileNumber: String,
		bankAccName: String,
		bankAccNumber: String,
		defaultPaymentType: String,
		defaultPaymentTerm: 0,
		defaultDiscount: 0,
		defaultCurrencyId: 0,
		defaultCurrency: String,
		categoryId: 0,
		categoryName: String,
		createdById: 0,
		modifiedById: 0,
		createdDate: 0001-01-01,
		modifiedDate: 0001-01-01,
		id: 0
	},
	recipientDetails: String,
	recipientIban: String,
	updateRecipient: False,
	categoryName: String,
	categoryId: 0,
	description: String,
	oppositeAccount: String,
	documentCurrency: String,
	documentCurrencyId: 0,
	regulationCurrency: String,
	regulationCurrencyId: 0,
	salary: False,
	mppSplitPayment: False,
	taxAmount: False,
	validateAmountWithDocuments: False,
	status: 0,
	statusMW: 0,
	labels: String,
	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
}