Check a custom HTML, CSS and JavaScript shop template
POST
/storefront/themes/code/check
const url = 'https://example.com/storefront/themes/code/check';const options = { method: 'POST', headers: { cookie: '__Host-bottle.session_token=<__Host-bottle.session_token>', 'Content-Type': 'application/json' }, body: '{"archive":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/storefront/themes/code/check \ --header 'Content-Type: application/json' \ --cookie __Host-bottle.session_token=<__Host-bottle.session_token> \ --data '{ "archive": "example" }'Validates a bounded ZIP in a credential-free compiler child, without executing uploaded code or writing files. Returns only the checked manifest and file sizes. Counts towards the same processing and rolling upload allowance as an import.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
archive
required
string
Example generated
{ "archive": "example"}Responses
Section titled “Responses”Checked manifest and files
Media typeapplication/json
object
manifest
required
object
format
required
string
schemaVersion
required
number
name
required
string
description
string
pages
required
object
home
required
string
products
string
category
string
page
string
styles
Array<string>
scripts
Array<string>
files
required
Array<object>
object
path
required
string
bytes
required
integer
totalBytes
required
integer
Example
{ "manifest": { "format": "bottle-template", "schemaVersion": 1, "description": "", "pages": { "home": "index.html" }, "styles": [], "scripts": [] }}Not signed in
Media typeapplication/json
object
error
required
string
message
required
string
Example
{ "error": "not_found", "message": "Customer not found"}The plan does not include a shop
Media typeapplication/json
object
error
required
string
message
required
string
Example
{ "error": "not_found", "message": "Customer not found"}Without the permission this needs
Media typeapplication/json
object
error
required
string
message
required
string
Example
{ "error": "not_found", "message": "Customer not found"}The shop is off, or the draft changed since base
Media typeapplication/json
object
error
required
string
message
required
string
Example
{ "error": "not_found", "message": "Customer not found"}Invalid theme, or the saved-theme allowance is full
Media typeapplication/json
object
error
required
string
message
required
string
issues
required
Array<object>
object
path
required
string
message
required
string
Example
{ "error": "validation", "issues": [ { "path": "email", "message": "Invalid email" } ]}Too many requests, or theme processing is busy
Media typeapplication/json
object
error
required
string
message
required
string
Example
{ "error": "not_found", "message": "Customer not found"}