Product Items in Payment: Overview of Methods

If you are developing integrations for Bitrix24 using AI tools (Codex, Claude Code, Cursor), connect to the MCP server so that the assistant can utilize the official REST documentation.

The methods crm.item.payment.product.* manage product items within CRM payments. For example, you can add a specific product to a payment, change its quantity, or remove it from the payment.

This is necessary to detail the composition of the order in financial documents. Bitrix24 links products from the catalog with payments, allowing for accurate accounting of items during transactions.

Quick navigation: all methods

Linking Product Items in Payment with Other Objects

CRM Payment. All methods in this group are executed in the context of a payment identified by paymentId.

Product Catalog. Serves as the source of information about the product. Data from the catalog is transferred to the CRM product line and is then used when forming the item in the payment.

CRM Product Line. The methods in this group work with the product line through rowId. The product line contains data about the product: identifier, name, quantity, price, unit of measurement, and other parameters. You can obtain rowId using the method crm.item.productrow.list. Within the payment, you can only manage the quantity of the product.

CRM Object. A payment always belongs to a deal or an invoice — only these objects support payments. Therefore, product items in a payment exist only for them.

How to Work with Product Items in Payment

  1. Prepare the paymentId of the desired payment using the main methods crm.item.payment.*.
  2. Obtain the rowId of the desired product using the method crm.item.productrow.list, or a list of products that have not been paid for yet using the method crm.item.productrow.getAvailableForPayment.
  3. Add a product item using the method crm.item.payment.product.add.
  4. Check the composition of the items using the method crm.item.payment.product.list.
  5. If necessary, adjust the quantity using the method crm.item.payment.product.setQuantity or remove the item using the method crm.item.payment.product.delete.

Overview of Methods

Scope: crm

Who can execute the methods: depending on the method

Method

Description

crm.item.payment.product.add

Adds a product item to the payment

crm.item.payment.product.list

Returns a list of product items in the payment

crm.item.payment.product.delete

Removes a product item from the payment

crm.item.payment.product.setQuantity

Changes the quantity of the product in the payment item

Continue Learning