-
Web Service URL: https://[SERVER_ADDRESS]/GeneralWS/GeneralData2.asmx
-
MPS Version: From 5.5.0
Description
This method creates or updates a supply model in the provider system. If a part number is provided for a material already registered in the provider system, the method will only update the material's description and internal code.
Syntax
public string ImportSupplyModel(string properties)
Setting Properties
The content of string properties must be text in JSON format containing the properties listed below. For example:
{"DealerName":"dealer","DealerUserEmail":"user@example.com","DealerUserPassword":"k1BAv1w=="}
You don't need to worry about whether property names are uppercase or lowercase; the Web Service is Case-Insensitive.
Properties accepted by the method
|
Property |
Type |
Required |
Allows null |
Allows empty |
Maximum size |
Description |
|
DealerName |
Text |
Yes |
- |
- |
- |
Provider Name |
|
DealerUserEmail |
Text |
Yes |
- |
- |
- |
Provider User Email |
|
DealerUserPassword |
Text |
Yes |
- |
- |
- |
Encrypted User Password |
|
BrandID |
Number |
Yes¹ |
- |
- |
- |
Material manufacturer ID number. Obtained via the GetBrands method |
|
SupplySubFunctionTypeID |
Number |
Yes |
- |
- |
- |
Material type ID number. Obtained via the GetSupplySubFunctionTypes method |
|
SupplyColorID |
Number |
Yes |
- |
- |
- |
Material color ID number. Obtained via the GetColors method |
|
Capacity |
Number |
Yes |
- |
- |
- |
Material page capacity; the value entered must be between 100 and 10,000,000² |
|
PartNumber |
Text |
Yes |
- |
- |
- |
Material PartNumber |
|
SupplyModelQualityID |
Number |
Yes |
- |
- |
- |
Material quality identifier number. Obtained via the GetSupplyModelQualities method |
|
Description |
Text |
No |
No |
Yes |
100 |
Material description |
|
InternalCode |
Text |
No |
No |
Yes |
255 |
Material internal code |
|
Cost |
Decimal |
No |
- |
- |
9999999999999,999999 |
Material internal cost provided by the provider |
¹ You are only required to provide this information when registering content that is not of the “provider” type.
² The limit was increased from 1,000,000 to 10,000,000 starting with version 5.11.0.
Return
If successful, the return value is: [{“SupplyModelID”:number}], where number is the identifier number of the new supply model entered.
Click here to learn more about the response format.
Possible errors returned
Click here to view the possible errors that may be returned and learn their reasons.
Restrictions
-
To execute this method, the specified user must have full permissions in Inventory Administration.