Queries and mutations for managing Project settings in the platform.

Queries

Get Project

QUERYproject

Get Project limits

Mutations

Update Project settings

MUTATIONupdateProject
Arguments
version​
Long​
actions​

Output types

ProjectProjection

Project contains information about project.

key​
String​
name​
String​
languages​
Array of Locale​
trialUntil​
carts​
shoppingLists​
version​
Long​
externalOAuth​
searchIndexing​
messages​
countries​
Array of Country​
currencies​
Array of Currency​
shippingRateInputType​
createdAt​
discounts​
inventory​
BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta
productCatalogModel​
Can be Classic, InMigration, or Modular​

CartsConfiguration

deleteDaysAfterLastModification​
Int​
allowAddingUnpublishedProducts​
Boolean​
countryTaxRateFallbackEnabled​
Boolean​
totalPriceDiscountDoesNotReduceExternalTax​
Boolean​
taxRoundingMode​
Can be HalfDown, HalfEven, or HalfUp​
priceRoundingMode​
Can be HalfDown, HalfEven, or HalfUp​

RoundingMode

HalfDown
[Round half down](https://en.wikipedia.org/wiki/Rounding#Round_half_down)
HalfEven
[Round half to even](https://en.wikipedia.org/wiki/Rounding#Round_half_to_even). Default rounding mode as used in IEEE 754 computing functions and operators.
HalfUp
[Round half up](https://en.wikipedia.org/wiki/Rounding#Round_half_up)

ShoppingListsConfiguration

deleteDaysAfterLastModification​
Int​
Default value for the deleteDaysAfterLastModification parameter of the ShoppingListDraft.

ExternalOAuth

You can only configure one external OAuth 2.0 endpoint per Project. To authenticate using multiple external services (such as social network logins), use a middle layer authentication service that delegates to those services and exposes a single RFC 7662-compliant OAuth 2.0 Token Introspection endpoint to the commercetools APIs. This middle layer is a custom service that you build and host. It receives the token introspection request from the APIs, routes the token validation to the appropriate external service, and returns the introspection response in the expected format.
url​
String​

URL with authorization header.

authorizationHeader​
String​

Must not contain any leading or trailing whitespaces. Partially hidden on retrieval.

SearchIndexingConfiguration

Controls indexing of resources to be provided on high performance read-only search endpoints.

products​
Configuration for the Product Projection Search and Search Term Suggestions APIs.
orders​
Configuration for the Order Search feature.
customers​
Configuration for the Customer Search feature.
businessUnits​
Configuration for the Business Unit Search feature.

SearchIndexingConfigurationValues

Current status of resource indexing. Present on Projects from 1 February 2019.

Can be Activated, Indexing, or Deactivated​
lastModifiedBy​

IDs and references that last modified the SearchIndexingConfigurationValues.

lastModifiedAt​

Date and time (UTC) the Project was last updated. Only present on Projects last modified after 1 February 2019.

SearchIndexingStatus

Activated
Indexing
Deactivated

OrderSearchConfiguration

status​
Can be Activated, or Deactivated​
lastModifiedBy​
lastModifiedAt​

OrderSearchStatus

Activated
Deactivated

CustomerSearchConfiguration

Can be Activated, or Deactivated​
lastModifiedBy​
lastModifiedAt​

CustomerSearchStatus

Activated
Deactivated

BusinessUnitSearchConfiguration

Can be Activated, or Deactivated​
lastModifiedBy​
lastModifiedAt​

BusinessUnitSearchStatus

Activated
Deactivated

MessagesConfiguration

Holds the configuration for the Messages Query feature for the Project.
enabled​
Boolean​
When true, the Messages Query feature is active.
deleteDaysAfterCreation​
Int​
Specifies the number of days each Message should be available via the Messages Query API. For Messages older than the specified period, it is not guaranteed that they are still accessible via the API. This field may not be present on Projects created before 8 October 2018.

ShippingRateInputType

type​
String​

DiscountsConfiguration

productVsCartDiscountCombination​
Can be Stacking, or BestDeal​
discountCombinationMode​
Can be Stacking, or BestDeal​

DiscountCombinationMode

Stacking
BestDeal

InventoryConfiguration

BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta
reservationExpirationInMinutes​
Int​
The number of minutes after which a Reservation expires. To use the ReserveOnCart inventory mode, this field must be set.
releaseExpiredReservations​
Boolean​
Whether Reservations are marked as Expired once their reservationExpirationInMinutes is reached. The reserved inventory is then made available. If set to false, tracking Line Items with expired reservations becomes your responsibility.

ProductCatalogModel

Classic
Default. Variants embedded in products.
InMigration
Transitional. Modular variants are used by default for reads (e.g. carts), for testing secondary systems before switching fully to Modular, while classic variant updates remain allowed.
Modular
Variants as separate entities.

ProjectCustomLimitsProjection

Contains information about the limits of your project.

query​
products​
shoppingLists​
extensions​
subscriptions​
productDiscounts​
cartDiscounts​
discountGroups​
orderEdits​
stores​
businessUnits​
customers​
customerGroups​
zones​
taxCategories​
refreshTokens​
shippingMethods​
carts​
customObjects​
search​
category​
productType​

QueryLimitsProjection

offset​

ProductLimitsProjection

pricesPerVariant​
variants​
productTailoring​

ShoppingListLimitsProjection

lineItems​
textLineItems​
total​

ShoppingListLimitWithCurrent

limit​
Long​
current​
Long​

ExtensionLimitsProjection

timeoutInMs​
maxExtensionsUpdateActions​

SubscriptionsLimitsProjection

maxSubscriptions​

ProductDiscountLimitsProjection

totalActive​

ProductDiscountLimitWithCurrent

limit​
Long​
current​
Long​

CartDiscountLimitsProjection

totalActiveWithoutDiscountCodes​

CartDiscountLimitWithCurrent

limit​
Long​
current​
Long​

DiscountGroupLimitsProjection

totalActive​

DiscountGroupLimitWithCurrent

limit​
Long​
current​
Long​

OrderEditLimitsProjection

total​

OrderEditLimitWithCurrent

limit​
Long​
current​
Long​

StoreLimitsProjection

productSelections​
inventorySupplyChannels​
productDistributionChannels​
cartDiscounts​
total​

StoreLimitWithCurrent

limit​
Long​
current​
Long​

BusinessUnitLimitsProjection

maxDepthLimit​
maxDivisions​
maxAssociates​
maxAssociateRoles​

CustomerLimitsProjection

maxGroupsPerCustomer​
total​

CustomerLimitWithCurrent

limit​
Long​
current​
Long​

CustomerGroupLimitsProjection

total​

CustomerGroupLimitWithCurrent

limit​
Long​
current​
Long​

ZoneLimitsProjection

total​

ZoneLimitWithCurrent

limit​
Long​
current​
Long​

TaxCategoryLimitsProjection

total​

TaxCategoryLimitWithCurrent

limit​
Long​
current​
Long​

RefreshTokenLimitsProjection

total​

RefreshTokenLimitWithCurrent

limit​
Long​
current​
Long​

ShippingMethodLimitsProjection

stores​
total​

ShippingMethodLimitWithCurrent

limit​
Long​
current​
Long​

CartLimitsProjection

total​

CartLimitWithCurrent

limit​
Long​
current​
Long​

CustomObjectLimitsProjection

total​

CustomObjectLimitWithCurrent

limit​
Long​
current​
Long​

SearchLimitsProjection

maxTextSize​

CategoryLimitsProjection

maxCategories​

ProductTypeLimitsProjection

total​

ProductTypeLimitWithCurrent

limit​
Long​
current​
Long​

Limit

limit​
Long​

Input types

ProjectSettingsUpdateAction

changeBusinessUnitSearchStatus​
changeCartsConfiguration​
changeCountries​
changeCountryTaxRateFallbackEnabled​
changeCurrencies​
changeCustomerSearchStatus​
changeLanguages​
changeMessagesConfiguration​
changeMessagesEnabled​
changeMyBusinessUnitStatusOnCreation​
changeName​
changeOrderSearchStatus​
changePriceRoundingMode​
changeShoppingListsConfiguration​
changeTaxRoundingMode​
changeTotalPriceDiscountDoesNotReduceExternalTax​
setDiscountsConfiguration​
setExternalOAuth​
setShippingRateInputType​
setMyBusinessUnitAssociateRoleOnCreation​
BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta
changeCartDiscountVisualizationSearchStatus​
BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta
changeProductSearchIndexingEnabled​
setProductVsCartDiscountCombination​
BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta
setReservationExpirationInMinutes​
BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta
setReleaseExpiredReservations​
BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta
setProductCatalogModel​

Update actions

Change Business Unit Search Status

Can be Activated, or Deactivated​

BusinessUnitSearchStatus

Activated
Deactivated

Change Carts Configuration

cartsConfiguration​

CartsConfigurationInput

deleteDaysAfterLastModification​
Int​
countryTaxRateFallbackEnabled​
Boolean​
priceRoundingMode​
Can be HalfDown, HalfEven, or HalfUp​
taxRoundingMode​
Can be HalfDown, HalfEven, or HalfUp​

RoundingMode

HalfDown
[Round half down](https://en.wikipedia.org/wiki/Rounding#Round_half_down)
HalfEven
[Round half to even](https://en.wikipedia.org/wiki/Rounding#Round_half_to_even). Default rounding mode as used in IEEE 754 computing functions and operators.
HalfUp
[Round half up](https://en.wikipedia.org/wiki/Rounding#Round_half_up)

Change Countries

countries​
Array of Country​

Change Country Tax Rate Fallback Enabled

countryTaxRateFallbackEnabled​
Boolean​

Change Currencies

currencies​
Array of Currency​

Change Customer Search Status

Can be Activated, or Deactivated​

CustomerSearchStatus

Activated
Deactivated

Change Languages

languages​
Array of Locale​

Change Messages Configuration

messagesConfiguration​

MessagesConfigurationDraft

Defines the configuration for the Messages Query feature for the Project.
enabled​
Boolean​
Setting to true activates the Messages Query feature.
deleteDaysAfterCreation​
Int​
Specifies the number of days each Message should be available via the Messages Query API. For Messages older than the specified period, it is not guaranteed that they are still accessible via the API.

Change Messages Enabled

messagesEnabled​
Boolean​

Change My Business Unit Status On Creation

Can be Active, or Inactive​

BusinessUnitConfigurationStatus

Active
Inactive

Change Name

name​
String​

Change Order Search Status

status​
Can be Activated, or Deactivated​

OrderSearchStatus

Activated
Deactivated

Change Price Rounding Mode

priceRoundingMode​
Can be HalfDown, HalfEven, or HalfUp​

RoundingMode

HalfDown
[Round half down](https://en.wikipedia.org/wiki/Rounding#Round_half_down)
HalfEven
[Round half to even](https://en.wikipedia.org/wiki/Rounding#Round_half_to_even). Default rounding mode as used in IEEE 754 computing functions and operators.
HalfUp
[Round half up](https://en.wikipedia.org/wiki/Rounding#Round_half_up)

Change Shopping Lists Configuration

shoppingListsConfiguration​

ShoppingListsConfigurationInput

deleteDaysAfterLastModification​
Int​

Change Tax Rounding Mode

taxRoundingMode​
Can be HalfDown, HalfEven, or HalfUp​

RoundingMode

HalfDown
[Round half down](https://en.wikipedia.org/wiki/Rounding#Round_half_down)
HalfEven
[Round half to even](https://en.wikipedia.org/wiki/Rounding#Round_half_to_even). Default rounding mode as used in IEEE 754 computing functions and operators.
HalfUp
[Round half up](https://en.wikipedia.org/wiki/Rounding#Round_half_up)

Change Total Price Discount Does Not Reduce External Tax

value​
Boolean​

Set Discounts Configuration

discountsConfiguration​

DiscountsConfigurationInput

discountCombinationMode​
Can be Stacking, or BestDeal​

DiscountCombinationMode

Stacking
BestDeal

Set External OAuth

externalOAuth​

ExternalOAuthDraft

url​
String​
authorizationHeader​
String​

Set Shipping Rate Input Type

shippingRateInputType​

ShippingRateInputTypeInput

CartValue​
CartClassification​
CartScore​

CartValueInput

dummy​
String​

CartClassificationInput

values​

CartScoreInput

dummy​
String​

Set My Business Unit Associate Role On Creation

BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta
associateRole​

Change Cart Discount Visualization Search Status

BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta
Can be Activated, or Deactivated​

CartDiscountVisualizationSearchStatus

Activated
Deactivated

Change Product Search Indexing Enabled

enabled​
Boolean​

Set Product Vs Cart Discount Combination

BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta
productVsCartDiscountCombination​
Can be Stacking, or BestDeal​

DiscountCombinationMode

Stacking
BestDeal

Set Reservation Expiration In Minutes

BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta
reservationExpirationInMinutes​
Int​

Set Release Expired Reservations

BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta
releaseExpiredReservations​
Boolean​

Set Product Catalog Model

productCatalogModel​
Can be Classic, InMigration, or Modular​

ProductCatalogModel

Classic
Default. Variants embedded in products.
InMigration
Transitional. Modular variants are used by default for reads (e.g. carts), for testing secondary systems before switching fully to Modular, while classic variant updates remain allowed.
Modular
Variants as separate entities.