Porta Plus 2 Web Services

<back to all web services

AuthenticateCustomer

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

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/AuthenticateCustomer HTTP/1.1 
Host: api-uk.activesoftswitch.com 
Content-Type: text/jsv
Content-Length: length

{
	Login: String,
	Password: String,
	FailedLogin: False,
	AllowSubCustomerLogin: False,
	LoginByAssumeIdentity: False,
	AllowServicePasswordLogin: False,
	BlockedCustomerAssumeIdentity: False,
	License: String,
	ContentId: 0,
	FeatureName: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	UserId: 0,
	Email: String,
	Distributor: False,
	firstname: String,
	lastname: String,
	note: String,
	extensionNumber: String,
	productName: String,
	companyname: String,
	AdminAscustomer: False,
	ITerminationCustomer: 0,
	ITerminationCustomerEuro: 0,
	ITerminationCustomerDollar: 0,
	IEnv: 0,
	AdminasReseller: False,
	IAccount: 0,
	AccountId: String,
	LoginType: String,
	IEnvRootUser: 0,
	ICustomerClass: 0,
	Currency: String,
	Representative: String,
	CustomerID: String,
	IsSubcustomer: False,
	IsSubCustomerAccount: False,
	IParent: 0,
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String
			}
		]
	},
	Success: False,
	Id: 0
}