Documentation

sale.persontype.add

sale.persontype.add(fields)

The method adds type of payer.

When successful, returns payer type resource in response body.

Parameters

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


Examples

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


© «Bitrix24», 2001-2024