需要 read_content 权限点。
更多权限点使用信息,请参考:
GET https://{handle}.myshopline.com/admin/openapi/v20260301/themes.json
handle :店铺的唯一标识符,值为店铺域名的前缀。例如,域名为 open001.myshopline.com 的店铺,其 handleopen001
批量查询店铺下所有主题的信息。
请求头
  • Content-Type string required
    字段值固定为 application/json; charset=utf-8
  • Authorization string required
    资源的访问令牌。参考 应用授权 获取访问令牌,然后将获取到的访问令牌以 Bearer 格式传入。
    例子:
    Bearer eyJhbGciOiJIUzUxMiJ9.eyJhcHBLZXkiOiJmMjM3OWQyMTYyOGMzM2QxMWRiMWZkYjY5N2EzZjdjMjZlNGMwYTA5Iiwic2VsbGVySWQiOiIyMDAwMjM0ODgwIiwic3RvcmVJZCI6IjE2NzIzNjk3Mjk2MDYiLCJ2ZXJzaW9uIjoiVjIiLCJkb21haW4iOiJodHRwczovL3NsLW9wZW4tc2cubXlzaG9wbGluZS5jb20iLCJ0aW1lc3RhbXAiOjE2NzUzMTk0OTI0MzksImlzcyI6Inlzb3VsIiwiZXhwIjoxNzY5OTI3NDkyfQ.UwQzomM2veGCUaOZ0paUxq5dpc7DXuhHYFvsQ_uIAKduzWcb_j2E4q_36El83sp145D4cKbpcE5KCeeIz-JNQw
状态码
更多状态码信息,参考 HTTP 状态码

响应头
  • traceId
    请求的全局唯一标识符。用于追踪请求在系统中的流转,以便于问题发生时进行定位和调试。
响应体
  • themesobject[]
    店铺下所有主题的信息。
  • create_at string
    主题的添加时间。格式:ISO 8601
    例子: 2024-10-28T16:34:30+08:00
  • id string
    主题的唯一标识 ID。
    例子: 671f4c96d2682a1f5407536e
  • name string
    主题的名称。
    例子: Modern1
  • original_theme_id string
    若主题为默认安装主题和从主题商城下载的主题,返回对应官方主题的唯一标识 ID;否则返回 null
    例子: 6486f3eca26b90084144fa0b
  • role string
    主题的状态。有效枚举值包含:
    • published:已发布的主题
    • unpublished:待发布的主题
    • development:开发中的主题
  • theme_type_version string
    主题的版本标识。
    例子: 2.1
  • update_at string
    主题的更新时间。格式:ISO 8601
    例子: 2025-01-13T16:58:56+08:00
API Explorer
https://openapiceshidianpu.myshopline.com/admin/openapi/v20260301

ParamOptions

header required

Language

