Porta Plus 2 Web Services

<back to all web services

CustomerSite

The following routes are available for this service:
GET/GetCustomerSites/{License}/{i_customer}/{get_service_features}
GET/GetCustomerSiteInfo/{License}/{i_customer}/{i_customer_site}
POST/AddCustomerSite
POST/UpdateCustomerSite
GET/DeleteCustomerSite/{License}/{i_customer_site}
GET/AssignAccountToSite/{License}/{i_account}/{i_customer_site}

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

{
	i_customer: 0,
	get_service_features: 0,
	i_customer_site: 0,
	i_account: 0,
	site_info: 
	{
		i_customer_site: 0,
		name: String,
		i_customer: 0,
		service_features: 
		[
			{
				Name: String,
				FlagValue: String,
				ServiceAttributes: 
				{
					String: 
					[
						String
					]
				}
			}
		],
		used: 0
	},
	License: String,
	ContentId: 0,
	FeatureName: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	sites: 
	[
		{
			i_customer_site: 0,
			name: String,
			i_customer: 0,
			service_features: 
			[
				{
					name: String,
					flag_value: String,
					effective_flag_value: String,
					attributes: 
					[
						{
							name: String,
							values: 
							[
								String
							],
							effective_values: 
							[
								String
							]
						}
					],
					locked: 0,
					lockedSpecified: False,
					defined: 0,
					definedSpecified: False,
					locks: 
					[
						String
					]
				}
			],
			used: 0,
			usedSpecified: False
		}
	],
	siteInfo: 
	{
		i_customer_site: 0,
		name: String,
		i_customer: 0,
		service_features: 
		[
			{
				name: String,
				flag_value: String,
				effective_flag_value: String,
				attributes: 
				[
					{
						name: String,
						values: 
						[
							String
						],
						effective_values: 
						[
							String
						]
					}
				],
				locked: 0,
				lockedSpecified: False,
				defined: 0,
				definedSpecified: False,
				locks: 
				[
					String
				]
			}
		],
		used: 0,
		usedSpecified: False
	},
	added_i_customer_site: 0,
	isCustomerSiteDeleted: False,
	isAccountAssignedToSite: False,
	updated_i_customer_site: 0
}