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.
- autoType: boolean
Renewal Auto renewal flag
- billingType: stringFormat: date-timenullable
End Date Billing end date
- billingType: stringFormat: date-timenullable
Start Date Billing start date
- contractType: string
Bundle Id max length:50nullableThe 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
- contractType: stringnullable
Id Ignored on duplicate — the server assigns the new contract's id
- customType: integernullable
Billing Frequency Custom billing frequency
- customType: integernullable
Duration Custom duration
- customType: Customfieldvaluesnullable
Field Values Properties: 1Revenue-item custom field values, keyed by field id (rifd-...)
- customType: stringFormat: date-timenullable
Opt Out Date Custom opt out date
- customType: integernullable
Service Duration Custom service duration
- dealType: stringnullable
Id Deal ID — auto-populated from the parent contract on create; any client-supplied value is ignored
- discountType: numbernullable
Amount Discount amount
- eqType: integernullable
Payments Billing Frequency Equal payments billing frequency
- eqType: integernullable
Payments Num Of Payments Equal payments number of payments
- followsType: booleannullable
Bundle Start Date 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
- isType: booleannullable
Discount Percentage Is discount percentage flag
- itemType: integernullable
Order Display order index (0-based)
- noteType: stringmax length:8192nullable
Free-text note on the service; blank is stored as no note
- priceType: integernullable
Period What price_per_unit covers: 2 (one year) for a year; null or 1 (one month) for a month
- priceType: numbernullable
Per Unit Price per unit in the contract's local currency — negative on a discount or credit line
- quantityType: numbernullable
Quantity — fractional allowed, negative for a downsell
- scheduledType: array of RevenueItemsScheduledPaymentInputnullable
Payments Properties: 4Scheduled payments for this revenue item
- serviceType: stringFormat: date-timenullable
End Date Service end date
- serviceType: stringnullable
Item Id Service item ID
- serviceType: stringnullable
Item Name Service item name
- serviceType: stringnullable
Item Pricing Id Service item pricing ID
- serviceType: stringFormat: date-timenullable
Start Date Service start date
- totalType: numbernullable
Total amount — negative on a downsell line
- totalType: numbernullable
Local Total amount in local currency — negative on a downsell line

