Get Url Redirect List

Retrieve a list of all url redirect with pagination.

🔒

Requires write_shop_navigation access scope. More access scope

The Create Redirect API allows you to set up a URL redirect in your store, ensuring that users navigating to an outdated or unavailable URL are redirected to the correct location.

This API is especially useful for:

  1. Managing outdated URLs after updating your store's structure.
  2. Preventing broken links by redirecting users to active pages.
  3. Improving SEO by maintaining URL integrity.

Request Parameters

Public Request Parameters

📘

Body Parameters

ParameterTypeDescriptionRequiredExample
from_urlstringOriginal URL to be redirected.Yes/collections/hot-selling
redirect_urlstringTarget URL where the original URL will redirect users.Yes/collections/test1567
statusstringStatus of the redirect: open (available) or close (unavailable).Yesopen

Response Explanation

Public Response Parameters

📘

Successful Response

FieldTypeExampleDescription
codestringSuccessResponse status
datastringResponse message
data.countint320The total number of redirects in the store.
data.redirectsarray[UrlRedirect]The list of URL redirects.
data.redirects.idstring373043233132924740Unique identifier for the redirect.
data.redirects.store_idinteger633130ID of the store where the redirect is created.
data.redirects.statusstringopenStatus of the redirect.
data.redirects.from_urlstring/collections/hot-sellingThe original URL specified for redirection.
data.redirects.redirect_urlstring/collections/test1567The target URL specified for the redirection.

Error Response

FieldTypeExampleDescription
codestringInvalidParameterError http message
messagestring``Error message
Language
Credentials
Header
URL
Click Try It! to start a request and see the response here!