DuplicateRevenueItemInput

A single service line in the duplication payload.

Same shape as RevenueItemInput (the create-service body), with three differences: contract_id is optional and ignored — the server assigns the new contract's id — custom_field_values carries the revenue-item-level custom column values (rifd- fields) so they survive the re-create, and contract_bundle_id names the source bundle a line is in, for the same reason. Without them, custom values and bundles would be silently dropped even on unmodified lines, because the duplicate re-creates each item from the payload rather than copying the source row server-side. Service dates arrive final from the client (any shift-dates edits already applied); the server persists them as-is.

  • Auto renewal flag

  • Billing end date

  • Billing start date

  • The source contract's bundle this line is in. The duplicate gets its own copy of that bundle, with its configured services and discount; the line's total is its own, before the bundle discount, which is spread over the copied lines

  • Ignored on duplicate — the server assigns the new contract's id

  • Custom billing frequency

  • Custom duration

  • Revenue-item custom field values, keyed by field id (rifd-...)

    Properties: 1
  • Custom opt out date

  • Custom service duration

  • Deal ID — auto-populated from the parent contract on create; any client-supplied value is ignored

  • Discount amount

  • Equal payments billing frequency

  • Equal payments number of payments

  • Whether this bundle line follows its bundle's start date, as on the source. The copied bundle starts on the date of the lines that follow it, so shifted dates move it with them

  • Is discount percentage flag

  • Display order index (0-based)

  • Free-text note on the service; blank is stored as no note

  • What price_per_unit covers: 2 (one year) for a year; null or 1 (one month) for a month

  • Price per unit in the contract's local currency — negative on a discount or credit line

  • Quantity — fractional allowed, negative for a downsell

  • Scheduled payments for this revenue item

    Properties: 4
  • Service end date

  • Service item ID

  • Service item name

  • Service item pricing ID

  • Service start date

  • Total amount — negative on a downsell line

  • Total amount in local currency — negative on a downsell line