Documentation

sale.order.add

sale.order.add(fields)

The method adds an order.

When successful, returns order resource in response body.

Parameters

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


Examples

BX24.callMethod(
    'sale.order.add', 
    {
	  fields: {
		siteId: 's1',
        userId: 1,
        orderTopic: '',
        responsibleId: 1,
        userDescription: '',
        personTypeId: 1
	  }
	}, 
    function(result)
    {
        if(result.error())
            console.error(result.error().ex);
        else
            console.log(result.data());
});


© «Bitrix24», 2001-2022
Up