Documentation

catalog.vat.update

Scope: catalog Permissions to execute: for all

catalog.vat.update(id, fields)

Method updates VAT rates.

Parameters

ParameterType Description
idinteger Vat rate ID.
fieldsobject Fields, matching to available list of fields.


Examples

BX24.callMethod(
    'catalog.vat.update', 
    {
	  id: 9,
	  fields: {	      
		name: "Tax 15%",
		rate: 15,
		sort: 20,
		active: "Y"
	  }
	}, 
    function(result)
    {
        if(result.error())
            console.error(result.error().ex);
        else
            console.log(result.data());
});

© «Bitrix24», 2001-2024