-
Web Service URL: https://[SERVER_ADDRESS]/GeneralWS/GeneralData.asmx
-
MPS Version: From 5.3.0
Description
This method registers or updates a supply model in the provider. If a part number for a material already registered in the provider is passed, the method will only update the description and internal code of the material.
Syntax
public string ImportSupplyModel(string dealerName, string dealerUserEmail, string dealerUserPassword, int brandID, int supplySubFunctionTypeID, int supplyColorID, string partNumber, int capacity, string description, string internalCode, int supplyModelQualityID)
Parameters
-
dealerName: Provider name;
-
dealerUserEmail: Provider user email;
-
dealerUserPassword: Encrypted user password;
-
brandID: Material manufacturer ID. When registering a provider-type material, the manufacturer provided will be ignored;
-
supplySubFunctionTypeID: Material type ID;
-
supplyColorID: Material color ID;
-
part number: Material part number;
-
capacity: Material capacity in pages. The value entered must be between 100 and 10,000,000¹;
-
description: Material description (not required);
-
internalCode: Internal material code (not required);
-
supplyModelQualityID: Material quality ID.
¹ It went from 1,000,000 to 10,000,000 only starting with version 5.11.0.
Return
If successful, the return is: [{“SupplyModelID”:number}], where number is the identifier number in the new supply model entered.
Click here to learn more about the format of returns.
Possible errors returned
Click here to check the possible errors that can be returned and learn about their reasons.
Restrictions
-
To execute this method, the user must have full permission in Inventory Administration.