GraphQL Reference

Complete reference for all queries, return types, input types, and enums. For worked examples and usage patterns, see the GraphQL guide.

POST https://api.zenode.ai/graphql

An interactive GraphiQL explorer is available at api.zenode.ai/graphql.

Queries

supSearchMpnSupPartResultSet!

Search for parts by manufacturer part number (MPN). Supports partial and fuzzy matching.

ArgumentTypeDefaultDescription
mpn*String!MPN search string.
startInt0Offset into the result set.
limitInt10Page size. Clamped to 1–100.
filtersJSONnullFilter map keyed by attribute shortname, manufacturerId, distributorId, etc.
countryString"US"Country context for pricing and availability.
currencyString"USD"Currency for pricing.
sortStringnullSort field.
sortDirSupSortDirectionnullASC or DESC.
inStockOnlyBooleanfalseExclude parts with no available stock.
hasDatasheetOnlyBooleanfalseExclude parts without a datasheet.
distributorApiBooleanfalseRequest live distributor pricing and stock where supported.
distributorApiTimeoutString"3s"Duration string, e.g. "3s" or "500ms".
customPricingCredentials[SupApiCredentials]nullOptional distributor API credentials.
rankingMethodSupSearchRankingMethodDEFAULTRanking strategy for results.
supSearchSupPartResultSet!

Search for parts using natural-language or keyword queries.

ArgumentTypeDefaultDescription
q*String!Keyword or natural-language search string.
startInt0Offset into the result set.
limitInt10Page size. Clamped to 1–100.
filtersJSONnullFilter map keyed by attribute shortname, manufacturerId, distributorId, etc.
countryString"US"Country context for pricing and availability.
currencyString"USD"Currency for pricing.
sortStringnullSort field.
sortDirSupSortDirectionnullASC or DESC.
inStockOnlyBooleanfalseExclude parts with no available stock.
hasDatasheetOnlyBooleanfalseExclude parts without a datasheet.
distributorApiBooleanfalseRequest live distributor pricing and stock where supported.
distributorApiTimeoutString"3s"Duration string, e.g. "3s" or "500ms".
customPricingCredentials[SupApiCredentials]nullOptional distributor API credentials.
rankingMethodSupSearchRankingMethodDEFAULTRanking strategy for results.
supParts[SupPart!]!

Fetch one or more parts by their internal ID. Numeric IDs and slugs are both accepted.

ArgumentTypeDefaultDescription
ids*[String!]!List of part IDs or slugs.
countryString"US"Country context for pricing.
currencyString"USD"Currency for pricing.
distributorApiBooleanfalseRequest live distributor pricing and stock.
distributorApiTimeoutString"3s"Duration string.
customPricingCredentials[SupApiCredentials!]nullOptional distributor API credentials.
supManufacturers[SupCompany!]!

List manufacturer companies. Omit both ids and slugs to fetch all. When both are provided, manufacturers matching either filter are returned.

ArgumentTypeDefaultDescription
ids[String!]nullFilter by manufacturer ID.
slugs[String!]nullFilter by manufacturer slug.
minNumberOfActivePartsIntIntnullReserved for API compatibility. Has no effect.
supCategories[SupCategory!]!

List part categories. Omit ids and paths to fetch all categories under the given root.

ArgumentTypeDefaultDescription
ids[String!]nullList of category IDs.
paths[String!]nullList of SEO page paths.
rootSupCategoryRoot!ELECTRONIC_PARTSRoot of the category tree to include.
supMultiMatch[SupPartMatch!]!

Match many BOM lines in one request. At most 50 queries per request. Search priority per line: mpn → sku → mpnOrSku.

ArgumentTypeDefaultDescription
queries*[SupPartMatchQuery!]!List of BOM lines to match. See SupPartMatchQuery below.
optionsSupPartMatchOptionsnullOptions applied across all lines. See SupPartMatchOptions below.
countryString"US"Country context for pricing.
currencyString"USD"Currency for pricing.
distributorApiBooleanfalseRequest live distributor pricing and stock.
distributorApiTimeoutString"3s"Duration string.
customPricingCredentials[SupApiCredentials]nullOptional distributor API credentials.
rankingMethodSupSearchRankingMethodDEFAULTRanking strategy.

