Documentation

sale.payment.update

sale.payment.update(id, fields)

The method updates payment item fields.

When successful, returns payment resource in response body.

Parameters

ParameterType Description
idstring Number of payment item.
fieldsobject Fields, corresponding to available list of fields .


Examples

BX24.callMethod(
    'sale.payment.update', 
    {
	  id: 101,
	  fields: {
		paid: Y
	  }
	}, 
    function(result)
    {
        if(result.error())
            console.error(result.error().ex);
        else
            console.log(result.data());
});


© «Bitrix24», 2001-2024