Skip to main content

Root object fields

The FastStore API provides access to additional data fields that are not included in the native FastStore GraphQL schema. These fields can be accessed through the root object of each query. You can find more information on the available fields below.

caution

Keep in mind that the fields below may not be available in the native FastStore GraphQL schema. To use the ones that are not available in the native schema, you must extend the schema.

Learn more about how you can use the root object fields in your storefront.

Product query root​

See below the root fields available on the product FastStore API Product query.

Root (Product)​

FieldTypeDescription
Videos[String]An array of video URLs related to the item.
attachments[Attachment]An array of attachments related to the item.
attachmentsValues[Attachment] or undefinedAn array of attachments values related to the item or undefined if there are no attachments.
complementNameStringThe complement name of the item.
eanStringThe EAN (European Article Number) of the item.
images[Image]An array of images related to the item.
isKitBooleanIndicates whether the item is a kit or not.
isVariantOfProductThe product that this item is a variant of.
itemIdStringThe unique identifier of the item.
kitItems[KitItem] or undefinedAn array of associated kit items or undefined if the item is not a kit.
measurementUnitStringThe measurement unit of the item.
modalTypeanyThe modal type of the item.
nameStringThe name of the item.
nameCompleteStringThe complete name of the item.
referenceId[ReferenceId]An array of reference IDs related to the item.
sellers[Seller]An array of sellers that sell the item.
unitMultiplierNumberThe unit multiplier of the item.
variations[Variation]An array of variations related to the item.

Attachment​

FieldTypeDescription
idNumberA unique identifier for the attachment.
nameStringThe name of the attachment.
requiredBooleanSpecifies whether the attachment is required or optional.
domainValuesStringDomain values of the attachment.

Image​

FieldTypeDescription
imageIdStringA unique identifier for the image.
imageLabelStringA descriptive label for the image.
imageTagStringA tag or keyword associated with the image.
imageTextStringText associated with the image, such as a caption or description.
imageUrlStringThe URL where the image can be accessed.

Product​

FieldTypeDescription
brandStringThe name of the product brand.
brandIdNumberThe unique identifier of the brand.
cacheIdString or undefinedThe unique identifier of the cached product.
categories[String]The list of categories that the product belongs to.
categoriesIds[String]The list of category IDs that the product belongs to.
categoryIdStringThe ID of the primary category that the product belongs to.
clusterHighlightsRecord<String, any>Cluster highlights associated with the product.
descriptionStringThe description of the product.
items[Item]The list of items associated with the product.
linkStringThe link to the product page.
linkTextStringThe text for the link to the product page.
priceRangePriceRangeThe price range of the product.
productClustersRecord<String, String>The list of product clusters associated with the product.
productIdStringThe unique identifier of the product.
productNameStringThe name of the product.
productReferenceStringThe reference code of the product.
properties[Property]The list of properties associated with the product.
releaseDateStringThe release date of the product.
selectedProperties[Property]The list of selected properties associated with the product.
skuSpecifications[SkuSpecification] or undefinedThe list of SKU specifications associated with the product or undefined if there are no specifications.
specificationGroups[SpecificationGroup]The list of specification groups associated with the product.

PriceRange​

FieldTypeDescription
listPricePriceThe original or suggested price of the product.
sellingPricePriceThe current selling price of the product.

Price​

FieldTypeDescription
highPriceNumber or nullThe highest price available for the product or service, or null if not available.
lowPriceNumber or nullThe lowest price available for the product or service, or null if not available.

Property​

FieldTypeDescription
nameStringThe name of the property.
values[String]The possible values that the property can have.

SkuSpecification​

FieldTypeDescription
fieldSKUSpecificationFieldSKU specification field object.
value[SKUSpecificationValue]Values associated with the SKU specification field.

SKUSpecificationField​

FieldTypeDescription
idString or undefinedThe unique identifier for the SKU specification.
nameStringThe name of the SKU specification.
originalNameString or undefinedThe original name of the SKU specification before any modifications.

SKUSpecificationValue​

FieldTypeDescription
fieldIdString or undefinedThe unique identifier for the field associated with the SKU specification value.
idString or undefinedThe unique identifier for the SKU specification value.
nameStringThe name of the SKU specification value.
originalNameString or undefinedThe original name of the SKU specification value before any modifications were made.

KitItem​

FieldTypeDescription
itemIdStringUnique identifier for the kit item.
amountNumberThe quantity of the kit item included in the kit.

ReferenceId​

FieldTypeDescription
KeyStringThe unique identifier for the reference.
ValueStringThe value associated with the reference.

Seller​

FieldTypeDescription
addToCartLinkStringThe URL to add the product to cart for this seller.
comertialOfferComertialOfferThe commercial offer details for this seller.
sellerDefaultBooleanIndicates whether this seller is the default seller for the product.
sellerIdStringThe unique identifier of the seller.
sellerNameStringThe name of the seller.

ComertialOffer​

FieldTypeDescription
AvailableQuantityNumberThe quantity of this item that is available for purchase.
BuyTogether[Any]An array of items that can be purchased together with this item.
CacheVersionUsedToCallCheckoutStringThe version of the cache used to call the checkout API.
DeliverySlaSamples[DeliverySlaSample]An array of delivery SLA (Service Level Agreement) samples for this item.
DeliverySlaSamplesPerRegionRecord<string, DeliverySlaSamples>Delivery SLA samples for this item per region.
DiscountHighLightArray of anyAn array of discount highlights for this item.
GetInfoErrorMessageAnyAn error message returned when trying to get information about this item.
GiftSkuIds[String]An array of SKU (Stock Keeping Unit) IDs for gift items associated with this item.
Installments[Installment]An array of installment options available for this item.
ItemMetadataAttachment[Any]An array of item metadata attachments for this item.
ListPriceNumberThe list price of this item.
PriceNumberThe price of this item.
PriceValidUntilStringThe date until which the price of this item is valid.
PriceWithoutDiscountNumberThe price of this item without any discounts applied.
RewardValueNumberThe reward value for this item.
TaxNumberThe tax applied to the price of this item.
TeasersArray of Record<string, unknown>An array of teaser information for this item.
spotPriceNumberThe spot price of this item.
teasers[Record<string, unknown>] or undefinedAn array of teaser information for this item or undefined if there are no teasers available.

