WebstoreTemplateDto
Represents a template a webstore can render: a named set of pages, styles, scripts and assets served to customers while it is the webstore's current template.
idFlakeIdRequired
compatibility_modeenumRequired
Specifies the dialect a webstore template is written in.
Possible enum values
invalidNo compatibility mode specified. This value is typically used as a default or uninitialized state.
paynowA native PayNow template.
tebexA template written for Tebex, rendered through a compatibility layer so it works without changes.
created_atstringRequired
The date and time the template was created.
is_publicbooleanRequired
Indicates whether the template is shared with every store, as PayNow's built-in templates are,
rather than private to this webstore.
namestringRequired
The display name of the template.
updated_atstringRequired
The date and time the template was last updated.
webstore_idFlakeIdRequired
template_filesWebstoreTemplateFileDto[]OptionalThe template's files, content included. Only returned when a single template is fetched with
'include' set to 'files'; null otherwise.
idFlakeIdRequired
content_typestringRequired
The MIME type of the file (e.g., text/html, text/css, application/json). Decides how the file
is served and whether it is public.
created_atstringRequired
The date and time the file was created.
file_namestringRequired
The name of the file within the template, without an extension. The extension follows from
'content_type'.
is_deletablebooleanRequired
Indicates whether the file can be deleted. Files the template cannot render without are not
deletable.
is_publicbooleanRequired
Indicates whether the file is served directly to browsers as a static asset. Pages and the
schema file are private and rendered on the server; styles, scripts and images are public.
template_idFlakeIdRequired
updated_atstringRequired
The date and time the file was last updated.
contentstringOptional
The text content of the file. Null when files are listed; content is only returned when a
single file is fetched or the template is fetched with 'include' set to 'files'.
Example
{
"id": "411486491630370816",
"compatibility_mode": "invalid",
"created_at": "2024-01-01T00:00:00Z",
"is_public": true,
"name": "string",
"updated_at": "2024-01-01T00:00:00Z",
"webstore_id": "411486491630370816",
"template_files": [
{
"id": "411486491630370816",
"content_type": "string",
"created_at": "2024-01-01T00:00:00Z",
"file_name": "string",
"is_deletable": true,
"is_public": true,
"template_id": "411486491630370816",
"updated_at": "2024-01-01T00:00:00Z",
"content": "string"
}
]
}