Documentation

sale.order.update

Scope: catalog Permissions to execute: for all

sale.order.update(id, fields)

The method updates order fields.

When successful, returns order resource in response body.

Parameters

ParameterType Description
Idstring 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-2024