Skip to main content

Lookup keys

Lookup keys let you reference resources using various identifiers. Instead of always using the internal Propeller ID, you can look up resources by source combination, SKU, supplier code and a few other keys.

Lookup keys are case-sensitive. Use the exact casing shown here, for example sourceId (not sourceid).

Available lookup keys​

Lookup keyDescriptionUniqueness
idUnique Propeller internal identifierAlways unique
sourceId/sourceExternal system unique ID. sourceId always needs to be combined with a sourceUnique in combination
skuStock-keeping unit code referencing a product or clusterMay not be unique
supplierCode/supplierCode of a supplier referencing a productMay not be unique
uuidUUID of a productAlways unique
codeCode referencing a clusterAlways unique
nameName referencing a cluster configuration or attribute descriptionUnique for cluster configurations. Attribute description names are unique per attribute class

URL patterns​

For individual resource operations (GET, PATCH, DELETE), use the lookup key in the URL path:

GET /v2/products/id/481189

GET /v2/products/sourceId/NCABD70004?source=TECHDATA

GET /v2/products/sku/PROD-001

GET /v2/products/supplierCode/ABC123?supplier=TECHDATA

A sourceId belongs to a source and a supplierCode belongs to a supplier, so pass that second half as a query parameter. Without it the lookup matches on the code alone, which fails as soon as two external systems use the same code.

Uniqueness​

A sku is not guaranteed to be unique in the catalog, as multiple products with the same sku can exist. The supplierCode/supplier combination also does not have to be unique. When multiple resources match a lookup key, the API returns an error:

{
"error": {
"code": 80005,
"status": 400,
"type": "ProductMultipleFound",
"messages": ["Multiple products found. Please provide additional filters"]
}
}

When no resource matches the lookup key, the API returns a 404:

{
"error": {
"code": 80006,
"status": 404,
"type": "ProductNotFound",
"messages": ["Product with id [481189] not found"]
}
}

The sourceId/source combination is the most important lookup key for integrations. See Sources for details.

Bulk operations​

Bulk endpoints take the lookup key in the path. sourceId combined with source is the usual choice for integrations:

POST /v2/products/bulk/sourceId

{
"products": [
{
"sourceId": "NCABD70004",
"source": "TECHDATA",
"names": [{ "language": "EN", "value": "Product Name" }]
}
]
}

Lookup keys must be unique within a single bulk request. The sourceId/source combination must be unique across the items in one request, and id values must be unique within one request. Requests that contain duplicate lookup keys are rejected, and the records array cannot be empty.

The /bulk/sourceId variant upserts: it creates records that do not yet exist and updates the ones that do. The /bulk/id variant is update-only and cannot create new records, since it requires the Propeller id to already exist. Products also accept uuid, sku and supplierCode as the bulk lookup key. Clusters accept sku and code.

Lookup keys per resource​

ResourceSupported lookup keys
Productsid, sourceId, sku, supplierCode, uuid
Categoriesid, sourceId
Companiesid, sourceId
Customersid, sourceId
Contactsid, sourceId
Clustersid, sourceId, sku, code
Cluster Optionsid, sourceId
Cluster Configid, name
Attributesid, sourceId
Attribute Descriptionsid, name

Pricesheets are not addressed with a lookup key. Their endpoints take the Propeller id in the path, as in GET /v2/pricesheets/{id}.

See also​