Read and update custom CSS/JS, browse saved versions and upload media.
Get custom JS code
Requires API permission themesJs. Reads custom JS for the authenticated store. Omit version_id to preserve the current/latest behavior and existing response shape. Supply version_id from the matching versions list to read historical content without changing live code. No current code returns code="". See Saved CSS/JS versions.
query Parameters
version_idinteger · min: 1Optional saved version ID from this store and code type. If supplied, must be a non-empty positive integer; null and empty values are invalid.
Responses
Success
successbooleanExample: trueresponseobjectrequest_idstringExample: 1ef2da0b-6f98-6fec-b13f-06c63b84be49
Get custom CSS code
Requires API permission themesCss. Reads custom CSS for the authenticated store. Omit version_id to preserve the current/latest behavior and existing response shape. Supply version_id from the matching versions list to read historical content without changing live code. No current code returns code="". See Saved CSS/JS versions.
query Parameters
version_idinteger · min: 1Optional saved version ID from this store and code type. If supplied, must be a non-empty positive integer; null and empty values are invalid.
Responses
Success
successbooleanExample: trueresponseobjectrequest_idstringExample: 1ef2da0b-6f98-6fec-b13f-06c63b84be49
Upload store theme media
Upload a media file for the authenticated store theme. Send a multipart/form-data request with the file field named file. Supported image formats are jpg, jpeg, png, gif, and webp; mp4 is accepted only when video banners are enabled for the store.
Responses
success
successbooleanExample: trueimagestring · uriUploaded media URL.
Example: https://cdn.istores.co.il/image/upload/clients/12345/store-theme-media.webprequest_idstringExample: 1ef2da0b-6f98-6fec-b13f-06c63b84be49
List saved custom CSS versions
Requires API permission themesCss. Returns only date, version and version_id for up to 30 available saved CSS versions belonging to the authenticated store. Newest creation date first, then highest ID. No code content or pagination. Read content using GET /store_themes/css?version_id=123. Empty history returns response=[]. Reading history never changes live code.
Responses
Success
successbooleanExample: trueresponseobject[] · maxItems: 30Available saved versions, newest creation date first, then highest ID. Empty array when none exist; no code content and no pagination.
request_idstring
List saved custom JS versions
Requires API permission themesJs. Returns only date, version and version_id for up to 30 available saved JS versions belonging to the authenticated store. Newest creation date first, then highest ID. No code content or pagination. Read content using GET /store_themes/js?version_id=123. Empty history returns response=[]. Reading history never changes live code.
Responses
Success
successbooleanExample: trueresponseobject[] · maxItems: 30Available saved versions, newest creation date first, then highest ID. Empty array when none exist; no code content and no pagination.
request_idstring