---
title: "Execute an Assigned Logic"
method: POST
path: "/formulamanager.execute/{sku}"
tags: ["Logics", "Products"]
---

# Execute an Assigned Logic

`POST /formulamanager.execute/{sku}`

## Request

- Base URL: `https://companynode.pricefx.com/pricefx/companypartition`
- URL: `https://companynode.pricefx.com/pricefx/companypartition/formulamanager.execute/{sku}`
- Auth: one of:
  - HTTP basic
  - API key in header `X-PriceFx-jwt`
- TypeScript: <https://skmtc.dev/pricefx/apis/the-pricefx-backend-api/docs/formulamanager.execute/:sku/post.ts> (a function with typed inputs; its response is checked against the schema)

Executes a logic that is assigned to the given product (specified by `sku` or `typedId`) and calculates the result. The result content is defined partially by the visibility flags that are part of the logic master data.

## Request body

- object
  - `data` object: Provide inputs for the logic as key-value pairs.

## Response `200`

OK

- object
  - `response` object
    - `node` string
    - `data` object[]
      - `resultName` string, required
      - `resultLabel` string
      - `result` string
      - `excludeFromExport` boolean
      - `warnings` object[]
      - `alertMessage` unknown
      - `alertType` unknown
      - `displayOptions` number
      - `formatType` string
      - `suffix` unknown
      - `resultType` string
      - `cssProperties` unknown
      - `userGroup` unknown
      - `resultGroup` unknown
      - `overrideValueOptions` unknown
      - `overrideAllowEmpty` boolean
      - `labelTranslations` unknown
      - `overridable` boolean
      - `overridden` boolean
      - `resultDescription` unknown
    - `status` number

---

[API](https://skmtc.dev/pricefx/apis/the-pricefx-backend-api.md) - [All operations](https://skmtc.dev/pricefx/apis/the-pricefx-backend-api/llms.txt) - [OpenAPI document](https://skmtc.dev/pricefx/apis/the-pricefx-backend-api/revisions/23d941b00ac0?raw)
