Porta Plus 2 Web Services

<back to all web services

GetAccount

The following routes are available for this service:
GET/GetAccountByIAccount/{License}/{IAccount}
POST/GetAccountsByAccountIDs
GET/GetAccountByICustomer/{License}/{ICustomer}
GET/GetAccountByICustomerIProduct/{License}/{ICustomer}/{IProduct}/{getbyIprod}
GET/GetAccountByICustomerProductSS/{License}/{ICustomer}/{ProductSearchterm}/{getbySearchTerm}
GET/GetAccountByAccountLogin/{License}/{Login}/{Password}
POST/GetAccount
GET/GetAccountByAccountID/{License}/{AccountID}
GET/GetAccountByICustomer/{License}/{ICustomer}/{forHuntgroups}

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

{
	Login: String,
	Password: String,
	ICustomer: 0,
	IAccount: 0,
	AccountID: String,
	accounts: 
	[
		{
			Login: String,
			Password: String,
			ICustomer: 0,
			IAccount: 0,
			AccountID: String
		}
	],
	getbyIprod: False,
	getbySearchTerm: False,
	IProduct: String,
	ProductSearchterm: String,
	forHuntgroups: False,
	License: String,
	ContentId: 0,
	FeatureName: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	Accounts: 
	[
		{
			Id: String,
			AccountId: String,
			IAccount: 0,
			ICustomer: 0,
			redirect_number: String,
			DestinationName: String,
			active: String,
			account_dr_active: String,
			BillingModel: ReChargeVoucher,
			ISO4217: String,
			Balance: 0,
			Blockedfield: String,
			Blocked: False,
			UMEnabledfield: String,
			UMEnabled: False,
			IParent: 0,
			UILogin: String,
			UIPassword: String,
			VoipPassword: String,
			CreditLimit: 0,
			IProduct: 0,
			BatchNamePrefix: String,
			IBatch: 0,
			IRoutingPlan: 0,
			IEnv: 0,
			Email: String,
			BCC: String,
			Phone1: String,
			Phone2: String,
			Contact1: String,
			Contact2: String,
			Address: String,
			CompanyName: String,
			BillStatus: String,
			FollowMeEnabled: String,
			ServiceFlags: String,
			IVDPlan: 0,
			Note: String,
			Company: String,
			Name: String,
			FirstName: String,
			MiddleInitials: String,
			LastName: String,
			Address1: String,
			Address2: String,
			Address3: String,
			Address4: String,
			Town: String,
			Region: String,
			City: String,
			Postcode: String,
			Country: String,
			PhoneNo: String,
			Salutation: String,
			Fax: String,
			State: String,
			DeactiveDestinations: String,
			SubscriberFName: String,
			SubscriberLName: String,
			ExtensionNumber: String,
			ActivationDate: 0001-01-01,
			ICustomerSite: 0,
			DefaultValidIdentity: String,
			customUrl: String,
			currentProfileImage: String,
			VoiceDialing: False,
			TranslateIncomingCLI: False,
			activationDate: String,
			activationDateDateTime: 0001-01-01,
			lastUsage: 0001-01-01,
			firstUsageTime: 0001-01-01,
			issueDate: 0001-01-01,
			inactivityExpireTime: 0
		}
	],
	License: String,
	ContentId: 0,
	FeatureName: String
}