Completeness
Filter list endpoints by completeness against a profile
/products, /variants, and /skus accept three query parameters that filter by completeness. They can be combined with search.
| Parameter | Description |
|---|---|
completeness_profile | Identifier of the profile to evaluate against. List your profiles with GET /completeness-profiles. |
completeness | complete or incomplete. Requires completeness_profile. |
channel | Identifier of the channel to evaluate for. Defaults to the default channel. |
curl "https://api.emfas.ai/v1/variants?completeness_profile=ready-for-web&completeness=complete" \
-H "Authorization: Bearer YOUR_API_KEY"What counts as complete
An entity is complete when three things hold: its own required attributes are filled in, everything below it is complete, and the own required attributes of everything above it are filled in.
| Endpoint | Complete when all of these are filled in |
|---|---|
/products | The product, all its variants, and all their SKUs |
/variants | The variant, its SKUs, and its product's own attributes |
/skus | The SKU, its variant's own attributes, and its product's own attributes |
Siblings do not count. An unfinished variant makes its product incomplete, but not the other variants of that product. An unfinished SKU makes its variant and product incomplete, but not the other SKUs of that variant.
completeness=incomplete returns every other entity, with one exception: when the profile requires nothing of a product, its variants, or its SKUs, they are returned by neither value.
Compared with the percentage in Emfas
The percentage shown on a variant or SKU in the Emfas catalog covers that entity and everything below it. It does not include the attributes of its parents. A variant can therefore show 100% in the catalog and still be incomplete here, when its product is missing a required attribute.
Timing
Completeness is recalculated in the background after a change. The filter can lag an edit by up to a few minutes.
To pull only the entities that switched since your last sync, combine these parameters with updated_after. See Pagination.