DocCloud API

<back to all web services

RecipientUpdateCommand

Requires Authentication
The following routes are available for this service:
PUT/recipientUpdate Recipient
RecipientUpdateCommand Parameters:
NameParameterData TypeRequiredDescription
IdbodyuintNo
ShortNamebodystringNo
NamebodystringNo
NipbodystringNo
RegonbodystringNo
KrsbodystringNo
CatIdbodyuintNo
TypeIdbodyintNo
RecipientCTypebodystringNo
DescriptionbodystringNo
StreetNamebodystringNo
StreetNumberbodystringNo
StreetFlatNumberbodystringNo
PostalCodebodystringNo
TownbodystringNo
CountryIdbodyintNo
IsoCountrybodystringNo
CountrybodystringNo
EmailbodystringNo
WebSitebodystringNo
PhoneNumberbodystringNo
FaxNumberbodystringNo
PhoneNumber1bodystringNo
MobileNumberbodystringNo
BankAccNamebodystringNo
BankAccNumberbodystringNo
DefaultPaymentTypebodystringNo
DefaultPaymentTermbodyuintNo
DefaultDiscountbodydecimalNo
DefaultCurrencyIdbodyuintNo
DefaultCurrencybodystringNo
CategoryIdbodyuintNo
CategoryNamebodystringNo
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 /recipient HTTP/1.1 
Host: api.chmuradokumentow.pl 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	id: 0,
	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
}
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
}