heilog.ch.Api

<back to all web services

GetCustomerByIdRequest

The following routes are available for this service:
GET/customer/{CustomerId}
GetCustomerByIdRequest Parameters:
NameParameterData TypeRequiredDescription
CustomerIdpathlongNo
GetCustomerByIdResponse Parameters:
NameParameterData TypeRequiredDescription
CustomerformCustomerDetailDtoNo
CustomerDetailDto Parameters:
NameParameterData TypeRequiredDescription
IdformlongNo
Salutationformint?No
FirstNameformstringNo
LastNameformstringNo
StreetformstringNo
ZipformstringNo
PlaceformstringNo
PhonePrivateformstringNo
PhoneBusinessformstringNo
PhoneMobileformstringNo
EmailformstringNo
HealthInsuranceformstringNo
HealthInsuranceNumberformstringNo
AhvformstringNo
BirthDateformDateTime?No
NotesformstringNo

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.

GET /customer/{CustomerId} HTTP/1.1 
Host: heidak-api.test.exanic.ch 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	customer: 
	{
		id: 0,
		salutation: 0,
		firstName: String,
		lastName: String,
		street: String,
		zip: String,
		place: String,
		phonePrivate: String,
		phoneBusiness: String,
		phoneMobile: String,
		email: String,
		healthInsurance: String,
		healthInsuranceNumber: String,
		ahv: String,
		birthDate: 0001-01-01,
		notes: String
	}
}