Documentation

catalog.roundingRule.add

Scope: catalog Permissions to execute: for all

catalog.roundingRule.add(fields)

Method adds a price rounding rule.

Parameters

ParameterType Description
fieldsobject Fields, matching available list of fields.

Examples

BX24.callMethod(
    'catalog.roundingRule.add', 
	{
        fields: {
			  catalogGroupId: 14,
			  price: 1000,
			  roundType: 4,
			  roundPrecision: 100
        }
    },
    function(result) {
        if (result.error())
            console.error(result.error().ex);
        else
            console.log(result.data());
    });

© «Bitrix24», 2001-2024