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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

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

{"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"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

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