Documentation

sale.cashbox.handler.update

sale.cashbox.handler.update(id, fields)

Method updates cash register REST handler data.

Parameters

Parameter Description Available from version
ID Required. Updated handler ID.
FIELDS Required. Updated fields values.


Example

BX.rest.callMethod(
    "sale.cashbox.handler.update",
    {
        "ID": 1,
        "FIELDS":
        {
            "NAME": "New name"
        }
    },
    function(result)
    {
        if(result.error())
            console.error(result.error());
        else
            console.dir(result.data());
    }
);


© «Bitrix24», 2001-2022
Up