Resolve shop entities
API v2 is in public beta: endpoints and fields can change before general availability. See the changelog
/account/entities/resolveCosts 1 rate-limit point · Rate limits
Resolve candidate names, SKUs, emails, order numbers, URLs, or IDs to typed shop records (offers, products, variants, collections, templates, orders, and customers).
Pass 1 to 12 candidate strings in candidates (array or comma-separated). Optionally scope variant matching with offer_id or shopify_product_id. Shopify records return typed GIDs under shopify_product_id, shopify_variant_id, or shopify_collection_id; STOQ records (offers, orders, customers, templates) return id. Each candidate reports exact or fuzzy match quality and whether matches are ambiguous.
Also searched asresolve entitiesfind record idlookup product offer customer ordername to idresolve candidate
Query parameters
candidatesarray1 to 12 candidate strings (names, SKUs, emails, order numbers, URLs, or IDs) to resolve; a comma-separated string also works.
offer_idstringOptional preorder offer ID to narrow variant matches to variants attached to that offer.
shopify_product_idstringOptional Shopify product ID or GID to narrow variant matches to that product.
Returns
candidatesarray of objectsShow 3 child attributesHide child attributes
textstringExample:stringmatchesarray of objectsShow 8 child attributesHide child attributes
kindstringExample:stringidstringExample:stringnamestringExample:stringmatchstringExample:stringextraobjectShow 4 child attributesHide child attributes
shopify_product_idstringproduct_namestringvariant_titlestringskustring
app_pathstringExample:stringshopify_variant_idstringExample:stringshopify_product_idstringExample:string
ambiguousbooleanExample:true
Errors
forbiddenThe credential is valid, but the store's plan or settings do not allow this operation.
plan_requiredThe change uses a feature that is only available on a paid STOQ plan. Connecting a paid-only integration returns 403; a write that sets paid-only fields returns 422 and saves nothing.
not_foundThe path is valid but nothing with that id exists in this store.
invalid_paramsOne or more fields failed the action's schema.
use_key_linkThrough an assistant or MCP, a third-party API key would pass through a model, so STOQ refuses it and returns the dashboard link where the merchant enters it.
validation_failedThe request failed validation.
upstream_unavailableA service the answer depends on did not respond in time.
Any request can also fail with auth_invalid (401) or rate_limited (429).
Every error has the same shape: see Errors and the list of error codes.
curl "https://app.stoqapp.com/api/v2/external/account/entities/resolve" \
-H "X-Auth-Token: $STOQ_API_KEY"const res = await fetch("https://app.stoqapp.com/api/v2/external/account/entities/resolve", {
headers: {
"X-Auth-Token": process.env.STOQ_API_KEY,
},
});
const data = await res.json();import os
import requests
res = requests.get(
"https://app.stoqapp.com/api/v2/external/account/entities/resolve",
headers={"X-Auth-Token": os.environ["STOQ_API_KEY"]},
)
data = res.json()require "net/http"
require "json"
uri = URI("https://app.stoqapp.com/api/v2/external/account/entities/resolve")
req = Net::HTTP::Get.new(uri, "X-Auth-Token" => ENV["STOQ_API_KEY"])
res = Net::HTTP.start(uri.host, uri.port, use_ssl: true) { |http| http.request(req) }
data = JSON.parse(res.body)curl "https://app.stoqapp.com/api/v2/external/account/entities/resolve?candidates=2026-07-01T00%3A00%3A00Z&shopify_product_id=78000000001" \
-H "X-Auth-Token: $STOQ_API_KEY"const res = await fetch("https://app.stoqapp.com/api/v2/external/account/entities/resolve?candidates=2026-07-01T00%3A00%3A00Z&shopify_product_id=78000000001", {
headers: {
"X-Auth-Token": process.env.STOQ_API_KEY,
},
});
const data = await res.json();import os
import requests
res = requests.get(
"https://app.stoqapp.com/api/v2/external/account/entities/resolve?candidates=2026-07-01T00%3A00%3A00Z&shopify_product_id=78000000001",
headers={"X-Auth-Token": os.environ["STOQ_API_KEY"]},
)
data = res.json()require "net/http"
require "json"
uri = URI("https://app.stoqapp.com/api/v2/external/account/entities/resolve?candidates=2026-07-01T00%3A00%3A00Z&shopify_product_id=78000000001")
req = Net::HTTP::Get.new(uri, "X-Auth-Token" => ENV["STOQ_API_KEY"])
res = Net::HTTP.start(uri.host, uri.port, use_ssl: true) { |http| http.request(req) }
data = JSON.parse(res.body){
"candidates": [
{
"text": "string",
"matches": [
{
"kind": "string",
"id": "string",
"name": "string",
"match": "string",
"extra": {
"shopify_product_id": null,
"product_name": null,
"variant_title": null,
"sku": null
},
"app_path": "string",
"shopify_variant_id": "string",
"shopify_product_id": "string"
}
],
"ambiguous": true
}
]
}{
"errors": [
"Invalid API key"
],
"code": "auth_invalid",
"details": [
{
"code": "auth_invalid",
"message": "Invalid API key",
"path": null,
"value": null,
"expected": null
}
]
}{
"errors": [
"name is required"
],
"code": "validation_failed",
"details": [
{
"code": "validation_failed",
"message": "name is required",
"path": null,
"value": null,
"expected": null
}
]
}{
"errors": [
"Rate limit exceeded"
],
"code": "rate_limited",
"details": [
{
"code": "rate_limited",
"message": "Rate limit exceeded",
"path": null,
"value": null,
"expected": null
}
]
}