Skip to Content
API ReferenceSupport reply templates

Overview

Save reply texts with placeholders for your team's ticket replies and your automation rules.

A reply template is a saved reply with placeholders, such as Hi {customer_email}, thanks for writing to {store_name}. Your team inserts templates into the replies they write, and automation rules send them as automatic replies. Saving, changing or rendering a template sends nothing to anyone.

Placeholders

A body may use only these seven placeholders. Any other returns 422 on body. Check a draft with reply template options, which suggests a supported replacement, such as {customer_email} for {customer_name}.

PlaceholderFilled with
{customer_email}The email address of the customer who opened the ticket.
{ticket_id}The ticket number.
{order_id}The order the ticket is about.
{product_title}The product the ticket is about.
{refund_amount}A wallet refund in USD, such as $9.99.
{wallet_balance}The customer's store wallet balance in USD. Next to a refund that is being made, it includes that refund.
{store_name}Your store's name.

To see a template filled for one ticket before you send it, use render. When the ticket does not hold a value, such as an order number, send it in values.

Where a template is offered

  • supports_manual: true offers the template to your team for the replies they write. Only these templates can be rendered.
  • supports_auto_respond: true lets automation rules send it.
  • is_active: false pauses the template everywhere.

Pausing a template or turning off supports_auto_respond changes what the rules that use it do: a rule that only replies stops answering, and a rule that also refunds or closes takes the tickets it matches but does nothing for them. See when a rule's template is paused. A template that a current rule uses cannot be deleted: deleting it returns 422 on supportReplyTemplate.

Permissions

Use an API key with the ticket ability. The key's user must be allowed to manage tickets in the store: the Resolution Center role, or owner or administrator. Templates that automation can use, those with supports_auto_respond or used by a rule, are also protected by the support.automation ability and the Support Automation role: without both, creating, changing, deleting or reordering them returns 403, while reading and rendering still work. OAuth access tokens need support:read to read and support:write to change templates or render one.

Concurrency and retries

Send the updated_at you read as expected_updated_at with a change. If someone saved the template since, the change returns 422 on expected_updated_at and nothing is saved. A change with nothing in it returns the template as it is.

Creating a template is not safe to repeat blindly: each request creates a new one, so list the templates before trying again after a lost response. Other changes give the same result when repeated with the same body, unless the first one made expected_updated_at stale. Deleting is permanent, and a repeated delete returns 404. Reads and renders are always safe to repeat.

Lists return 15 templates per page by default and at most 100 with limit; a larger limit returns 422. search treats % and _ as ordinary characters.

Endpoints

On this page