---
title: "Validate CPQ Formula"
method: POST
path: "/invoice_estimate/cpq/formulas/validate"
---

# Validate CPQ Formula

`POST /invoice_estimate/cpq/formulas/validate`

## Request

- Base URL: `https://dc-region.zuperpro.com/api`
- URL: `https://dc-region.zuperpro.com/api/invoice_estimate/cpq/formulas/validate`
- Auth: API key in header `x-api-key`

Validates an expression's syntax. If evaluate=true, both expression and expression_map are required and the expression is actually evaluated with sample values, then rounded per rounding_mechanism using the company's configured decimal rounding.

## Request body

- object
  - `formula` object, required
    - `expression` string, required
    - `expression_map` object[]
    - `rounding_mechanism` string
  - `evaluate` boolean: Required expression_map when true; actually evaluates the expression with sample values.

## Response `200`

200

## Other responses

- `400`: 400

## Changes

- **2026-11-03** `3c21bc232e16`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/zuper/apis/zuper-pro-api/changes/invoice_estimate/cpq/formulas/validate/post.md)

---

[API](https://skmtc.dev/zuper/apis/zuper-pro-api.md) - [All operations](https://skmtc.dev/zuper/apis/zuper-pro-api/llms.txt) - [OpenAPI document](https://skmtc.dev/zuper/apis/zuper-pro-api/revisions/3c21bc232e16?raw)
