---
title: "Run a Rebate Calculation"
method: POST
path: "/rebaterecord.calculateset"
tags: ["Rebate Calculations"]
---

# Run a Rebate Calculation

`POST /rebaterecord.calculateset`

Starts the calculation job (JST) of the calculation set. Returns the `JobStatusTracker` object.

## Request body

- object
  - `data` RebateRecordSetCalculation — The type code is RRSC.
    - `typedId` string
    - `rebateRecordSetId` integer
    - `lastUpdateDate` string, date-time
    - `locale` string, nullable
    - `calculationDate` string, date-time, nullable
    - `valid` boolean
    - `sortBy` string, nullable
    - `adhocCalculation` object, nullable
    - `rebateRecordSet` object, nullable
      - `version` integer
      - `typedId` string
      - `targetDate` string, date-time, nullable
      - `label` string
      - `locale` string, nullable
      - `calculationMessages` string, nullable
      - `numberOfItems` integer
      - `keepManualOverrides` boolean
      - `writeOnlyChangedItems` boolean
      - `userGroupEdit` string, nullable
      - `userGroupViewDetails` string, nullable
      - `updatedBy` integer
      - `updateDate` string, date, nullable
      - `createDate` string
      - `createdBy` integer
      - `lastUpdateDate` string
      - `lastUpdateBy` integer
      - `status` 'DRAFT' | 'PENDING' | 'SCHEDULED' | 'PROCESSING' | 'SCHEDULED_DIRTY' | 'ERROR' | 'READY' | 'CANCELLED'
      - `calculationStartDate` string, nullable
      - `calculationDate` string, nullable
      - `id` integer
    - `createDate` string, date-time
    - `calculationMessages` string, nullable
    - `targetDate` string, date-time, nullable
    - `shouldSubmit` boolean
    - `label` string
    - `incremental` boolean
    - `version` integer
    - `rebateRecordSetLabel` string
    - `dtoFilter` object, nullable
    - `isDefault` boolean
    - `incCalculationDate` string, date-time, nullable
    - `createdBy` integer
    - `calculationStartDate` string, date-time, nullable
    - `calculationConfig` object, nullable
      - `skuField` string
      - `targetDateField` string
      - `simulationSet` string
      - `formulaName` string
      - `targetDate` string, date-time
      - `feederFormulaName` string
      - `feederInputParams` object[]
        - `name` string
        - `label` string
        - `lookupTableId` string
        - `url` string
        - `type` string
        - `value` string
        - `valueHint` string
        - `readOnly` boolean
        - `filter` object
        - `parameterGroup` string
        - `required` boolean
        - `labelTranslations` string
        - `addUnknownValues` boolean
        - `typedId` string
        - `alwaysEditable` boolean
        - `inputs` object[]
        - `parameterConfig` object
        - `formattingOptions` object
        - `valueOptions` string[]
      - `inputParams` object[]
      - `mappingParams` object[]
      - `outputElements` object[]
        - `elementName` string
        - `elementLabel` string
        - `formulaName` string
        - `formulaDate` string, date-time
        - `elementGroups` string[]
        - `formatType` 'NUMERIC' | 'NUMERIC_LONG' | 'MONEY' | 'PERCENT' | 'TEXT' | 'MONEY_EUR' | 'MONEY_USD' | 'MONEY_GBP' | 'MONEY_JPY' | 'MONEY_CHF' | 'MONEY_PLN' | 'DATETIME' | 'DATE' | 'INTEGER' | 'LINK' | 'COMPLEX' | 'SPARKLINE'
        - `key` boolean
        - `selected` boolean
        - `displayedInPriceShop` boolean
      - `targetFields` string[]
    - `lastUpdateBy` integer
    - `status` 'DRAFT' | 'PENDING' | 'SCHEDULED' | 'PROCESSING' | 'SCHEDULED_DIRTY' | 'ERROR' | 'READY' | 'CANCELLED'

## Response `200`

OK

