Porta Plus 2 Web Services

<back to all web services

UpdateCustomer

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

HTTP + SOAP11

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

POST /soap11 HTTP/1.1 
Host: api-uk.activesoftswitch.com 
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: 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:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PortaPlus2.API.Web.Dto">
  <ContentId>0</ContentId>
  <FeatureName>String</FeatureName>
  <License>String</License>
  <Customer xmlns:d2p1="http://schemas.datacontract.org/2004/07/PortaPlus2.Common.Models">
    <d2p1:CustomerAddress>
      <d2p1:Address1>String</d2p1:Address1>
      <d2p1:Address2>String</d2p1:Address2>
      <d2p1:Address3>String</d2p1:Address3>
      <d2p1:Address4>String</d2p1:Address4>
      <d2p1:City>String</d2p1:City>
      <d2p1:Country>String</d2p1:Country>
      <d2p1:Postcode>String</d2p1:Postcode>
      <d2p1:Region>String</d2p1:Region>
      <d2p1:Town>String</d2p1:Town>
    </d2p1:CustomerAddress>
    <d2p1:CustomerContact>
      <d2p1:BCC>String</d2p1:BCC>
      <d2p1:Contact1>String</d2p1:Contact1>
      <d2p1:Contact2>String</d2p1:Contact2>
      <d2p1:Email>String</d2p1:Email>
      <d2p1:EmailFrom>String</d2p1:EmailFrom>
      <d2p1:Fax>String</d2p1:Fax>
      <d2p1:Phone1>String</d2p1:Phone1>
      <d2p1:Phone2>String</d2p1:Phone2>
    </d2p1:CustomerContact>
    <d2p1:CustomerStatus>
      <d2p1:Balance>0</d2p1:Balance>
      <d2p1:BillStatus>String</d2p1:BillStatus>
      <d2p1:BilledTo>String</d2p1:BilledTo>
      <d2p1:CreditLimit>0</d2p1:CreditLimit>
      <d2p1:CreditLimitWarning>String</d2p1:CreditLimitWarning>
      <d2p1:DiscountRate>0</d2p1:DiscountRate>
      <d2p1:ISO4217>String</d2p1:ISO4217>
      <d2p1:OpeningBalance>0</d2p1:OpeningBalance>
      <d2p1:ServiceFeatures>
        <d2p1:PortaServiceFeature>
          <d2p1:FlagValue>String</d2p1:FlagValue>
          <d2p1:Name>String</d2p1:Name>
          <d2p1:ServiceAttributes xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
            <d6p1:KeyValueOfstringArrayOfstringty7Ep6D1>
              <d6p1:Key>String</d6p1:Key>
              <d6p1:Value>
                <d6p1:string>String</d6p1:string>
              </d6p1:Value>
            </d6p1:KeyValueOfstringArrayOfstringty7Ep6D1>
          </d2p1:ServiceAttributes>
        </d2p1:PortaServiceFeature>
      </d2p1:ServiceFeatures>
    </d2p1:CustomerStatus>
    <d2p1:ICustomer>0</d2p1:ICustomer>
    <d2p1:IParent>0</d2p1:IParent>
    <d2p1:Notes>String</d2p1:Notes>
    <d2p1:PersonalInformation>
      <d2p1:Company>String</d2p1:Company>
      <d2p1:FirstName>String</d2p1:FirstName>
      <d2p1:IMoh>0</d2p1:IMoh>
      <d2p1:LastName>String</d2p1:LastName>
      <d2p1:Login>String</d2p1:Login>
      <d2p1:MiddleInitials>String</d2p1:MiddleInitials>
      <d2p1:Name>String</d2p1:Name>
      <d2p1:Password>String</d2p1:Password>
      <d2p1:Salutation>String</d2p1:Salutation>
      <d2p1:TaxId>String</d2p1:TaxId>
    </d2p1:PersonalInformation>
    <d2p1:Preferences>
      <d2p1:CldTranslationRule>String</d2p1:CldTranslationRule>
      <d2p1:CustomerType>0</d2p1:CustomerType>
      <d2p1:DiallingRule>
        <d2p1:AC>String</d2p1:AC>
        <d2p1:CC>String</d2p1:CC>
        <d2p1:CS>0</d2p1:CS>
        <d2p1:CSDR>0</d2p1:CSDR>
        <d2p1:CSL>String</d2p1:CSL>
        <d2p1:CSP>String</d2p1:CSP>
        <d2p1:CSPS>String</d2p1:CSPS>
        <d2p1:CSS>0</d2p1:CSS>
        <d2p1:CT>0</d2p1:CT>
        <d2p1:DP>String</d2p1:DP>
        <d2p1:EM>String</d2p1:EM>
        <d2p1:EX>String</d2p1:EX>
        <d2p1:IA>0</d2p1:IA>
        <d2p1:IP>String</d2p1:IP>
        <d2p1:NEX>String</d2p1:NEX>
        <d2p1:NL>0</d2p1:NL>
        <d2p1:OP>String</d2p1:OP>
      </d2p1:DiallingRule>
      <d2p1:IMoh>0</d2p1:IMoh>
      <d2p1:ITimeZone>0</d2p1:ITimeZone>
      <d2p1:IUITimeZone>0</d2p1:IUITimeZone>
      <d2p1:IVDPlan>0</d2p1:IVDPlan>
      <d2p1:InDateFormat>String</d2p1:InDateFormat>
      <d2p1:InTimeFormat>String</d2p1:InTimeFormat>
      <d2p1:MapSendInvoices>String</d2p1:MapSendInvoices>
      <d2p1:MapSendStatistics>String</d2p1:MapSendStatistics>
      <d2p1:MaxAbbreviatedLength>0</d2p1:MaxAbbreviatedLength>
      <d2p1:OutDateFormat>String</d2p1:OutDateFormat>
      <d2p1:OutDateTimeFormat>String</d2p1:OutDateTimeFormat>
      <d2p1:OutTimeFormat>String</d2p1:OutTimeFormat>
      <d2p1:SendInvoices>String</d2p1:SendInvoices>
      <d2p1:SendStatistics>String</d2p1:SendStatistics>
    </d2p1:Preferences>
  </Customer>
  <UpdateServiceFeaturesForDefaultCLI>false</UpdateServiceFeaturesForDefaultCLI>
</UpdateCustomer>

    </soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: application/xml
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:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PortaPlus2.API.Web.Dto">
  <ContentId>0</ContentId>
  <FeatureName>String</FeatureName>
  <License>String</License>
  <Success>false</Success>
</UpdateCustomerResponse>

    </soap:Body>
</soap:Envelope>