Queries and mutations for managing Project settings in the platform.
Queries
Get Project
QUERYproject
Output:ProjectProjection
Get Project limits
QUERYlimits
Mutations
Update Project settings
MUTATIONupdateProject
| Arguments | |
|---|---|
versionLong | |
actionsArray of ProjectSettingsUpdateAction | |
Output:ProjectProjection
Output types
ProjectProjection
Project contains information about project.
keyString | |
nameString | |
languagesArray of Locale | |
trialUntil | |
carts | |
shoppingLists | |
versionLong | |
externalOAuth | |
searchIndexing | |
messages | |
countriesArray of Country | |
currenciesArray 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
deleteDaysAfterLastModificationInt | |
allowAddingUnpublishedProductsBoolean | |
countryTaxRateFallbackEnabledBoolean | |
totalPriceDiscountDoesNotReduceExternalTaxBoolean | |
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
deleteDaysAfterLastModificationInt | Default value for the deleteDaysAfterLastModification parameter of the ShoppingListDraft. |
ExternalOAuth
Represents an RFC 7662-compliant OAuth 2.0 Token Introspection endpoint.
For more information, see Requesting an access token using an external OAuth 2.0 server.
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.
urlString | URL with authorization header. |
authorizationHeaderString | 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
status | Current status of resource indexing. Present on Projects from 1 February 2019. Can beActivated, 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
ActivatedIndexingDeactivated
OrderSearchConfiguration
status | Can be Activated, or Deactivated |
lastModifiedBy | |
lastModifiedAt |
OrderSearchStatus
ActivatedDeactivated
CustomerSearchConfiguration
status | Can be Activated, or Deactivated |
lastModifiedBy | |
lastModifiedAt |
CustomerSearchStatus
ActivatedDeactivated
BusinessUnitSearchConfiguration
status | Can be Activated, or Deactivated |
lastModifiedBy | |
lastModifiedAt |
BusinessUnitSearchStatus
ActivatedDeactivated
MessagesConfiguration
Holds the configuration for the Messages Query feature for the Project.
enabledBoolean | When true, the Messages Query feature is active. |
deleteDaysAfterCreationInt | 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
typeString |
DiscountsConfiguration
productVsCartDiscountCombination | Can be Stacking, or BestDeal |
discountCombinationMode | Can be Stacking, or BestDeal |
DiscountCombinationMode
StackingBestDeal
InventoryConfiguration
BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta
reservationExpirationInMinutesInt | The number of minutes after which a Reservation expires. To use the ReserveOnCart inventory mode, this field must be set. |
releaseExpiredReservationsBoolean | 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 |
ShoppingListLimitsProjection
lineItems | |
textLineItems | |
total |
SubscriptionsLimitsProjection
maxSubscriptions |
ProductDiscountLimitsProjection
totalActive |
CartDiscountLimitsProjection
totalActiveWithoutDiscountCodes |
DiscountGroupLimitsProjection
totalActive |
OrderEditLimitsProjection
total |
StoreLimitsProjection
productSelections | |
inventorySupplyChannels | |
productDistributionChannels | |
cartDiscounts | |
total |
BusinessUnitLimitsProjection
CustomerLimitsProjection
maxGroupsPerCustomer | |
total |
CustomerGroupLimitsProjection
ZoneLimitsProjection
total |
TaxCategoryLimitsProjection
total |
RefreshTokenLimitsProjection
total |
ShippingMethodLimitsProjection
stores | |
CartLimitsProjection
total |
CustomObjectLimitsProjection
total |
SearchLimitsProjection
maxTextSize |
CategoryLimitsProjection
maxCategories |
ProductTypeLimitsProjection
total |
Limit
limitLong |
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
status | Can be Activated, or Deactivated |
BusinessUnitSearchStatus
ActivatedDeactivated
Change Carts Configuration
cartsConfiguration |
CartsConfigurationInput
deleteDaysAfterLastModificationInt | |
countryTaxRateFallbackEnabledBoolean | |
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
countriesArray of Country |
Change Country Tax Rate Fallback Enabled
countryTaxRateFallbackEnabledBoolean |
Change Currencies
currenciesArray of Currency |
Change Customer Search Status
status | Can be Activated, or Deactivated |
CustomerSearchStatus
ActivatedDeactivated
Change Languages
languagesArray of Locale |
Change Messages Configuration
messagesConfiguration |
MessagesConfigurationDraft
Defines the configuration for the Messages Query feature for the Project.
enabledBoolean | Setting to true activates the Messages Query feature. |
deleteDaysAfterCreationInt | 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
messagesEnabledBoolean |
Change My Business Unit Status On Creation
status | Can be Active, or Inactive |
BusinessUnitConfigurationStatus
ActiveInactive
Change Name
nameString |
Change Order Search Status
status | Can be Activated, or Deactivated |
OrderSearchStatus
ActivatedDeactivated
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
deleteDaysAfterLastModificationInt |
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
valueBoolean |
Set Discounts Configuration
discountsConfiguration |
DiscountsConfigurationInput
discountCombinationMode | Can be Stacking, or BestDeal |
DiscountCombinationMode
StackingBestDeal
Set External OAuth
externalOAuth |
ExternalOAuthDraft
urlString | |
authorizationHeaderString |
Set Shipping Rate Input Type
shippingRateInputType |
ShippingRateInputTypeInput
CartValue | |
CartClassification | |
CartScore |
CartValueInput
dummyString |
CartClassificationInput
valuesArray of LocalizedEnumValueInput |
CartScoreInput
dummyString |
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
ActivatedDeactivated
Change Product Search Indexing Enabled
enabledBoolean |
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
StackingBestDeal
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
reservationExpirationInMinutesInt |
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
releaseExpiredReservationsBoolean |
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.