Porta Plus 2 Web Services

<back to all web services

CreateAccount

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

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

HTTP + CSV

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

POST /csv/reply/CreateAccount HTTP/1.1 
Host: 7el.co 
Content-Type: text/csv
Content-Length: length

AccountRequest,License,ContentId,FeatureName
"{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}",String,0,String

HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

Index,Extension,ISubscription,Password,IAccount,ID,AccLogin,AccPassword,FirstName,LastName,Email,Label,License,ContentId,FeatureName
0,String,0,String,0,String,String,String,String,String,String,String,String,0,String