younifyd
Menu

limits

The project's current resource limits and how much of each is used.

Use it in a workflow

  1. Add a step and choose the Commercetools connector.
  2. Pick the limits action (under Limits).
  3. Fill in the fields below, then reference the result from later steps as {{limits.response.data}}.

Query

This is the query the action sends by default. Edit it in the step's Query field to change which fields come back.

graphql
query Limits {
  limits {
    query {
      offset {
        limit
      }
    }
    products {
      pricesPerVariant {
        limit
      }
      variants {
        limit
      }
      productTailoring {
        limit
      }
    }
    shoppingLists {
      lineItems {
        limit
      }
      textLineItems {
        limit
      }
      total {
        limit
        current
      }
    }
    extensions {
      timeoutInMs {
        limit
      }
      maxExtensionsUpdateActions {
        limit
      }
    }
    subscriptions {
      maxSubscriptions {
        limit
      }
    }
    productDiscounts {
      totalActive {
        limit
        current
      }
    }
    cartDiscounts {
      totalActiveWithoutDiscountCodes {
        limit
        current
      }
    }
    discountGroups {
      totalActive {
        limit
        current
      }
    }
    orderEdits {
      total {
        limit
        current
      }
    }
    stores {
      productSelections {
        limit
      }
      inventorySupplyChannels {
        limit
      }
      productDistributionChannels {
        limit
      }
      cartDiscounts {
        limit
      }
      total {
        limit
        current
      }
    }
    businessUnits {
      maxDepthLimit {
        limit
      }
      maxDivisions {
        limit
      }
      maxAssociates {
        limit
      }
      maxAssociateRoles {
        limit
      }
    }
    customers {
      maxGroupsPerCustomer {
        limit
      }
      total {
        limit
        current
      }
    }
    customerGroups {
      total {
        limit
        current
      }
    }
    zones {
      total {
        limit
        current
      }
    }
    taxCategories {
      total {
        limit
        current
      }
    }
    refreshTokens {
      total {
        limit
        current
      }
    }
    shippingMethods {
      stores {
        limit
      }
      total {
        limit
        current
      }
    }
    carts {
      total {
        limit
        current
      }
    }
    customObjects {
      total {
        limit
        current
      }
    }
    search {
      maxTextSize {
        limit
      }
    }
    category {
      maxCategories {
        limit
      }
    }
    productType {
      total {
        limit
        current
      }
    }
  }
}

Response

Read the result with {{limits.response.data.data.limits}}. If the API returns errors, the step fails and they are at {{limits.response.data.errors}}.

queryobject
offsetobject1 fields
productsobject
pricesPerVariantobject1 fields
variantsobject1 fields
productTailoringobject1 fields
shoppingListsobject
lineItemsobject1 fields
textLineItemsobject1 fields
totalobject2 fields
extensionsobject
timeoutInMsobject1 fields
maxExtensionsUpdateActionsobject1 fields
subscriptionsobject
maxSubscriptionsobject1 fields
productDiscountsobject
totalActiveobject2 fields
cartDiscountsobject
totalActiveWithoutDiscountCodesobject2 fields
discountGroupsobject
totalActiveobject2 fields
orderEditsobject
totalobject2 fields
storesobject
productSelectionsobject1 fields
inventorySupplyChannelsobject1 fields
productDistributionChannelsobject1 fields
cartDiscountsobject1 fields
totalobject2 fields
businessUnitsobject
maxDepthLimitobject1 fields
maxDivisionsobject1 fields
maxAssociatesobject1 fields
maxAssociateRolesobject1 fields
customersobject
maxGroupsPerCustomerobject1 fields
totalobject2 fields
customerGroupsobject
totalobject2 fields
zonesobject
totalobject2 fields
taxCategoriesobject
totalobject2 fields
refreshTokensobject
totalobject2 fields
shippingMethodsobject
storesobject1 fields
totalobject2 fields
cartsobject
totalobject2 fields
customObjectsobject
totalobject2 fields
searchobject
maxTextSizeobject1 fields
categoryobject
maxCategoriesobject1 fields
productTypeobject
totalobject2 fields

Need more? See the Commercetools guide for connection setup and behaviour shared by every action.

Was this page helpful?