Porta Plus 2 Web Services

<back to all web services

PortaResellerInfo

The following routes are available for this service:
GET/GetResellers/{License}
GET/Swoop_GetResellers/{License}/{i_env}
GET/GetDirectCustomer/{License}/{getDirectCustomer}
GET/GetResellerInfo/{License}/{ICustomer}
GET/GetResellerUsage/{License}/{ICustomer}/{FromDate}/{ToDate}

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

{
	ICustomer: 0,
	FromDate: String,
	ToDate: String,
	getDirectCustomer: False,
	i_env: 0,
	License: String,
	ContentId: 0,
	FeatureName: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	lstResellers: 
	[
		{
			Name: String,
			ICustomer: 0
		}
	],
	ResellerInfo: 
	{
		Name: String,
		ICustomer: 0
	},
	lstResellerDetails: 
	[
		{
			CustomerID: String,
			ChargedAmount: 0,
			ChargedQuantity: 0,
			FirstName: String,
			LastName: String,
			MiddleName: String,
			DistributorName: String,
			CompanyName: String,
			Representative: String
		}
	],
	License: String,
	ContentId: 0,
	FeatureName: String
}