DeliverySlaSample​

FieldTypeDescription
DeliverySlaPerTypes[Any]An array of delivery service level agreements (SLAs) for different types of deliveries.
RegionAnyThe region where the delivery service is available.

Installments​

FieldTypeDescription
InterestRateNumberThe interest rate for the installment plan.
NameStringThe name of the installment plan.
NumberOfInstallmentsNumberThe number of installments in the plan.
PaymentSystemGroupNameStringThe name of the payment system group associated with the installment plan.
PaymentSystemNameStringThe name of the payment system associated with the installment plan.
TotalValuePlusInterestRateNumberThe total value of the purchase including the interest rate for the installment plan.
ValueNumberThe value of each installment in the plan.

All products query root​

The allProducts query root object contains the native schema product query fields and the product query root fields detailed above.

Collection query root​

See below the root fields available on the collection FastStore API Product query. Since collections may have different types, there are different fields associated with each of them: Brand, CategoryTree, and CollectionPageType.

Root (Brand)​

FieldTypeDescription
idNumberA unique identifier for the brand.
nameStringThe name of the brand.
isActiveBooleanIndicates whether the brand is currently active or not.
titleStringThe title of the brand, used for SEO purposes.
metaTagDescriptionStringThe meta tag description for the brand, used for SEO purposes.
imageURLString or nullThe URL of the brand image, if available.

Root (CategoryTree)​

FieldTypeDescription
MetaTagDescriptionStringThe meta tag description for the category page.
TitleStringThe title of the category page.
children[CategoryTree]An array of child categories for the current category.
haschildrenBooleanA flag indicating whether the current category has child categories.
idStringThe unique identifier for the category.
nameStringThe name of the category.
urlStringThe URL of the category page.

Root (CollectionPageType)​

FieldTypeDescription
idNumberA unique identifier for the collection page.
nameStringThe name of the collection page.
urlStringThe URL of the collection page.
titleStringThe title of the collection page.
MetaTagDescriptionStringThe meta tag description of the collection page.
pageTypeStringThe type of the collection page.

All collections query root​

The allCollections query root object contains the native schema collection query fields and the collection query root fields detailed above.

Search query root​

See below the root fields available on the search FastStore API Product query.

FieldTypeDescription
productSearchPromisePromise<ProductSearchResult>A promise that resolves to the search results for a product.
searchArgsOmit<SearchArgs, 'type'>The search arguments used to filter and sort the product search results.

ProductSearchResult​

FieldTypeDescription
correctionCorrection or undefinedSpecifies whether a correction was made to the search query, or if it is undefined.
fuzzyStringFuzzy search term used in the query.
localeStringLocale used for the search query.
operatorStringOperator used in the search query.
optionsOptionsSearch options used in the query.
paginationPaginationPagination settings used for the search results.
products[Product]Contains an array of product objects that match the search query.
queryStringOriginal search query string.
recordsFilteredNumberSpecifies the total number of products that match the search query.
samplingBooleanIndicates whether the search results are a random sample of the total matching products.
translatedBooleanIndicates whether the search query was automatically translated.

Correction​

FieldTypeDescription
misspelledBooleanA flag indicating whether a word is misspelled or not.

Options​

FieldTypeDescription
counts[Count]An array of counts that represent the number of items in a search.
sorts[Sort]An array of sorts that represent the sorting options available for a search.

Count​

FieldTypeDescription
countNumberThe number of items in the search that the API endpoint is returning.
proxyURLStringA URL that can be used to retrieve the same resource through a proxy server.

Sort​

FieldTypeDescription
activeBoolean or undefinedDetermines if the sorting feature is active or not.
fieldStringField to be sorted.
orderStringSpecifies the order in which the data should be sorted.
proxyURLStringSpecifies the URL of the proxy server to be used for sorting.

Pagination​

FieldTypeDescription
after[Page]Array of pages after the current page.
before[Page]Array of pages before the current page.
countNumberThe total number of items across all pages.
currentPageInformation about the current page.
firstPageInformation about the first page.
lastPageInformation about the last page.
nextPageInformation about next page.
perPageNumberThe number of items per page.
previousPageInformation about the previous page.

Page​

FieldTypeDescription
indexNumberThe index of the item in the list.
proxyURLStringThe URL of the proxy server to be used.

searchArgs​

FieldTypeDescription
countNumberThe number of search results to return.
fuzzyString or undefinedA string used for fuzzy search.
hideUnavailableItemsBoolean or undefinedIndicates whether unavailable items should be hidden.
pageNumberThe page number of the search results to return.
queryString or undefinedA string used for keyword search.
selectedFacets[SelectedFacet] or undefinedAn array of selected facets used to filter the search results.
sortSort or undefinedA sort object used to sort the search results.

SelectedFacet​

FieldTypeDescription
keyStringThe name of the selected facet.
valueStringThe value of the selected facet.

Didn't find your answers? Ask the Community. For documentation suggestions, submit your feedback.

JOIN THE COMMUNITY