-
Web Service URL: https://[SERVER_ADDRESS]/GeneralWS/GeneralData.asmx
-
MPS Version: From 5.3.0
Description
This method updates a site in a provider's company. All data must be entered, as all of it will be changed when using this method.
Syntax
public string UpdateSite(string dealerName, string dealerUserEmail, string dealerUserPassword, int enterpriseID, int siteID, string siteName, string countryName, string stateName, string cityName, string street, string neighborhood, string postalCode, int number, string additionalInfo)
Parameters
-
dealerName: Provider name;
-
dealerUserEmail: Provider user email;
-
dealerUserPassword: Encrypted user password;
-
enterpriseID: ID of the company whose website will be updated;
-
siteID: Identifier of the site whose data will be changed;
-
siteName: Site name;
-
countryName: Country where the site is located;
-
stateName: State where the site is located;
-
cityName: City where the site is located;
-
street: Name of the street where the site is located;
-
neighborhood: Name of the neighborhood where the site is located;
-
postalCode: Postal code number of the site;
-
number: Number of the location where the site is located;
-
additionalInfo: Additional information about where the site is located.
Characters not allowed in parameters and the error that will be returned
|
Parameter |
Unsupported characters |
Error |
|
siteName |
'+|, |
ERR_DATA_INVALIDSITENAME |
|
countryName |
!@#$%¨&*=§[]{}ºª?/°;:><\/+-.,_()³£¢¬²+|´`´~^+\ |
ERR_DATA_INVALIDCOUNTRYNAME |
|
stateName |
!@#$%¨&*=§[]{}ºª?/°;:><\/+-.,_()³£¢¬²+|´`´~^+\ |
ERR_DATA_INVALIDSTATENAME |
|
cityName |
!@#$%¨&*=§[]{}ºª?/°;:><\/+-.,_()³£¢¬²+|´`´~^+\ |
ERR_DATA_INVALIDCITYNAME |
|
street |
!@#$%¨&*=§[]{}ºª?/°;:><\/+-.,_()³£¢¬²+|´`´~^+\ |
ERR_DATA_INVALIDSTREET |
|
neighborhood |
!@#$%¨&*=§[]{}ºª?/°;:><\/+-.,_()³£¢¬²+|´`´~^+\ |
ERR_DATA_INVALIDNEIGHBORHOOD |
|
postalCode |
!@#$%¨&*=§[]{}ºª?/°;:><\/+.,_()³£¢¬²+|´`´~^+\ |
ERR_DATA_INVALIDPOSTALCODE |
Return
Click here to learn more about the return format.
Possible errors returned
Click here to check the possible errors that may be returned and learn about their reasons.
Restrictions
-
To execute this method, the user must be an Administrator with the provider.