> ## Documentation Index
> Fetch the complete documentation index at: https://www.twicecommerce.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Settings - Documents

> Create document templates TWICE renders for orders, listings, stock items, customers, and collections, with per-language support.

export const userRoleDefinition = "What a user can see and do. Each user has one built-in system role — Owner, Admin, Manager, or Member — and can also be assigned any number of custom roles you create with specific permissions. Effective access is the combination of all their roles.";

<Frame caption="Settings > Documents">
  <img src="https://mintcdn.com/twicecommerce/Ab7tx7ih94KQsi0k/images/settings-documents.webp?fit=max&auto=format&n=Ab7tx7ih94KQsi0k&q=85&s=61c1d3e0887f7e9eb712cb09e7a63754" alt="Documents settings page" width="1920" height="1080" data-path="images/settings-documents.webp" />
</Frame>

<Info>
  This view can look different dependent on your user role. <br />See [Visibility & Permissions](#visibility-and-permissions) for details.
</Info>

## Primary Purpose

Create document templates that TWICE renders for your records and customers.

<AccordionGroup>
  <Accordion title="Template types">
    Build templates for an **order** (such as an invoice or receipt), a **listing**, a **stock item**, a **customer**, or a **collection**.
  </Accordion>

  <Accordion title="Content">
    Author the template as HTML, then preview it rendered with sample data before publishing.
  </Accordion>

  <Accordion title="Per-language templates">
    Each document template can have per-language content. Select a language in the template editor to write a translated version of the body.

    When rendering a document, the system resolves content in this order:

    1. **Per-language override** — the translated body for the requested language, if one exists.
    2. **Template content** — the body saved on the template itself (your source language version).
    3. **Code default** — for system templates (order confirmation, receipt), the built-in default in the requested language.

    Custom document templates have no code default — if no per-language override exists, the source-language content is used.
  </Accordion>

  <Accordion title="Defaults & visibility">
    Mark one template per type as the default, choose which entity types can use it, and keep it draft or active.
  </Accordion>
</AccordionGroup>

<Note>
  Document numbering is applied automatically when a document is issued — it isn't configured here.
</Note>

## Related Concepts

<CardGroup cols={2}>
  <Card title="Emails" href="/docs/settings/emails">
    Email templates with the same per-language support and language routing
  </Card>

  <Card title="Multi-Language Content" href="/docs/concepts/admin/translations">
    How translations work across your catalog, locations, and templates
  </Card>
</CardGroup>

## Visibility and Permissions

Access to this view is controlled by your <Tooltip tip={userRoleDefinition}>user role</Tooltip>.

<Tabs>
  <Tab title="Visibility" icon="eye">
    | Feature       | Admin | Manager | Member |
    | ------------- | :---: | :-----: | :----: |
    | View settings |   ✓   |    ✓    |    ✗   |
    | Edit settings |   ✓   |    ✗    |    ✗   |
  </Tab>
</Tabs>
