Skip to content

Lookup storefront redirect

GET/store/v1/redirects

    Where a path that has nothing redirects, for headless storefronts to send a 301 instead of a 404. Paths match however they are written (encoding, case, trailing slash); a redirect with the request's query string wins over one without.

    Query parameters

    • pathstringrequired

      The requested path, with its query string if any (/old?id=3).

    Headers

    • shop-api-versionYYYY-MM

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

    Returns

    200 The redirect.

    Errors

    • 404not_foundNo redirect starts from this path.