Documentation

catalog.price.update

Scope: catalog Permissions: all

catalog.price.update(id, fields)

Method updates fields for product price.

Parameters

ParameterType Description
idinteger Product price ID.
fieldsobject Fields, matching to available list of fields.


Examples

BX24.callMethod(
    'catalog.price.update', 
    {
	  id: 1,
	  fields: {	      
		catalogGroupId: 1,
		currency: "USD",
		price: 5000,
		producId: 1
	  }
	}, 
    function(result)
    {
        if(result.error())
            console.error(result.error().ex);
        else
            console.log(result.data());
});

© «Bitrix24», 2001-2024