purchase_eligibility=eligible requires both a reported-positive observation and Nektir’s ordinary-consumer eligibility classification. Use purchase_eligibility=any only when the application wants all reported-positive observations and can explain restrictions itself.
Choose a strategy
Omitstrategies to calculate all five options in one request:
best_single_storereturns the store covering the most requested products, using distance as the tie-breaker.closest_store_with_anyreturns the nearest store covering at least one requested product.closest_complete_storereturns the nearest single store covering every requested product, or an explicit no-solution result.fewest_stores_completeminimizes stops, then the farthest store’s distance, then total origin distance.best_partial_planmaximizes covered products withinmax_stops, then prefers fewer and closer stores.
max_stops is bounded from one to three in v1. Every distance is straight-line distance from the supplied coordinates. Nektir does not claim driving distance, route order, travel time, or that a product will still be purchasable on arrival.
Request only the plans an interface needs:
Render an actionable plan
Each plan embeds store summaries.assigned_product_ids assigns each covered product to one selected store, even if multiple selected stores report it. reported_product_ids and eligible_product_ids keep reported stock separate from purchase eligibility.
Handle incomplete knowledge
result_state: no_solution means no plan satisfied that strategy inside the requested radius, retrieval policy, eligibility mode, and stop limit. It does not necessarily mean the products are unavailable.
Inspect meta.coverage before presenting a conclusion:
uncovered_product_idsare not covered under the selected eligibility mode anywhere in scope.uncertain_product_idsare uncovered and have at least one unchecked product-store pair.restricted_product_idswere reported positive as restricted somewhere in scope but nowhere as purchase-eligible.unchecked_pair_countis the precise number of missing observations in the product-by-store denominator.retrieved_at_minandretrieved_at_maxare Nektir retrieval times. Upstream data age remains unknown.
inventory_age=within_policy. any_age can help investigations or graceful fallback, but the response may describe old observations and still does not establish current upstream stock.