Documentation

crm.item.payment.product.add

Scope: catalog Permissions to execute: for all

crm.item.payment.product.add(paymentId: number, rowId: number, quantity : ?number)

Adds a product into a payment.

Parameters

Parameter Description
paymentId Payment identifier.
rowId Product item ID inside an entity. Can be retrieved from crm.item.productrow.list.
quantity Product quantity.

Example

BX.rest.callMethod(
	'crm.item.payment.product.add',
	{
		paymentId: 179,
		rowId: 33,
		quantity : 1
	},
	function(result) 
	{
		if (result.error())
		{
			console.error(result.answer.error_description);
		}
		else
		{
			console.log(result.data());
		}
	}
);


© «Bitrix24», 2001-2024