OnlineOrganization


Click here for a complete list of operations.

UpdateCustomer

Update the customer database with new information of a customer. This doesn't require a basket as the corresponding method in BookingOperations.

Test

The test form is only available for requests from the local machine.

SOAP 1.1

The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.

POST /OnlineOrganization.asmx HTTP/1.1
Host: api.citybreak.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://api.citybreak.com/UpdateCustomer"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <UpdateCustomer xmlns="http://api.citybreak.com/">
      <cd>
        <PaymentMethod>Unknown or CreditCard or Cash or Invoice or GiftCertificate or CallCenter or ExternalInvoice or ValueCard</PaymentMethod>
        <CustomerPersonId>int</CustomerPersonId>
        <ReferencePersonId>int</ReferencePersonId>
        <SalespointId>int</SalespointId>
        <NotificationCustomer>short</NotificationCustomer>
        <NotificationSupplier>boolean</NotificationSupplier>
        <CreditCards>
          <anyType />
          <anyType />
        </CreditCards>
        <DiscountType>NoDiscount or Percent or FixedAmount</DiscountType>
        <DiscountAmount>double</DiscountAmount>
        <DiscountComment>string</DiscountComment>
        <DiscountId>int</DiscountId>
        <CCAcceptUrl>string</CCAcceptUrl>
        <CCDeclineUrl>string</CCDeclineUrl>
        <BookingCustomer>
          <CustomerType>int</CustomerType>
          <NameFirst>string</NameFirst>
          <NameLast>string</NameLast>
          <Salutation>string</Salutation>
          <CivicRegistrationNumber>string</CivicRegistrationNumber>
          <CustomerNumber>string</CustomerNumber>
          <Culture>string</Culture>
          <Company>string</Company>
          <CompanyDepartment>string</CompanyDepartment>
          <CompanyOrganizationId>string</CompanyOrganizationId>
          <Address>
            <Id>int</Id>
            <State>string</State>
            <StreetAddress2>string</StreetAddress2>
            <StreetAddress3>string</StreetAddress3>
            <StreetAddress1>string</StreetAddress1>
            <Country>string</Country>
            <CountryCode>string</CountryCode>
            <PostalCode>string</PostalCode>
            <City>string</City>
          </Address>
          <InvoiceAddress>
            <Id>int</Id>
            <State>string</State>
            <StreetAddress2>string</StreetAddress2>
            <StreetAddress3>string</StreetAddress3>
            <StreetAddress1>string</StreetAddress1>
            <Country>string</Country>
            <CountryCode>string</CountryCode>
            <PostalCode>string</PostalCode>
            <City>string</City>
          </InvoiceAddress>
          <EmailAddress>
            <Id>int</Id>
            <Address>string</Address>
            <SystemType>int</SystemType>
          </EmailAddress>
          <InvoiceEmailAddress>
            <Id>int</Id>
            <Address>string</Address>
            <SystemType>int</SystemType>
          </InvoiceEmailAddress>
          <PhoneHome>
            <Id>int</Id>
            <CountryCode>string</CountryCode>
            <SystemType>int</SystemType>
            <AreaCode>string</AreaCode>
            <Number>string</Number>
          </PhoneHome>
          <PhoneWork>
            <Id>int</Id>
            <CountryCode>string</CountryCode>
            <SystemType>int</SystemType>
            <AreaCode>string</AreaCode>
            <Number>string</Number>
          </PhoneWork>
          <PhoneMobile>
            <Id>int</Id>
            <CountryCode>string</CountryCode>
            <SystemType>int</SystemType>
            <AreaCode>string</AreaCode>
            <Number>string</Number>
          </PhoneMobile>
          <PhoneFax>
            <Id>int</Id>
            <CountryCode>string</CountryCode>
            <SystemType>int</SystemType>
            <AreaCode>string</AreaCode>
            <Number>string</Number>
          </PhoneFax>
          <Id>int</Id>
          <LanguageId>int</LanguageId>
          <SendMailToCustomer>boolean</SendMailToCustomer>
          <SendSmsToCustomer>boolean</SendSmsToCustomer>
          <GroupName>string</GroupName>
          <GroupReference>string</GroupReference>
        </BookingCustomer>
        <AgentReferencePerson>string</AgentReferencePerson>
      </cd>
    </UpdateCustomer>
  </soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <UpdateCustomerResponse xmlns="http://api.citybreak.com/">
      <UpdateCustomerResult>boolean</UpdateCustomerResult>
    </UpdateCustomerResponse>
  </soap:Body>
