Replace Deal Line Items
PUT /deals/{deal_id}/line-items
Replace a deal’s line items. The FULL set, not a delta.
A non-empty set makes the deal amount the sum of the lines (audited in the deal history). An empty set clears the lines and keeps the typed amount.
Authorizations
Parameters
Path Parameters
Deal id.
Deal id.
Header Parameters
Request Body required
The FULL desired set of line items. An empty list clears them.
object
One line item in a replace request. Money is in CENTS.
line_total is not accepted: the server recomputes it from
unit_amount, quantity and discount_pct.
object
Unit price in cents.
Responses
200
Successful Response
object
A deal’s line items with its derived amount and quote-mismatch flag.
amount and linked_quote_total are in DOLLARS (the deal’s own unit);
line-item money is in cents. amount_mismatch is true when the deal amount
and its most authoritative linked quote disagree by more than half a cent.
object
A deal line item. Money fields are in cents.
object
object
Whether there are more pages
Items per page
Current page number (1-indexed)
Total number of items
422
Validation Error