Search store
/ admin/ v1/ stores/ {store_id}/ searchFinds the store's orders, customers, products and discounts by what was typed: an order number, a phone in any digits and spacing, a tracking number, a SKU, a barcode, a discount code, or words. Arabic spellings fold together, names meet across scripts (ندى finds Nada), and each hit says why it matched. A kind the caller can't read comes back null, not as an error; a kind that runs out of time is listed in unchecked. Requires a read permission for each kind searched.
Path parameters
store_idstringrequiredThe store's ID, like
store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.
Query parameters
qstringrequiredWhat was typed: an order number, a phone in any digits and spacing, a tracking number, a SKU, a barcode, a discount code, or words, in Arabic or English. Read up to 200 characters.
scopeenumWhere to look. With
all, a few of each kind.- all
- orders
- customers
- products
- discounts
Headers
shop-api-versionYYYY-MMThe version to answer in. Without it, your app’s pinned version, else the newest.
Returns
200 What was found, best first.
Errors
- 429
rate_limitedToo many searches.