Skip to main content

Settings

Reading and changing settings​

GET /settings/definitions lists every setting you can change, with its default value. A setting that you have never changed has its default value.

PUT /settings/{key} with {"value": "true"} changes a setting, and returns 202 with an empty body. To make the change take effect later, add "updated_at" with the time it should take effect. A request without a value is rejected with 400. A setting that does not exist, that Quantaprice manages, or that your plan does not include is rejected with 403. You can also change settings under Settings → Configuration in the console.

GET /settings lists the settings you have changed, with their values and when each change took effect. GET /settings/{key} returns one of them, and returns 404 for a setting you have never changed. Both accept asOf to read the settings as they were, or will be, at another time; a value set to take effect later appears from that time.

Settings you can change​

SettingDefaultWhat it does
default.tax.areaSESets the tax area for prices with VAT when a request does not specify one
strict.article.validationfalse; on in a new tenantRejects a price for a SKU that has no article
strict.pricelist.validationfalse; on in a new tenantRejects a price for a pricelist that does not exist
ingest.skip.dedupfalseTurns on bulk-load mode for very large loads
require.homogeneous.currencyfalseRejects a price query across pricelists in different currencies
require.homogeneous.vat_modefalseRejects a price query across NET and GROSS pricelists
fx.rate.auto.updatetrueFetches the European Central Bank's rates every day
fx.base.currency, fx.markup.percent, fx.threshold.weakening.percent, fx.threshold.strengthening.percentEUR, 0, 2, 2Control how prices inherited from a pricelist in another currency are converted; see Exchange rates
change.events.enabledfalseDelivers changes to your webhooks, if your plan includes webhooks
retention.enabled, retention.max.versions, retention.history.ms, retention.keep.reference.pricesSee belowSet how much price history is kept, if your plan includes history retention
release.requiredfalsePrice changes wait for approval in a price release, if your plan includes price approval
admin.developer.modetrueShows the developer tools in the console; see The console

require.homogeneous.currency​

Description​

When this setting is on, all pricelists in a price query must have the same currency. Use it when you want consistent prices without implicit currency conversion.

Default value: false

Behaviour​

ConditionResult
All pricelists have the same currencyThe request is processed normally
The pricelists have different currencies400 with an error message
currency_code is given and does not match the pricelists' currency400 with an error message

Error responses​

Different currencies:

json
{
"status": 400,
"error": "Bad Request",
"message": "Heterogeneous currencies found in pricelists: [EUR, SEK]. All pricelists must have the same currency when setting require.homogeneous.currency is enabled."
}

Currency mismatch:

json
{
"status": 400,
"error": "Bad Request",
"message": "Pricelist currency EUR does not match requested currency SEK"
}

Configuration​

Turn it on with the settings API:

text
PUT /settings/require.homogeneous.currency
Content-Type: application/json

{ "value": "true" }

Use cases​

  • B2B pricing: customers always see prices in the currency of their contract.
  • Regional stores: prices in different currencies are never compared by mistake.
  • Compliance: invoices are always in a single currency.

require.homogeneous.vat_mode​

Description​

When this setting is on, all pricelists in a price query must have the same VAT mode: all NET or all GROSS. This prevents prices with and without VAT from being mixed, which could lead to incorrect price comparisons.

Behaviour​

ConditionResult
All pricelists are NETThe request is processed normally
All pricelists are GROSSThe request is processed normally
A mix of NET and GROSS pricelists400 with an error message

Error response​

json
{
"timestamp": "2026-01-13T06:45:00.000Z",
"status": 400,
"error": "Bad Request",
"message": "Heterogeneous VAT modes found in pricelists: [NET, GROSS]. All pricelists must have the same VAT mode when setting require.homogeneous.vat_mode is enabled."
}

Configuration​

Turn it on with the settings API:

text
PUT /settings/require.homogeneous.vat_mode
Content-Type: application/json

{ "value": "true" }

Use cases​

  • Consistent display: all prices shown either include VAT or exclude it.
  • Invoicing: NET and GROSS prices are never mixed on the same document.
  • Accurate comparisons: prices with different VAT treatment are never compared.
  • require.homogeneous.currency: requires the same currency across pricelists.

strict.article.validation​

Description​

When this setting is on, Quantaprice accepts a price only for a SKU whose article exists and is not deleted. This keeps prices for unknown or removed products out of your data.

Default value: false. A new tenant starts with it on.

Behaviour​

ConditionResult
The SKU's article exists and is in force at the price's startThe price is written
The SKU has no article, or its article is deleted or not yet in force at the price's startThe price is rejected, even if it is unchanged: 400 for a single price, or listed in failed in a batch

Configuration​

Turn it on with the settings API:

text
PUT /settings/strict.article.validation
Content-Type: application/json

{ "value": "true" }

Use cases​

  • Data integrity: prices are created only for known products.
  • Safe migrations: typing errors and outdated SKUs in bulk imports are caught.
  • Enforced workflow: an article must be created before it can be priced.

strict.pricelist.validation​