Return types

SupPartResultSet

Returned by supSearchMpn and supSearch.

FieldTypeDescription
hitsInt!Number of results in this page.
results[SupPartResult!]!List of matched parts with display metadata.
warnings[String!]!Human-readable descriptions of ignored or partially-supported parameters.
specsViewAttributeGroupsJSONSpec attributes grouped for a specs-view UI.
suggestedCategoriesJSONCategory suggestions based on the query.
suggestedFiltersJSONFilter suggestions based on the query.
allFiltersJSONAll available filters for the result set.
appliedCategoryJSONThe category filter applied to this search, if any.
appliedFiltersJSONThe filters applied to this search.
manufacturerAgg(size)[SupManufacturerBucket!]!Manufacturer buckets with part counts. size defaults to 10.
categoryAgg(size)[SupCategoryBucket!]!Category buckets with part counts. size defaults to 10.
specAggs(attributeNames, specAggSize)[SupSpecAgg!]!Spec value distributions for named attributes. specAggSize defaults to 10.
SupPartResult

A single item inside SupPartResultSet.results.

FieldTypeDescription
partSupPart!The matched part.
descriptionStringDisplay description for this result.
SupPart

Represents a single electronic part. Use the GraphiQL explorer to introspect the full field list.

FieldTypeDescription
idID!Internal part ID.
mpnString!Manufacturer part number.
slugStringURL-friendly identifier.
shortDescriptionStringOne-line part description.
manufacturerSupCompanyThe part manufacturer.
descriptions[SupDescription!]Full description variants.
images[SupImage!]Part images.
specs[SupSpec!]Electrical and mechanical specifications.
categories[SupCategory!]Part categories.
sellers[SupPartSeller!]Distributors selling this part, with offers and pricing.
documents[SupDocument!]Datasheets and other documents.
SupCompany

A manufacturer or distributor company.

FieldTypeDescription
idString!Internal company ID.
nameString!Display name.
slugStringURL-friendly identifier.
homepageUrlStringCompany homepage URL.
isDistributorApiBooleanWhether live distributor API pricing is available.
SupCategory
FieldTypeDescription
idString!Internal category ID.
nameString!Display name.
pathStringSEO page path.
numPartsIntNumber of parts in this category.
SupPartMatch

A single row in the supMultiMatch response.

FieldTypeDescription
referenceStringEchoed from the input query line.
hitsInt!Total count of matched parts for this line.
parts[SupPart!]!The matched parts for this line (page implied by start/limit).
errorStringStringSet when the line is invalid (e.g. missing mpn, sku, and mpnOrSku).

Input types

SupPartMatchQuery

A single BOM line for supMultiMatch. At least one of mpn, sku, or mpnOrSku must be provided.

FieldTypeDescription
startInt!Pagination offset for this line's results.
limitInt!Page size for this line's results.
mpnStringMPN to match. Takes priority over sku and mpnOrSku.
skuStringSKU to match. Used if mpn is empty.
mpnOrSkuStringTreated as MPN. Used if both mpn and sku are empty.
manufacturerStringOptional substring filter on manufacturer name.
sellerStringOptional substring filter on distributor name in offers.
referenceStringArbitrary label echoed back on the result row.
SupPartMatchOptions

Options applied across all lines in a supMultiMatch request.

FieldTypeDescription
requireStockAvailableBooleanWhen true, only parts with at least one offer with qty > 0 are returned.
requireAuthorizedSellersBooleanReserved. Accepted but not yet applied.
filtersJSONReserved. Intended semantics match the filters argument on supSearchMpn.
SupApiCredentials

Credentials for distributor or custom pricing API integrations. Provide the credential fields required by the target distributor.

FieldTypeDescription
companyIdString!ID of the company you are providing credentials for.
clientIdStringUse with clientSecret when required.
clientSecretStringUse with clientId when required.
usernameStringUse with password when required.
passwordStringUse with username when required.
apiKeyStringUse when the distributor requires a standalone API key.

Enums

SupSortDirection
  • ASC
  • DESC
SupSearchRankingMethod
  • DEFAULT
SupCategoryRoot
  • ELECTRONIC_PARTS