Get Theme

🔒

Requires read_themes access scope. More access scope

The Get Theme API retrieves detailed information about a specific theme by its unique ID. This API is particularly useful for managing and verifying theme details, such as version, description, and configuration.

This API is especially useful for:

  1. Fetching the details of a specific theme.
  2. Verifying theme configurations and versions.
  3. Managing themes programmatically for a store.

Request Parameters

Public Request Parameters

📘

Public Request Parameters

Path Parameters

NameTypeRequiredExampleDescription
theme_idstringYes1500021b-88ed-4750-bbc5-97ec98351dc0Theme's unique identifier.

Response Explanation

Public Response Parameters

📘

Public Response Parameters

Successful Response

NameTypeExampleDescription
idstring1500021b-88ed-4750-bbc5-97ec98351dc0Theme's unique identifier.
merchant_theme_idstringb3cb6968-2288-4b7e-afcb-62a1b1fa3e4cMerchant theme ID.
theme_version_idstring16978Theme version identifier.
namestringWindTheme name.
localestringen-USTheme locale (e.g., en-US, zh-CN).
descobject{ "en-US": "Theme description", "zh-CN": "主题描述" }Multi-language description of the theme.
typestringshoplazzaTheme type.
defaultstring0Whether the theme is the default one (0 or 1).
pc_cover_urlstringhttps://img.staticdj.com/oss/operation/0e01671232e01d0238c1e88a7a0d783d.pngURL for the PC cover image.
mobile_cover_urlstringhttps://img.staticdj.com/oss/operation/50a93783cee55a37e2dcc3781a72d321.pngURL for the mobile cover image.
publishedstring0Whether the theme is published (0 or 1).
versionstring24.12.0Current theme version.
c_versionstring3.0.13Current client version.
newest_c_versionstring3.0.13Newest available client version.
has_newest_versionbooleanfalseWhether the theme has the newest version.
updated_atstring1731696743Timestamp of the last update.
publish_timestring1731692171Publish timestamp.

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
errorString "store is not active"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

API Structure Overview

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