Documentation

crm.item.payment.product.list

Scope: catalog Permissions to execute: for all

crm.item.payment.product.list(paymentId: number, filter: ?{}, order : ?{})

Gets list of product items (products or services) inside a payment.

Parameters

Parameter Description
paymentId Payment ID.
filter List for filtering.
order List for sorting, where field contains a key and value – ASC or DESC.
startString type. Specifies how many entries must be skipped in the result. The value must be divisible by 50 Due to technical restrictions this parameter value must always be divisible by 50. For example, in case of value 50, the result shows 51st entry and the first 50 entries will be skipped. . In case of value -1 disables the count.

Example

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


© «Bitrix24», 2001-2024