</soap:Envelope>

SOAP 1.2

The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.

POST /OnlineOrganization.asmx HTTP/1.1
Host: api.citybreak.com
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <UpdateCustomer xmlns="http://api.citybreak.com/">
      <cd>
        <PaymentMethod>Unknown or CreditCard or Cash or Invoice or GiftCertificate or CallCenter or ExternalInvoice or ValueCard</PaymentMethod>
        <CustomerPersonId>int</CustomerPersonId>
        <ReferencePersonId>int</ReferencePersonId>
        <SalespointId>int</SalespointId>
        <NotificationCustomer>short</NotificationCustomer>
        <NotificationSupplier>boolean</NotificationSupplier>
        <CreditCards>
          <anyType />
          <anyType />
        </CreditCards>
        <DiscountType>NoDiscount or Percent or FixedAmount</DiscountType>
        <DiscountAmount>double</DiscountAmount>
        <DiscountComment>string</DiscountComment>
        <DiscountId>int</DiscountId>
        <CCAcceptUrl>string</CCAcceptUrl>
        <CCDeclineUrl>string</CCDeclineUrl>
        <BookingCustomer>
          <CustomerType>int</CustomerType>
          <NameFirst>string</NameFirst>
          <NameLast>string</NameLast>
          <Salutation>string</Salutation>
          <CivicRegistrationNumber>string</CivicRegistrationNumber>
          <CustomerNumber>string</CustomerNumber>
          <Culture>string</Culture>
          <Company>string</Company>
          <CompanyDepartment>string</CompanyDepartment>
          <CompanyOrganizationId>string</CompanyOrganizationId>
          <Address>
            <Id>int</Id>
            <State>string</State>
            <StreetAddress2>string</StreetAddress2>
            <StreetAddress3>string</StreetAddress3>
            <StreetAddress1>string</StreetAddress1>
            <Country>string</Country>
            <CountryCode>string</CountryCode>
            <PostalCode>string</PostalCode>
            <City>string</City>
          </Address>
          <InvoiceAddress>
            <Id>int</Id>
            <State>string</State>
            <StreetAddress2>string</StreetAddress2>
            <StreetAddress3>string</StreetAddress3>
            <StreetAddress1>string</StreetAddress1>
            <Country>string</Country>
            <CountryCode>string</CountryCode>
            <PostalCode>string</PostalCode>
            <City>string</City>
          </InvoiceAddress>
          <EmailAddress>
            <Id>int</Id>
            <Address>string</Address>
            <SystemType>int</SystemType>
          </EmailAddress>
          <InvoiceEmailAddress>
            <Id>int</Id>
            <Address>string</Address>
            <SystemType>int</SystemType>
          </InvoiceEmailAddress>
          <PhoneHome>
            <Id>int</Id>
            <CountryCode>string</CountryCode>
            <SystemType>int</SystemType>
            <AreaCode>string</AreaCode>
            <Number>string</Number>
          </PhoneHome>
          <PhoneWork>
            <Id>int</Id>
            <CountryCode>string</CountryCode>
            <SystemType>int</SystemType>
            <AreaCode>string</AreaCode>
            <Number>string</Number>
          </PhoneWork>
          <PhoneMobile>
            <Id>int</Id>
            <CountryCode>string</CountryCode>
            <SystemType>int</SystemType>
            <AreaCode>string</AreaCode>
            <Number>string</Number>
          </PhoneMobile>
          <PhoneFax>
            <Id>int</Id>
            <CountryCode>string</CountryCode>
            <SystemType>int</SystemType>
            <AreaCode>string</AreaCode>
            <Number>string</Number>
          </PhoneFax>
          <Id>int</Id>
          <LanguageId>int</LanguageId>
          <SendMailToCustomer>boolean</SendMailToCustomer>
          <SendSmsToCustomer>boolean</SendSmsToCustomer>
          <GroupName>string</GroupName>
          <GroupReference>string</GroupReference>
        </BookingCustomer>
        <AgentReferencePerson>string</AgentReferencePerson>
      </cd>
    </UpdateCustomer>
  </soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <UpdateCustomerResponse xmlns="http://api.citybreak.com/">
      <UpdateCustomerResult>boolean</UpdateCustomerResult>
    </UpdateCustomerResponse>
  </soap12:Body>
</soap12:Envelope>