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 .jsv suffix or ?format=jsv

HTTP + JSV

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

POST /jsv/oneway/BatchCustomerCreation HTTP/1.1 
Host: 7el.co 
Content-Type: text/jsv
Content-Length: length

{
	CustData: 
	[
		{
			Customer: 
			{
				Customer: 
				{
					CustomerAddress: 
					{
						Address1: String,
						Address2: String,
						Address3: String,
						Address4: String,
						City: String,
						Region: String,
						Postcode: String,
						Country: String,
						Town: String
					},
					CustomerContact: 
					{
						Email: String,
						BCC: String,
						EmailFrom: String,
						Phone1: String,
						Phone2: String,
						Contact1: String,
						Contact2: String,
						Fax: String
					},
					CustomerStatus: 
					{
						OpeningBalance: 0,
						Balance: 0,
						CreditLimit: 0,
						DiscountRate: 0,
						ServiceFeatures: 
						[
							{
								Name: String,
								FlagValue: String,
								ServiceAttributes: 
								{
									String: 
									[
										String
									]
								}
							}
						],
						BillStatus: String,
						BilledTo: String,
						CreditLimitWarning: String,
						ISO4217: String
					},
					Preferences: 
					{
						SendStatistics: String,
						MaxAbbreviatedLength: 0,
						OutDateFormat: String,
						OutDateTimeFormat: String,
						OutTimeFormat: String,
						InDateFormat: String,
						InTimeFormat: String,
						DiallingRule: 
						{
							CC: String,
							AC: String,
							IA: 0,
							OP: String,
							DP: String,
							IP: String,
							EM: String,
							EX: String,
							NL: 0,
							CT: 0,
							CS: 0,
							CSDR: 0,
							CSS: 0,
							CSP: String,
							CSPS: String,
							CSL: String,
							NEX: String
						},
						IMoh: 0,
						SendInvoices: String,
						ITimeZone: 0,
						IUITimeZone: 0,
						CustomerType: 0,
						IVDPlan: 0,
						CldTranslationRule: String,
						MapSendInvoices: String,
						MapSendStatistics: String
					},
					PersonalInformation: 
					{
						FirstName: String,
						MiddleInitials: String,
						LastName: String,
						Salutation: String,
						Company: String,
						Login: String,
						Password: String,
						Name: String,
						TaxId: String,
						IMoh: 0
					},
					ICustomer: 0,
					IParent: 0,
					Notes: String
				},
				CustomerDefaultValues: 
				{
					CallShopEnabled: False,
					ICustomerType: 0,
					PromotionalCredit: 0,
					IBillingPeriod: 0,
					IAcl: 0,
					ICustomerClass: 0,
					ITemplate: 0,
					IRep: 0,
					ITimeZone: 0,
					ILang: String,
					ITariff: 0,
					IVDPaln: 0,
					TaxId: String,
					CreditLimit: 0,
					SendStatistics: False,
					MaxAbbreviatedLength: 0,
					CldTranslationRule: 0,
					CliInTranslationRule: String,
					CliOutTranslationRule: String,
					DidBatch: String,
					SaleCommissionRate: 0,
					PaymentCommissionRate: 0,
					ServiceFlags: String,
					ISO4217: String,
					ICountry: String,
					countryCode: 0,
					IDistributor: 0,
					RTPProxy: Direct,
					UseMobileNoAsCli: False,
					i_spendingPlan: 0,
					IIncomingTariff: 0,
					EmailFrom: String
				},
				License: String,
				ContentId: 0,
				FeatureName: String
			},
			Account: 
			{
				AccountRequest: 
				{
					ICustomer: 0,
					AccountsToCreate: 
					[
						{
							Index: 0,
							Extension: String,
							ISubscription: 0,
							Password: String,
							AcntId: String,
							FirstName: String,
							LastName: String,
							Email: String,
							ActivationDate: String,
							Label: String
						}
					],
					DefaultValues: 
					{
						BillingModel: ReChargeVoucher,
						ITariff: 0,
						BatchNamePrefix: String,
						LifeTime: 0,
						ProductId: 0,
						ITimeZone: 0,
						IVRLanguage: String,
						ServiceFlags: String,
						CreditLimit: 0,
						UmEnabled: False,
						FollowMeEnabled: False,
						EcommerceEnabled: False,
						OutDateTimeFormat: String,
						BCC: String,
						IRoutingPlan: 0,
						RTPProxy: Direct,
						ServiceFeatures: 
						[
							{
								Name: String,
								FlagValue: String,
								ServiceAttributes: 
								{
									String: 
									[
										String
									]
								}
							}
						],
						IParent: 0,
						DefaultAnsweringMode: Reject
					},
					AccountPrefix: String,
					AccountRandomDigitLength: 0,
					CustomerLogin: String,
					SiteType: String,
					CustomerPassword: String,
					AccountId: String,
					SIPContact: String
				},
				License: String,
				ContentId: 0,
				FeatureName: String
			},
			ExtensionNo: String,
			AliasNumber: String,
			DisplayName: String,
			DisplayNumber: String
		}
	],
	ProductID: 0,
	ResellerID: 0,
	License: String,
	ContentId: 0,
	FeatureName: String
}