Documentation

sale.order.update

sale.order.update(id, fields)

The method updates order fields.

When successful, returns order resource in response body.

Parameters

ParameterType Description
orderIdstring Number of order.
fieldsobject Fields, corresponding to available list of fields .


Examples

BX24.callMethod(
    'sale.order.update', 
    {
	  id: 91,
	  fields: {	      
		comments: 'test'
	  }
	}, 
    function(result)
    {
        if(result.error())
            console.error(result.error().ex);
        else
            console.log(result.data());
});


© «Bitrix24», 2001-2022
Up