Skip to content

Search store

GET/admin/v1/stores/{store_id}/search

    Finds 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_idstringrequired

      The store's ID, like store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.

    Query parameters

    • qstringrequired

      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, in Arabic or English. Read up to 200 characters.

    • scopeenum

      Where to look. With all, a few of each kind.

      • all
      • orders
      • customers
      • products
      • discounts

    Headers

    • shop-api-versionYYYY-MM

      The version to answer in. Without it, your app’s pinned version, else the newest.

    Returns

    200 What was found, best first.

    Errors

    • 429rate_limitedToo many searches.