younifyd
Menu

Match redirect

Match redirect

POST/v1/redirects

Use it in a workflow

  1. Add a step and choose the SCAYLE Storefront connector.
  2. Pick the Match redirect action (under redirects).
  3. Fill in the fields below, then reference the result from later steps as {{matchRedirect.response.data}}.

Request

Query parameters

shopIdinteger

The numeric ID of the shop to resolve the request against. Every shop in a multi-shop setup has a unique `shopId`. **Priority:** `shopId` (or the `X-Shop-Id` header) takes precedence over all other shop identification parameters. When `shopId` is present, `shopKey`, `countryCode`, and `locale` are ignored entirely. **Alternative:** If neither `shopId` nor `X-Shop-Id` is provided, you must supply all three of `shopKey`, `countryCode`, and `locale` together to identify the shop.

Headers

X-Shop-Idinteger

The numeric ID of the shop to resolve the request against. Every shop in a multi-shop setup has a unique shop ID. **Priority:** `X-Shop-Id` (or the `shopId` query parameter) takes precedence over all other shop identification parameters. When this header is present, `X-Shop-Key`, `X-Country-Code`, and `X-Locale` are ignored entirely. **Alternative:** If neither `X-Shop-Id` nor `shopId` is provided, you must supply all three of `X-Shop-Key`, `X-Country-Code`, and `X-Locale` together to identify the shop.

Response

Returns 200 with an object. Read it in later steps with {{matchRedirect.response.data.<field>}}.

idany

A unique numeric identifier, fixed at `-1` due to the recursive nature of matching. Since each redirect is matched in sequence, there's no singular ID that represents the entire matching process.

sourcestring

The original location to redirect from.

targetstring

The target location where the user will be redirected to.

statusCodeinteger

The HTTP status code for the redirect.

One of301302303307308

json
{
  "id": null,
  "source": "string",
  "target": "string",
  "statusCode": 301
}

Need more? See the SCAYLE Storefront guide for connection setup and behaviour shared by every action.

Was this page helpful?