- object
  - `response` object
    - `node` string
    - `data` JobStatusTracker[]
      - `processingStart` string, nullable
      - `targetObject` string
      - `typedId` string
      - `lastUpdateDate` string, date-time
      - `trackerType` 'PRICELIST' | 'PRICELIST_DIRTY' | 'SIMULATION' | 'SIMULATION_DIRTY' | 'PRICEGRID' | 'PRICEGRID_DIRTY' | 'CFS' | 'REBATERECORD' | 'PRICEAPI_OBSOLETE' | 'MASSUPDATE' | 'IFP_OBSOLETE' | 'DATAEXPORT' | 'DATAIMPORT' | 'OBJREF' | 'PADATALOAD' | 'CALCULATIONFLOW' | 'PRICELIST_MERGE' | 'DATAARCHIVE' | 'RAT_CALC' | 'MOVE_OX' | 'DELETE_DATA' | 'DB_MIGRATION' | 'SERVER_MIGRATION' | 'DATACLEANUP' | 'QUOTES_MASS_UPDATE' | 'CONTRACTS_MASS_UPDATE' | 'CLAIM' | 'CLAIM_SUBMIT' | 'SIGNATURE' | 'PRODUCT_IMAGES_DELETE' | 'JOB_TRIGGER_CALCULATION' | 'QUOTE' | 'CLIC_MASS_EDIT' | 'MASS_ACTION' | 'CONTRACT' | 'REBATE_AGREEMENT' | 'RRG_SUBMIT' | 'MODEL_CALCULATION' | 'MODEL_PARALLEL_CALCULATION' | 'MODEL_CALCULATION_SEQUENCE' | 'COMPENSATION' | 'COMPENSATION_AGREEMENT' | 'COMPENSATION_RECORD' | 'CALCULATIONGRID' | 'CONDITION_RECORD' | 'DCR_SUBMIT'
      - `threadId` integer, nullable
      - `jobSettings` object
        - `distributedAction` object, nullable
          - `calculableObjectTypedId` string
          - `queueName` string, nullable
          - `runNumber` integer, nullable
          - `partitionName` string, nullable
          - `enableDirtyTracking` boolean, nullable
          - `agentOption1` union
            - object, nullable
            - boolean, nullable
          - `jobSize` integer
        - `jobType` string
        - `uuid` string
        - `calculableObjectTypedId` string
        - `queueName` string, nullable
        - `runNumber` integer
        - `partitionName` string
        - `partitionUUID` string
        - `enableDirtyTracking` boolean
        - `agentOption1` union
          - object, nullable
          - boolean, nullable
        - `jobSize` integer
        - `distributed` boolean
      - `calculationContext` string, nullable
      - `threadUUID` string, nullable
      - `id` integer
      - `calculationResults` string, nullable — Returned only when a JST is fetched using **fetch/JST/{id}** and **fetch/JST** endpoints. Use the **admin.fetchjst** endpoint to fetch the JSTs without possibly large `calculationsResults`, `parameters` and `messages` fields.
      - `processingNode` string, nullable
      - `createDate` string, date-time
      - `jobName` string
      - `concurrencyKey` string
      - `priority` integer
      - `version` integer
      - `createdBy` integer
      - `processingEnd` string, nullable
      - `progress` string, nullable
      - `messages` string, nullable — Returned only when a JST is fetched using **fetch/JST/{id}** and **fetch/JST** endpoints. Use the **admin.fetchjst** endpoint to fetch the JSTs without possibly large `calculationsResults`, `parameters` and `messages` fields.
      - `runNumber` integer
      - `cancelRequested` boolean
      - `parameters` string, nullable — Returned only when a JST is fetched using **fetch/JST/{id}** and **fetch/JST** endpoints. Use the **admin.fetchjst** endpoint to fetch the JSTs without possibly large `calculationsResults`, `parameters` and `messages` fields.
      - `status` 'WAITING_FOR_DISPATCH' | 'QUEUED_FOR_EXECUTION' | 'PROCESSING' | 'FAILED' | 'FINISHED' | 'CANCELLED' | 'INTERRUPTED'
      - `lastUpdateBy` integer
    - `status` integer

---

[API](https://skmtc.net/pricefx/apis/the-pricefx-backend-api.md) · [All operations](https://skmtc.net/pricefx/apis/the-pricefx-backend-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/pricefx/the-pricefx-backend-api/versions/0850b5d6be73/schema)
