版本:202607
查询 URL 重定向详情
GET/openapi/2026-07/redirects/:id
通过 URL 重定向规则 ID 获取指定 URL 重定向规则的详情。
请求
Path参数
id int64必填
URL 重定向规则 ID
响应
- 200
OK
- application/json
- 数据结构
- 示例
数据结构
codestring
错误码
messagestring
错误信息
data object
redirect object
URL 重定向
idint64
重定向 ID
store_idint32
重定向创建所在店铺的 ID
statusstring
重定向状态
from_urlstring
指定用于重定向的原始 URL
redirect_urlstring
为重定向指定的目标 URL
{
"code": "string",
"message": "string",
"data": {
"redirect": {
"id": 0,
"store_id": 0,
"status": "string",
"from_url": "string",
"redirect_url": "string"
}
}
}