RD Station CRM icon

RD Station CRM

Integração com RD Station CRM API v2 - API v2 completa

Actions64

Produto na Negociação → Atualizar

AI-generated

Summary

Updates a product line already attached to an RD Station CRM deal (amount, price, discount, discount type) via a PUT to /deals/{dealId}/products/{dealProductId}, returning the updated record.

Inputs

  • dealId (required) — ID of the deal that holds the product line.
  • dealProductId (required) — ID of the deal-product entry to update (the line item ID, not the catalog product ID).
  • dealProductFields — Collection of fields to change: Quantidade (amount), Preço (price), Desconto (discount), Tipo de Desconto (discount_type: percentage or value). Only fields you add are sent. Note that adding a field with value 0 still sends 0.
  • updateMode — Replace (default) or Append. Shown for update operations, but the append logic only merges text fields (name, description, job_title, custom text fields). The deal-product fields are numeric/option values, so append has no practical effect here, other than an extra GET request.
  • appendSeparator — Separator used in append mode (default ' | '). Not meaningful for deal-product fields.

Output shape

One item per input item containing the updated deal-product record returned by the API (the response's data object, or the full response if no data).

If the collection is empty, an empty data object is sent in the PUT. On error, the node throws a NodeApiError, or emits an item with {error: message} when Continue On Fail is enabled. Uses the rdStationCrmOAuth2Api credential against the RD Station CRM API v2.

Examples

Example 1: Change the quantity and price of a product line on a deal

dealId=12345, dealProductId=abc789, dealProductFields: amount=3, price=199.90

Example 2: Apply a 10% discount to an existing deal product

dealId and dealProductId from earlier List step, dealProductFields: discount=10, discount_type=percentage

Links

Discussion