Documentation

crm.item.payment.add

crm.item.payment.add(entityId: number, entityTypeId: number, fields : {paySystemId})

This method adds a new payment.

Parameters

Parameter Description
entityId CRM entity ID.
entityTypeId CRM entity type ID according to CRM Constants.
fields Field paySystemId – payment system ID.

Example

BX.rest.callMethod(
	'crm.item.payment.add',
	{
		entityId: 21,
		entityTypeId: 2
	},
	function(result) 
	{
		if (result.error())
		{
			console.error(result.answer.error_description);
		}
		else
		{
			console.log(result.data());
		}
	}
);


© «Bitrix24», 2001-2024