Recompute CPQ Proposal

Changed on

Re-evaluates a CPQ proposal's pricing after something upstream changed (e.g. the CPQ template/formula was edited, product/material pricing changed, or job measurements were updated), without re-running the whole proposal-creation flow. Reuses the same formula/line-item engine as proposal generation and runs fully synchronously (no job queue) so the caller gets immediate results.

Only valid for estimates with estimate_status DRAFT or AWAIT_RESPONSE, with a CPQ-type proposal_template and a linked job. If the estimate was AWAIT_RESPONSE, it's pushed back to DRAFT as part of the recompute.

post/estimate/{estimate_uid}/recompute_cpq

Request

  • Base URL
    https://dc-region.zuperpro.com/api
  • URL
    https://dc-region.zuperpro.com/api/estimate/{estimate_uid}/recompute_cpq
  • Auth
    API key in header x-api-key

Path parameters

estimate_uidstring required

Request body

measurement_uidsstring[]

Optional override of which job measurements to recompute against. Defaults to the estimate's stored scope.

proposal_generation_typestring

Optional override, e.g. MERGE or SPLIT_GROUP. A stored SPLIT_PROPOSAL scope cannot be widened beyond the single measurement it was generated from.

include_parent_measurementsboolean

If true, discards both the requested and stored measurement scope/generation type and recomputes over the job's full parent-measurement set instead.

Response

200

typestring
messagestring

Example response

{
  "type": "success"
}

Changes