addProductToSupplierPriceList

Add a new row to a supplier price list.

Contact ERPLY Helpdesk to enable Supplier Price Lists module on your account. (If not enabled, API returns error 1006.)

To create a supplier price list use the saveSupplierPriceList API call.

If you want to remove any items from the supplier price list, use the deleteProductsFromSupplierPriceList API call.
To edit products in the supplier price list use the editProductInSupplierPriceList API call.
To get the products from the supplier price list, use the getProductsInSupplierPriceList API call.

Input parameters

Parameter name Description Possible value Required
supplierPriceListID  Supplier price list ID.  Integer  yes  
productID  Product ID.  Integer  yes  
price  Discounted net sales price for a product. Price must be a non-negative decimal.  Decimal  yes  
amount  Available only if Quantity discounts module is enabled on your account. The quantity threshold from which the specified price will apply.

Amount must be a non-negative integer. It is not possible to add the same product with the same amount twice. 
Integer    
****  ****  The following fields are informative, and setting these values does not affect the behavior of API or back office.

Custom integrations can use these fields as they see fit, and implement the respective features — eg. enforce "Master Pack Quantity" and "Minimum Order Quantity" on a custom-built reordering form.  
 
supplierCode  Supplier Product Code.  String(50)    
masterPackQuantity  Master Pack Quantity must be non-negative integer.  Integer    
minimumOrderQuantity  Minimum Order Quantity must be non-negative integer.  Integer    
importCode  Import Code.  String(50)    
countryID  Country ID.  Integer    

Response

Field name Type Description
supplierPriceListProductID  Integer  ID of the created supplier price list row.