Porta Plus 2 Web Services

<back to all web services

BatchCustomerCreation

The following routes are available for this service:
POST/BatchCreateCustomers

To override the Content-type in your clients 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 /xml/oneway/BatchCustomerCreation HTTP/1.1 
Host: 7el.co 
Content-Type: application/xml
Content-Length: length

<BatchCustomerCreation 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 i:nil="true" />
  <CustData>
    <CsvData>
      <Account>
        <ContentId>0</ContentId>
        <FeatureName>String</FeatureName>
        <License>String</License>
        <AccountRequest xmlns:d5p1="http://schemas.datacontract.org/2004/07/PortaPlus2.Common.Models">
          <d5p1:AccountId>String</d5p1:AccountId>
          <d5p1:AccountPrefix>String</d5p1:AccountPrefix>
          <d5p1:AccountRandomDigitLength>0</d5p1:AccountRandomDigitLength>
          <d5p1:AccountsToCreate>
            <d5p1:AccountInformation>
              <d5p1:AcntId>String</d5p1:AcntId>
              <d5p1:ActivationDate>String</d5p1:ActivationDate>
              <d5p1:Email>String</d5p1:Email>
              <d5p1:Extension>String</d5p1:Extension>
              <d5p1:FirstName>String</d5p1:FirstName>
              <d5p1:ISubscription>0</d5p1:ISubscription>
              <d5p1:Index>0</d5p1:Index>
              <d5p1:Label>String</d5p1:Label>
              <d5p1:LastName>String</d5p1:LastName>
              <d5p1:Password>String</d5p1:Password>
            </d5p1:AccountInformation>
          </d5p1:AccountsToCreate>
          <d5p1:CustomerLogin>String</d5p1:CustomerLogin>
          <d5p1:CustomerPassword>String</d5p1:CustomerPassword>
          <d5p1:DefaultValues>
            <d5p1:BCC>String</d5p1:BCC>
            <d5p1:BatchNamePrefix>String</d5p1:BatchNamePrefix>
            <d5p1:BillingModel>ReChargeVoucher</d5p1:BillingModel>
            <d5p1:CreditLimit>0</d5p1:CreditLimit>
            <d5p1:DefaultAnsweringMode>Reject</d5p1:DefaultAnsweringMode>
            <d5p1:EcommerceEnabled>false</d5p1:EcommerceEnabled>
            <d5p1:FollowMeEnabled>false</d5p1:FollowMeEnabled>
            <d5p1:IParent>0</d5p1:IParent>
            <d5p1:IRoutingPlan>0</d5p1:IRoutingPlan>
            <d5p1:ITariff>0</d5p1:ITariff>
            <d5p1:ITimeZone>0</d5p1:ITimeZone>
            <d5p1:IVRLanguage>String</d5p1:IVRLanguage>
            <d5p1:LifeTime>0</d5p1:LifeTime>
            <d5p1:OutDateTimeFormat>String</d5p1:OutDateTimeFormat>
            <d5p1:ProductId>0</d5p1:ProductId>
            <d5p1:RTPProxy>Direct</d5p1:RTPProxy>
            <d5p1:ServiceFeatures>
              <d5p1:PortaServiceFeature>
                <d5p1:FlagValue>String</d5p1:FlagValue>
                <d5p1:Name>String</d5p1:Name>
                <d5p1:ServiceAttributes xmlns:d9p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
                  <d9p1:KeyValueOfstringArrayOfstringty7Ep6D1>
                    <d9p1:Key>String</d9p1:Key>
                    <d9p1:Value>
                      <d9p1:string>String</d9p1:string>
                    </d9p1:Value>
                  </d9p1:KeyValueOfstringArrayOfstringty7Ep6D1>
                </d5p1:ServiceAttributes>
              </d5p1:PortaServiceFeature>
            </d5p1:ServiceFeatures>
            <d5p1:ServiceFlags>String</d5p1:ServiceFlags>
            <d5p1:UmEnabled>false</d5p1:UmEnabled>
          </d5p1:DefaultValues>
          <d5p1:ICustomer>0</d5p1:ICustomer>
          <d5p1:SIPContact>String</d5p1:SIPContact>
          <d5p1:SiteType>String</d5p1:SiteType>
        </AccountRequest>
      </Account>
      <AliasNumber>String</AliasNumber>
      <Customer>
        <ContentId>0</ContentId>
        <FeatureName>String</FeatureName>
        <License>String</License>
        <Customer xmlns:d5p1="http://schemas.datacontract.org/2004/07/PortaPlus2.Common.Models">
          <d5p1:CustomerAddress>
            <d5p1:Address1>String</d5p1:Address1>
            <d5p1:Address2>String</d5p1:Address2>
            <d5p1:Address3>String</d5p1:Address3>
            <d5p1:Address4>String</d5p1:Address4>
            <d5p1:City>String</d5p1:City>
            <d5p1:Country>String</d5p1:Country>
            <d5p1:Postcode>String</d5p1:Postcode>
            <d5p1:Region>String</d5p1:Region>
            <d5p1:Town>String</d5p1:Town>
          </d5p1:CustomerAddress>
          <d5p1:CustomerContact>
            <d5p1:BCC>String</d5p1:BCC>
            <d5p1:Contact1>String</d5p1:Contact1>
            <d5p1:Contact2>String</d5p1:Contact2>
            <d5p1:Email>String</d5p1:Email>
            <d5p1:EmailFrom>String</d5p1:EmailFrom>
            <d5p1:Fax>String</d5p1:Fax>
            <d5p1:Phone1>String</d5p1:Phone1>
            <d5p1:Phone2>String</d5p1:Phone2>
          </d5p1:CustomerContact>
          <d5p1:CustomerStatus>
            <d5p1:Balance>0</d5p1:Balance>
            <d5p1:BillStatus>String</d5p1:BillStatus>
            <d5p1:BilledTo>String</d5p1:BilledTo>
            <d5p1:CreditLimit>0</d5p1:CreditLimit>
            <d5p1:CreditLimitWarning>String</d5p1:CreditLimitWarning>
            <d5p1:DiscountRate>0</d5p1:DiscountRate>
            <d5p1:ISO4217>String</d5p1:ISO4217>
            <d5p1:OpeningBalance>0</d5p1:OpeningBalance>
            <d5p1:ServiceFeatures>
              <d5p1:PortaServiceFeature>
                <d5p1:FlagValue>String</d5p1:FlagValue>
                <d5p1:Name>String</d5p1:Name>
                <d5p1:ServiceAttributes xmlns:d9p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
                  <d9p1:KeyValueOfstringArrayOfstringty7Ep6D1>
                    <d9p1:Key>String</d9p1:Key>
                    <d9p1:Value>
                      <d9p1:string>String</d9p1:string>
                    </d9p1:Value>
                  </d9p1:KeyValueOfstringArrayOfstringty7Ep6D1>
                </d5p1:ServiceAttributes>
              </d5p1:PortaServiceFeature>
            </d5p1:ServiceFeatures>
          </d5p1:CustomerStatus>
          <d5p1:ICustomer>0</d5p1:ICustomer>
          <d5p1:IParent>0</d5p1:IParent>
          <d5p1:Notes>String</d5p1:Notes>
          <d5p1:PersonalInformation>
            <d5p1:Company>String</d5p1:Company>
            <d5p1:FirstName>String</d5p1:FirstName>
            <d5p1:IMoh>0</d5p1:IMoh>
            <d5p1:LastName>String</d5p1:LastName>
            <d5p1:Login>String</d5p1:Login>
            <d5p1:MiddleInitials>String</d5p1:MiddleInitials>
            <d5p1:Name>String</d5p1:Name>
            <d5p1:Password>String</d5p1:Password>
            <d5p1:Salutation>String</d5p1:Salutation>
            <d5p1:TaxId>String</d5p1:TaxId>
          </d5p1:PersonalInformation>
          <d5p1:Preferences>
            <d5p1:CldTranslationRule>String</d5p1:CldTranslationRule>
            <d5p1:CustomerType>0</d5p1:CustomerType>
            <d5p1:DiallingRule>
              <d5p1:AC>String</d5p1:AC>
              <d5p1:CC>String</d5p1:CC>
              <d5p1:CS>0</d5p1:CS>
              <d5p1:CSDR>0</d5p1:CSDR>
              <d5p1:CSL>String</d5p1:CSL>
              <d5p1:CSP>String</d5p1:CSP>
              <d5p1:CSPS>String</d5p1:CSPS>
              <d5p1:CSS>0</d5p1:CSS>
              <d5p1:CT>0</d5p1:CT>
              <d5p1:DP>String</d5p1:DP>
              <d5p1:EM>String</d5p1:EM>
              <d5p1:EX>String</d5p1:EX>
              <d5p1:IA>0</d5p1:IA>
              <d5p1:IP>String</d5p1:IP>
              <d5p1:NEX>String</d5p1:NEX>
              <d5p1:NL>0</d5p1:NL>
              <d5p1:OP>String</d5p1:OP>
            </d5p1:DiallingRule>
            <d5p1:IMoh>0</d5p1:IMoh>
            <d5p1:ITimeZone>0</d5p1:ITimeZone>
            <d5p1:IUITimeZone>0</d5p1:IUITimeZone>
            <d5p1:IVDPlan>0</d5p1:IVDPlan>
            <d5p1:InDateFormat>String</d5p1:InDateFormat>
            <d5p1:InTimeFormat>String</d5p1:InTimeFormat>
            <d5p1:MapSendInvoices>String</d5p1:MapSendInvoices>
            <d5p1:MapSendStatistics>String</d5p1:MapSendStatistics>
            <d5p1:MaxAbbreviatedLength>0</d5p1:MaxAbbreviatedLength>
            <d5p1:OutDateFormat>String</d5p1:OutDateFormat>
            <d5p1:OutDateTimeFormat>String</d5p1:OutDateTimeFormat>
            <d5p1:OutTimeFormat>String</d5p1:OutTimeFormat>
            <d5p1:SendInvoices>String</d5p1:SendInvoices>
            <d5p1:SendStatistics>String</d5p1:SendStatistics>
          </d5p1:Preferences>
        </Customer>
        <CustomerDefaultValues xmlns:d5p1="http://schemas.datacontract.org/2004/07/PortaPlus2.Common.Models">
          <d5p1:CallShopEnabled>false</d5p1:CallShopEnabled>
          <d5p1:CldTranslationRule>0</d5p1:CldTranslationRule>
          <d5p1:CliInTranslationRule>String</d5p1:CliInTranslationRule>
          <d5p1:CliOutTranslationRule>String</d5p1:CliOutTranslationRule>
          <d5p1:CreditLimit>0</d5p1:CreditLimit>
          <d5p1:DidBatch>String</d5p1:DidBatch>
          <d5p1:EmailFrom>String</d5p1:EmailFrom>
          <d5p1:IAcl>0</d5p1:IAcl>
          <d5p1:IBillingPeriod>0</d5p1:IBillingPeriod>
          <d5p1:ICountry>String</d5p1:ICountry>
          <d5p1:ICustomerClass>0</d5p1:ICustomerClass>
          <d5p1:ICustomerType>0</d5p1:ICustomerType>
          <d5p1:IDistributor>0</d5p1:IDistributor>
          <d5p1:IIncomingTariff>0</d5p1:IIncomingTariff>
          <d5p1:ILang>String</d5p1:ILang>
          <d5p1:IRep>0</d5p1:IRep>
          <d5p1:ISO4217>String</d5p1:ISO4217>
          <d5p1:ITariff>0</d5p1:ITariff>
          <d5p1:ITemplate>0</d5p1:ITemplate>
          <d5p1:ITimeZone>0</d5p1:ITimeZone>
          <d5p1:IVDPaln>0</d5p1:IVDPaln>
          <d5p1:MaxAbbreviatedLength>0</d5p1:MaxAbbreviatedLength>
          <d5p1:PaymentCommissionRate>0</d5p1:PaymentCommissionRate>
          <d5p1:PromotionalCredit>0</d5p1:PromotionalCredit>
          <d5p1:RTPProxy>Direct</d5p1:RTPProxy>
          <d5p1:SaleCommissionRate>0</d5p1:SaleCommissionRate>
          <d5p1:SendStatistics>false</d5p1:SendStatistics>
          <d5p1:ServiceFlags>String</d5p1:ServiceFlags>
          <d5p1:TaxId>String</d5p1:TaxId>
          <d5p1:UseMobileNoAsCli>false</d5p1:UseMobileNoAsCli>
          <d5p1:countryCode>0</d5p1:countryCode>
          <d5p1:i_spendingPlan>0</d5p1:i_spendingPlan>
        </CustomerDefaultValues>
      </Customer>
      <DisplayName>String</DisplayName>
      <DisplayNumber>String</DisplayNumber>
      <ExtensionNo>String</ExtensionNo>
    </CsvData>
  </CustData>
  <License>String</License>
  <ProductID>0</ProductID>
  <ResellerID>0</ResellerID>
</BatchCustomerCreation>