Search Redirect

🔒

Requires read_shop_navigation access scope. More access scope

The Search Redirect API retrieves details of a specific redirect based on the original URL (from_url).

This API is especially useful for:

  1. Validating the existence of a specific redirect in the store.
  2. Retrieving the redirection target for a specific URL.
  3. Debugging or verifying the status of individual redirects.

Request Parameters

Public Request Parameters

📘

Public Request Parameters

Body Parameters

ParameterTypeRequiredDescriptionExample
from_urlstringYesThe original URL to search for a redirect./collections/hot-selling

Response Explanation

Public Response Parameters

📘

Public Response Parameters

Successful Response

FieldTypeDescriptionExample
idstringUnique identifier for the redirect.373043233132924740
store_idintegerID of the store where the redirect is configured.633130
statusstringStatus of the redirect.open
from_urlstringThe original URL specified for redirection./collections/hot-selling
redirect_urlstringThe target URL specified for the redirection./collections/test1567

Error Response

Error responses in the API can be represented using two different fields: errors and error. Both fields provide details about issues encountered during request processing. Below is an explanation of the fields with their respective examples and descriptions.

FieldTypeExampleDescription
errorsArray[ "file number error"]A list of errors encountered during the request processing.
FieldTypeExampleDescription
errorString "Record not found"Indicates an error encountered during the process

Error Detail

Status CodeMessagePossible ReasonExample Response
400Bad RequestInvalid input format or request structure (e.g., missing required fields or incorrect data types).Bad Request
UnauthorizedThe request is missing valid authentication credentials or the credentials provided are invalid.Unauthorized
404Not Foundthe from_url is not existed."Record not found"

API Structure Overview

Language
Credentials
Header
URL
Click Try It! to start a request and see the response here!