curl --request GET \
--url https://openapiceshidianpu.myshopline.com/admin/openapi/v20260301/themes.json \
--header 'Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJhcHBLZXkiOiJmMjM3OWQyMTYyOGMzM2QxMWRiMWZkYjY5N2EzZjdjMjZlNGMwYTA5Iiwic2VsbGVySWQiOiIyMDAwMjM0ODgwIiwic3RvcmVJZCI6IjE2NzIzNjk3Mjk2MDYiLCJ2ZXJzaW9uIjoiVjIiLCJkb21haW4iOiJodHRwczovL3NsLW9wZW4tc2cubXlzaG9wbGluZS5jb20iLCJ0aW1lc3RhbXAiOjE2NzUzMTk0OTI0MzksImlzcyI6Inlzb3VsIiwiZXhwIjoxNzY5OTI3NDkyfQ.UwQzomM2veGCUaOZ0paUxq5dpc7DXuhHYFvsQ_uIAKduzWcb_j2E4q_36El83sp145D4cKbpcE5KCeeIz-JNQw' \
--header 'Content-Type: application/json; charset=utf-8' \
--header 'accept: application/json'
Examples
查询所有主题
Response
{
"themes": [
{
"create_at": "2022-12-01T20:15:48+08:00",
"id": "63889af46841fe15da877e2b",
"name": "Arise21",
"original_theme_id": "62319e9585f4b048db79a50e",
"role": "published",
"update_at": "2022-12-21T15:40:47+08:00"
},
{
"create_at": "2022-12-01T18:31:13+08:00",
"id": "6388827102b701028efac460",
"name": "Arise20",
"original_theme_id": "62319e9585f4b048db79a50e",
"role": "unpublished",
"update_at": "2022-12-01T20:15:53+08:00"
},
{
"create_at": "2022-12-01T18:28:39+08:00",
"id": "638881d702b701028efac450",
"name": "Arise19",
"original_theme_id": "62319e9585f4b048db79a50e",
"role": "unpublished",
"update_at": "2022-12-01T18:28:39+08:00"
},
{
"create_at": "2022-11-30T12:49:40+08:00",
"id": "6386e0e4fef2186c87cced55",
"name": "Arise18",
"original_theme_id": "62319e9585f4b048db79a50e",
"role": "unpublished",
"update_at": "2022-12-01T18:31:51+08:00"
},
{
"create_at": "2022-11-25T11:46:10+08:00",
"id": "63803a82c57c9739b67227b6",
"name": "Arise17",
"original_theme_id": "62319e9585f4b048db79a50e",
"role": "unpublished",
"update_at": "2022-11-30T12:49:45+08:00"
},
{
"create_at": "2022-11-17T10:48:13+08:00",
"id": "6375a0ed16784d67dfd2a961",
"name": "Arise16",
"original_theme_id": "62319e9585f4b048db79a50e",
"role": "unpublished",
"update_at": "2022-11-25T11:46:15+08:00"
},
{
"create_at": "2022-10-09T20:04:07+08:00",
"id": "6342b8b7a60c7e485d6c7624",
"name": "Arise15",
"original_theme_id": "62319e9585f4b048db79a50e",
"role": "unpublished",
"update_at": "2022-11-17T10:48:21+08:00"
},
{
"create_at": "2022-09-27T11:05:00+08:00",
"id": "6332685c47284d43592614c8",
"name": "Arise14",
"original_theme_id": "62319e9585f4b048db79a50e",
"role": "unpublished",
"update_at": "2022-10-09T18:49:34+08:00"
},
{
"create_at": "2022-09-27T10:55:02+08:00",
"id": "6332660647284d4359260fd9",
"name": "Lite2",
"original_theme_id": "632837ffe9b6897c7b9070ae",
"role": "unpublished",
"update_at": "2022-10-10T16:43:21+08:00"
},
{
"create_at": "2022-09-19T18:02:43+08:00",
"id": "63283e43e9b6897c7b909000",
"name": "Wink10",
"original_theme_id": "62abf5c19669c849b47a0392",
"role": "unpublished",
"update_at": "2022-10-24T11:18:10+08:00"
},
{
"create_at": "2022-09-17T17:45:20+08:00",
"id": "63259730bb5415442b4d7dd9",
"name": "Wink9",
"original_theme_id": "62abf5c19669c849b47a0392",
"role": "unpublished",
"update_at": "2022-11-14T22:38:44+08:00"
},
{
"create_at": "2022-09-17T17:43:32+08:00",
"id": "632596c4bb5415442b4d7dcc",
"name": "Wink8",
"original_theme_id": "62abf5c19669c849b47a0392",
"role": "unpublished",
"update_at": "2022-11-09T18:45:40+08:00"
},
{
"create_at": "2022-09-17T17:42:53+08:00",
"id": "6325969dbb5415442b4d7dbf",
"name": "Arise13",
"original_theme_id": "62319e9585f4b048db79a50e",
"role": "unpublished",
"update_at": "2022-11-14T22:42:02+08:00"
},
{
"create_at": "2022-09-17T17:34:59+08:00",
"id": "632594c342d1dc072ce3aae5",
"name": "Simple7",
"original_theme_id": "61a75c4e9f8c201e6e9473e0",
"role": "unpublished",
"update_at": "2022-09-17T17:34:59+08:00"
},
{
"create_at": "2022-09-17T17:31:28+08:00",
"id": "632593f0bb5415442b4d7dbd",
"name": "Bobo-test1",
"original_theme_id": "6204ea278bd39024a3a05b88",
"role": "unpublished",
"update_at": "2022-09-17T17:31:28+08:00"
},
{
"create_at": "2022-09-15T15:05:50+08:00",
"id": "6322cece10cd57458a0ef102",
"name": "Arise12",
"original_theme_id": "62319e9585f4b048db79a50e",
"role": "unpublished",
"update_at": "2022-09-15T15:05:50+08:00"
},
{
"create_at": "2022-09-05T15:49:19+08:00",
"id": "6315a9ffb0d2627ebbe2b994",
"name": "Wink7",
"original_theme_id": "62abf5c19669c849b47a0392",
"role": "unpublished",
"update_at": "2022-09-17T17:50:56+08:00"
},
{
"create_at": "2022-08-24T10:32:14+08:00",
"id": "63058dae07ad5d6ec5b7d9e2",
"name": "Brooklyn8",
"original_theme_id": "618238a6b9b5dc2d7e525436",
"role": "unpublished",
"update_at": "2022-09-13T18:14:12+08:00"
},
{
"create_at": "2022-08-23T17:29:14+08:00",
"id": "63049dea1aa5fa56b0c17cd3",
"name": "Wink6",
"original_theme_id": "62abf5c19669c849b47a0392",
"role": "unpublished",
"update_at": "2022-09-13T19:49:59+08:00"
},
{
"create_at": "2022-08-22T17:08:09+08:00",
"id": "6303477927ed7c01fa62e9cf",
"name": "Wink5",
"original_theme_id": "62abf5c19669c849b47a0392",
"role": "unpublished",
"update_at": "2022-08-22T17:08:09+08:00"
},
{
"create_at": "2022-08-22T10:13:54+08:00",
"id": "6302e66298bde308783329d0",
"name": "Arise11",
"original_theme_id": "62319e9585f4b048db79a50e",
"role": "unpublished",
"update_at": "2022-08-23T17:29:18+08:00"
}
]
}
这篇文章对你有帮助吗?