Porta Plus 2 Web Services

<back to all web services

AccountAlias

The following routes are available for this service:
GET/getaliases/{License}/{IAccount}/{GetLongestAliases}/{AniPrefix}
GET/getaliases/{License}/{IAccount}/{GetforSIP}
GET/addalias/{License}/{IAccount}/{Number}/{CountryCode}/{Authenticate}/{DID}
GET/addalias/{License}/{IAccount}/{Number}/{Authenticate}/{DID}
POST/addalias
GET/deletealias/{License}/{Number}/{DID}
GET/GetAliasBalance/{License}/{IAccount}/{Number}/{DID}/{CountryCode}

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/AccountAlias HTTP/1.1 
Host: 7el.co 
Content-Type: text/csv
Content-Length: length

IAccount,Authenticate,Number,CountryCode,DID,GetLongestAliases,AniPrefix,GetforSIP,License,ContentId,FeatureName
0,False,String,0,False,False,False,False,String,0,String

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

AccountAliases,success,Balance,License,ContentId,FeatureName
"[{i_master_account:0,id:String,blocked:String,i_account:0}]",False,0,String,0,String