Documentation

crm.item.productrow.list

crm.item.productrow.list({order: ?{} = null, filter: {}, start: ?number = 0})

Method returns array with product SKUs

{
	"productRows": []
}

where each array element is a structure similar to the method result crm.item.productrow.get.

Parameters

Parameter Description Available from version
order List for sorting, where the key is a field, and value - ASC or DESC.
filter List for filtering. Examples of filters are listed below. Keys =ownerType and =ownerId are required.
start Shift for page navigation.

Example

Find all product SKUs, bound to the quote with ID 1

{
	"filter": {
		"=ownerType": "Q",
		"=ownerId": 1
	}
}

Find all product SKUs, bound to SPA with entityTypeId = 128 and with ID 9, with discount more than 10% or price lower than 1000

{
	"filter": {
		"=ownerType": "T80",
		"=ownerId": 9,
		"0": {
			"logic": "OR",
			"0": {
				">discountRate": 10
			},
			"1": {
				"<price": 1000
			}
		}
	}
}

Find all product SKUs, bound with quote with ID 2, bound with products from catalog

{
	"filter": {
		"=ownerType": "Q",
		"=ownerId": 2,
		"!=productId": 0
	}
}


© «Bitrix24», 2001-2022
Up