Porta Plus 2 Web Services

<back to all web services

PortaAccountVDPlan

The following routes are available for this service:
GET/GetAccountVDPlansbyMonth/{License}/{IAccount}/{Month}
GET/GetAccountVDPlans/{License}/{IAccount}/{Month}
GET/GetCustomerVDPlans/{License}/{ICustomer}/{Month}

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

{
	IAccount: 0,
	ICustomer: 0,
	Month: CurrentMonth,
	License: String,
	ContentId: 0,
	FeatureName: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	AccountVDPlans: 
	{
		String: 
		[
			{
				Threshold: 0,
				CurrentDiscount: 0,
				DestinationGroup: String,
				ICustomer: 0,
				Service: String,
				Rate_unit: String,
				iDest_group: 0,
				IService: 0,
				Used: 0,
				Remaining: 0,
				PeakLevel: String,
				NextDiscountLevel: String,
				DiscountInfo: String,
				IVDPlan: 0,
				CurrentDiscountInfo: String,
				NextBillDate: String,
				Precedence: String,
				I_avd_counter: String
			}
		]
	},
	License: String,
	ContentId: 0,
	FeatureName: String
}