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 .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /json/reply/CustomerSite HTTP/1.1 
Host: 7el.co 
Content-Type: application/json
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: application/json
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}