Preview the draft
POST
/storefront/preview
const url = 'https://example.com/storefront/preview';const options = { method: 'POST', headers: {cookie: 'bottle.session_token=<bottle.session_token>'}};
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/preview \ --cookie bottle.session_token=<bottle.session_token>A link that opens the draft on the shop’s Bottle address ({slug}.shop.getbottle.app), for 30 minutes, without publishing it. The office’s editor shows it in a frame.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”The link
Media typeapplication/json
object
url
required
string
expiresAt
required
string format: date-time
Examplegenerated
{ "url": "example", "expiresAt": "2026-04-15T12:00:00Z"}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"}Not a member, or 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 has not been switched on
Media typeapplication/json
object
error
required
string
message
required
string
Example
{ "error": "not_found", "message": "Customer not found"}Validation failed
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" } ]}