Documentation

sale.persontype.update

sale.persontype.update(id, fields)

Th method updates payer type fields.

When successful, returns [link=9279099]payer type resource [/link] in response body.

Parameters

ParameterType Description
idstring Number of payer type.
fieldsobject Fields, corresponding to available list of fields .


Examples

BX24.callMethod(
    'sale.persontype.update', 
    {
	  id: 101,
	  fields: {
	    name: 'Individual entity',
	    }
	  }
	}, 
    function(result)
    {
        if(result.error())
            console.error(result.error().ex);
        else
            console.log(result.data());
});


© «Bitrix24», 2001-2022
Up