Porta Plus 2 Web Services

<back to all web services

CreateCustomer

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: 7el.co 
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: CreateCustomer

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

<CreateCustomer 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>
  <CustomerDefaultValues xmlns:d2p1="http://schemas.datacontract.org/2004/07/PortaPlus2.Common.Models">
    <d2p1:CallShopEnabled>false</d2p1:CallShopEnabled>
    <d2p1:CldTranslationRule>0</d2p1:CldTranslationRule>
    <d2p1:CliInTranslationRule>String</d2p1:CliInTranslationRule>
    <d2p1:CliOutTranslationRule>String</d2p1:CliOutTranslationRule>
    <d2p1:CreditLimit>0</d2p1:CreditLimit>
    <d2p1:DidBatch>String</d2p1:DidBatch>
    <d2p1:EmailFrom>String</d2p1:EmailFrom>
    <d2p1:IAcl>0</d2p1:IAcl>
    <d2p1:IBillingPeriod>0</d2p1:IBillingPeriod>
    <d2p1:ICountry>String</d2p1:ICountry>
    <d2p1:ICustomerClass>0</d2p1:ICustomerClass>
    <d2p1:ICustomerType>0</d2p1:ICustomerType>
    <d2p1:IDistributor>0</d2p1:IDistributor>
    <d2p1:IIncomingTariff>0</d2p1:IIncomingTariff>
    <d2p1:ILang>String</d2p1:ILang>
    <d2p1:IRep>0</d2p1:IRep>
    <d2p1:ISO4217>String</d2p1:ISO4217>
    <d2p1:ITariff>0</d2p1:ITariff>
    <d2p1:ITemplate>0</d2p1:ITemplate>
    <d2p1:ITimeZone>0</d2p1:ITimeZone>
    <d2p1:IVDPaln>0</d2p1:IVDPaln>
    <d2p1:MaxAbbreviatedLength>0</d2p1:MaxAbbreviatedLength>
    <d2p1:PaymentCommissionRate>0</d2p1:PaymentCommissionRate>
    <d2p1:PromotionalCredit>0</d2p1:PromotionalCredit>
    <d2p1:RTPProxy>Direct</d2p1:RTPProxy>
    <d2p1:SaleCommissionRate>0</d2p1:SaleCommissionRate>
    <d2p1:SendStatistics>false</d2p1:SendStatistics>
    <d2p1:ServiceFlags>String</d2p1:ServiceFlags>
    <d2p1:TaxId>String</d2p1:TaxId>
    <d2p1:UseMobileNoAsCli>false</d2p1:UseMobileNoAsCli>
    <d2p1:countryCode>0</d2p1:countryCode>
    <d2p1:i_spendingPlan>0</d2p1:i_spendingPlan>
  </CustomerDefaultValues>
</CreateCustomer>

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

<CreateCustomerResponse 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>
  <ICustomer>0</ICustomer>
</CreateCustomerResponse>

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