PublicAPI.CRM.Inpayment.SetCancelledStatus ELMA API Documentation
Set the "Cancelled" status
 
 
Syntax

public void SetCancelledStatus(
	Inpayment inpayment,
	string comment
)

Parameters

inpayment
Type: Inpayment
Inpayment, for which the "Cancelled" status is set. Object. Access path: PublicAPI.CRM.Inpayment
comment
Type: System String
Status Change Comment (optional parameter)
Examples

//load an inpayment by ID 
var inpayment = PublicAPI.CRM.Inpayment.Load(3);
//status change comment 
var comment = "Comment";

//set the "Cancelled" status
PublicAPI.CRM.Inpayment.SetCancelledStatus(inpayment, comment);
See Also