heilog.ch.Api

<back to all web services

CreateCustomerRequest

The following routes are available for this service:
POST/customer
CreateCustomerRequest Parameters:
NameParameterData TypeRequiredDescription
CustomerbodyCustomerDetailDtoNo
CustomerDetailDto Parameters:
NameParameterData TypeRequiredDescription
IdformlongNo
Salutationformint?No
FirstNameformstringNo
LastNameformstringNo
StreetformstringNo
ZipformstringNo
PlaceformstringNo
PhonePrivateformstringNo
PhoneBusinessformstringNo
PhoneMobileformstringNo
EmailformstringNo
HealthInsuranceformstringNo
HealthInsuranceNumberformstringNo
AhvformstringNo
BirthDateformDateTime?No
NotesformstringNo
CreateCustomerResponse Parameters:
NameParameterData TypeRequiredDescription
CustomerIdformlongNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /customer HTTP/1.1 
Host: heidak-api.build.exanic.ch 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<CreateCustomerRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/heilog.ch.Api.ServiceModel.Customer">
  <Customer xmlns:d2p1="http://schemas.datacontract.org/2004/07/heilog.ch.Api.Dto.Customer">
    <d2p1:Ahv>String</d2p1:Ahv>
    <d2p1:BirthDate>0001-01-01T00:00:00</d2p1:BirthDate>
    <d2p1:Email>String</d2p1:Email>
    <d2p1:FirstName>String</d2p1:FirstName>
    <d2p1:HealthInsurance>String</d2p1:HealthInsurance>
    <d2p1:HealthInsuranceNumber>String</d2p1:HealthInsuranceNumber>
    <d2p1:Id>0</d2p1:Id>
    <d2p1:LastName>String</d2p1:LastName>
    <d2p1:Notes>String</d2p1:Notes>
    <d2p1:PhoneBusiness>String</d2p1:PhoneBusiness>
    <d2p1:PhoneMobile>String</d2p1:PhoneMobile>
    <d2p1:PhonePrivate>String</d2p1:PhonePrivate>
    <d2p1:Place>String</d2p1:Place>
    <d2p1:Salutation>0</d2p1:Salutation>
    <d2p1:Street>String</d2p1:Street>
    <d2p1:Zip>String</d2p1:Zip>
  </Customer>
</CreateCustomerRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<CreateCustomerResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/heilog.ch.Api.ServiceModel.Customer">
  <CustomerId>0</CustomerId>
</CreateCustomerResponse>