UpdateCompanyStocks

  • Web Service URL: https://[SERVER_ADDRESS]/GeneralWS/GeneralData.asmx

  • MPS Version: From 5.3.0

Description

This method updates a Customer Stock in the provider. All data must be provided, as all of it will be changed when using this method.

Syntax

public string UpdateCompanyStocks(string dealerName, string dealerUserEmail, string dealerUserPassword, int stockID, string stockName, string description, int progDays, bool securityOnly, string countryName, string stateName, string cityName, string street, string neighborhood, string postalCode, int number, string additionalInfo, string contactName, string contactEmail, string contactPhone, int customField1InUse, string customField1Name, string customField1Value, int customField2InUse, string customField2Name, string customField2Value, int customField3InUse, string customField3Name, string customField3Value)

Parameters

  • dealerName: Provider name;

  • dealerUserEmail: Provider user email;

  • dealerUserPassword: Encrypted user password;

  • stockID: Identifier of the stock whose data will be changed;

  • stockName: Name of the stock;

  • description: Description of the stock;

  • progDays: Period in days that the next forecast should be performed;

  • securityOnly: Indicates whether the stock forecast is only for safety items;

  • contactName: Name of the stock contact;

  • contactEmail: Email address of the stock contact;

  • contactPhone: Phone number of the stock contact;

  • countryName: Country where the stock is located;

  • stateName: State where the stock is located;

  • cityName: City where the stock is located;

  • street: Street name where the stock is located;

  • neighborhood: Name of the neighborhood where the stock is located;

  • postalCode: Postal code number where the stock is located;

  • number: Number of the location where the stock is located;

  • additionalInfo: Additional stock information;

  • customField1InUse: Indicates whether the first additional field will be used in stock (0 - Do not use; 1 - Use);

  • customField1Name: Name of the first additional field;

  • customField1Value: Value of the first additional field;

  • customField2InUse: Indicates whether the second additional field will be used in the stock (0 - Do not use; 1 - Use);

  • customField2Name: Name of the second additional field;

  • customField2Value: Value of the second additional field;

  • customField3InUse: Indicates whether the third additional field will be used in the stock (0 - Do not use; 1 - Use);

  • customField3Name: Name of the third additional field;

  • customField3Value: Value of the third additional field.

Characters not allowed in parameters and the error that will be returned

Parameter

Unsupported characters

Error

stockName

'+{}[]:;|,

ERR_DATA_INVALIDSTOCKNAME

description

'+{}[]:;|,

ERR_DATA_INVALIDSTOCKDESCRIPTION

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 have full permission in Stock Administration.