/redirects
Get active URL redirects for the current channel
Returns the channel's whole active redirect table in one call: source path, target path and the HTTP status to answer with (301 or 302). Intended to be read once and held in memory by the storefront, not called per request — the table is channel-wide and changes only when someone edits it in Fluit.
Svar
RedirectResponse[]
| Fält | Typ |
|---|---|
fromPath
|
string · nullable |
statusCode
|
integer |
toPath
|
string · nullable |
-
Retry-After— Seconds to wait before retrying.
Standardfel:
404
Felhantering
Exempel
curl "https://api.erp.fluit.cloud/ecom/redirects" \
-H "X-Tenant-Id: $FLUIT_TENANT_ID" \
-H "X-Channel: web"
[
{
"fromPath": "string",
"statusCode": 42,
"toPath": "string"
}
]
Bas-URL https://api.erp.fluit.cloud/ecom. Svarsexemplet är genererat ur schemat: formen stämmer, värdena är påhittade.