addProductToPriceList

Add a new row to a price list.

To create a price list use the savePriceList API call.

If you want to remove any items from the price list, use the deleteProductInPriceList API call.
To edit products in price list use the editProductInPriceList API call.
To get the products from the price list, use the getProductsInPriceList API call.

Input parameters

Parameter name Description Possible value Required
priceListID 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
subsidy Available only if Price list row subsidy and other fields module is enabled on your account.

Subsidy must be a non-negative decimal.
Decimal
subsidyTypeID Available only if Price list row subsidy and other fields module is enabled on your account. Integer
page Available only if Price list row subsidy and other fields module is enabled on your account.

Page must be a non-negative integer.
Integer
positionOnPage Available only if Price list row subsidy and other fields module is enabled on your account.

Position on page must be a non-negative integer.
Integer
forecastUnits Available only if Price list row subsidy and other fields module is enabled on your account.

Forecast units must be a non-negative integer.
Integer

Response

Field name Type Description
priceListProductID Integer ID of the created price list row