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 .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.

GET /customer/{CustomerId} HTTP/1.1 
Host: heidak-api.build.exanic.ch 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
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-01T00:00:00.0000000","notes":"String"}}