Description​

When this setting is on, Quantaprice accepts a price only for a pricelist that exists, and is not deleted, at the price's start. This keeps prices for mistyped or removed pricelists out of your data.

Default value: false. A new tenant starts with it on.

Behaviour​

ConditionResult
The pricelist exists at the price's startThe price is written
No pricelist has the code, or the pricelist is deleted or not yet created at the price's startThe price is rejected, even if it is unchanged: 400 for a single price, or listed in failed in a batch

When the setting is off, a price for an unknown or deleted pricelist is stored, and appears once a pricelist with that code exists.

Configuration​

Turn it on with the settings API:

text
PUT /settings/strict.pricelist.validation
Content-Type: application/json

{ "value": "true" }

Use cases​

  • Data integrity: prices are uploaded only to known pricelists.
  • Safe migrations: incorrect pricelist codes in bulk imports are caught.
  • Enforced workflow: a pricelist must be created before prices are uploaded to it.

ingest.skip.dedup​

Description​

Bulk-load mode. Normally, a price identical to the current one is accepted, but nothing is stored and no change is recorded. With this setting on, that check is skipped and every price is written, which makes very large loads faster.

Default value: false

Turn it on for a large first load, and off when the load is complete. While it is on, sending unchanged prices again stores redundant versions and records a change in the changelog for each one.

Configuration​

text
PUT /settings/ingest.skip.dedup
Content-Type: application/json

{ "value": "true" }

See Loading data.

default.tax.area​

Description​

The tax area used for prices with VAT when a request can omit the tax area and does: the console's article pages, and API reads such as GET /price/pricelists-for-sku/{sku}. POST /price/query always requires a tax_area.

Default value: SE

fx.rate.auto.update​

Description​

When this setting is on, Quantaprice fetches exchange rates from the European Central Bank (ECB) every 24 hours, at no fixed time of day.

Default value: true

Behaviour​

ConditionResult
On, and no rate stored yetThe ECB's rates for the last 90 days are fetched, each in force from the day it was published
On, and the ECB publishes new ratesThe rates are fetched and stored automatically every 24 hours
On, but the ECB has no new rates (weekends and holidays)No update; the most recent rates stay in force
OffNo automatic fetching; upload rates with POST /fx/daily, or fetch them with POST /fx/fetch

Configuration​

text
PUT /settings/fx.rate.auto.update
Content-Type: application/json

{ "value": "true" }

Use cases​

  • No manual rate updates: rates stay current automatically for prices in several currencies.
  • Current conversions: price queries always use the latest exchange rates.

Rates are stored against EUR, and a conversion between two other currencies goes through EUR. See Exchange rates.

change.events.enabled​

Description​

When this setting is on, Quantaprice delivers change events to your registered webhooks. The changelog records every change regardless of this setting, and you can always poll it.

Webhook deliveries must be included in your plan; this setting turns them on for your tenant.

Default value: false

Behaviour​

ConditionResult
On, and included in your planChanges are delivered to active webhooks
Off, or not included in your planNothing is delivered to webhooks; the changelog is unaffected

Configuration​

text
PUT /settings/change.events.enabled
Content-Type: application/json

{ "value": "true" }

Use cases​

  • Data synchronisation: poll the changelog to keep external systems in step with Quantaprice.
  • Downstream updates: use webhooks to be notified in near real time when prices change.
  • Audit trail: see what changed, when and by whom.
  • Event-driven workflows: start downstream processes when prices are updated.

See Change events for the full description of the changelog and webhooks.

retention.enabled, retention.max.versions, retention.history.ms, retention.keep.reference.prices​

Description​

These settings limit how much price history is kept for each SKU and pricelist. They are available when your plan includes history retention, and your plan also sets the highest values you can choose.

SettingDefaultEffect
retention.enabledfalseTurns retention on
retention.max.versions0Keeps at most this many versions; 0 means no limit
retention.history.ms2592000000 (30 days)Keeps the versions from the last N milliseconds, and the version in force when that period begins
retention.keep.reference.pricesfalseNever removes a version that was in force during the 30 days before the start of a current or scheduled price, for each SKU across all pricelists; takes precedence over the two limits above

The version in force, all versions scheduled after it, and the few most recent versions are always kept. See Historical pricing.

Configuration​

text
PUT /settings/retention.enabled
Content-Type: application/json

{ "value": "true" }

release.required​

Description​

release.required (default false) makes every price change wait in a price release until someone who made none of its changes publishes it. It is available when your plan includes price approval; otherwise it reads as off and cannot be switched on. GET /release answers "required": true while it is on. See Price approval.

Configuration​

text
PUT /settings/release.required
Content-Type: application/json

{ "value": "true" }

See also​

  • Querying prices: settings such as require.homogeneous.currency affect how queries behave.
  • Change events: change.events.enabled controls the webhook deliveries described there.
  • Exchange rates: fx.rate.auto.update controls whether rates are fetched from the ECB.
  • API reference: the full specification of PUT /settings/{key}.