Every email type has exactly one email in the store, with its own subject, preview text and code. There are no templates to create, assign or delete. Sending also needs the control that triggers the email and a verified sender with available email allowance; saving an email does not send one or prove delivery. Merchant instructions are in Set up transactional emails.
Change an email#
Read /email-types for each type's key, toggleable and data_schema (the values its code may read), with its type_info in the request language: name, description and category (authentication, transactional or promotional). Do not infer these from a display name.
Read the email with GET /emails/{type}: its subject, preview_text and code. GET /emails lists every email without its code.
Render the changed code with POST /emails/render, fix every error in its issues, and send a test to yourself with POST /emails/{type}/send-test.
Save it with PUT /emails/{type}, sending the complete subject, preview_text and code. It is what customers receive from the next send.
Order-event emails are switched on /customer-notifications. Only types with toggleable true accept PUT /emails/{type}/enabled; the others always send. Have the merchant verify a default sender in Settings > Email.
Write and preview an email#
An email's code is the whole email document, written like a web page in Vascula, the template language of themes. {{ order.number }} prints a value, {{ order.totals.total | money }} filters it, and {% if order.customer_note != blank %}…{% endif %} decides. The code reads only its type's data_schema and brand (the store's logo, accent colour and typography from /email-design). {% render 'header' %}, {% render 'items' %}, {% render 'order_details' %}, {% render 'tax_details' %}, {% render 'progress', stage: 'shipped' %}, {% render 'shipment' %}, {% render 'access_code' %}, {% render 'gift_card' %}, {% render 'product', item: product %}, {% render 'button', label: 'View your order', url: order.status_url %} and {% render 'footer' %} add the library's parts; /email-design lists every part with its params. Nothing is added to the code for you: what it prints is what is sent. The default emails write out every case of their data (cash on delivery, pickup, duties, refunds) as visible if/else branches. The language is described in the Language reference and, for emails, in Email code reference.
POST /emails/render renders code exactly as a send would, with the sample data of email_type and no store records. sample_variant picks one of the type's sample_variants from /email-types, such as cod, pickup or many_items; full is the default. locale renders the email's translation in that language. The response carries the rendered subject and html, the issues (severity error stops a save and a send; warning does not) and compat, the email-client compatibility warnings. Problems come back as issues with whatever could be rendered, never as a failed request.
A save is checked like a send: code that does not compile or reads a value its type does not have is refused with MARKETING_TEMPLATE_INVALID and details.issues. A promotional email (type_info.category promotional: cart recovery, checkout recovery and review requests) must print {{ email.unsubscribe_url }}, and the newsletter confirmation must print {{ newsletter.confirmation_url }} (NEWSLETTER_CONFIRMATION_TEMPLATE_INVALID).
POST /emails/{type}/send-test queues a test, marked [TEST], to the person the request acts for: the staff member who created the admin token, or the merchant using a connected AI tool. It never goes to anyone else, and app tokens cannot send tests. subject, preview_text and code sent with it replace the saved email's for that test only, so an unsaved edit can be checked in a real inbox first.
GET /email-starters lists the platform's default email of each type (and the campaign starters). To put an email back to the default, send its starter's subject, preview_text and code to PUT /emails/{type}.
Emails are translated text by text. GET /emails/{type}/translations/{locale} returns every text of the email (subject, preview_text and each text of its code, keyed text.
The same operations are tools of the Tringify MCP connectors: list_email_types, list_emails, get_email, update_email, set_email_enabled, preview_email, send_test_email, list_email_starters and the email translation tools. See Connect AI tools.
Sample data#
Previews render with illustrative sample data, never a customer's or order's data. The samples follow the store: amounts are in its base currency, addresses and phone numbers in its home country, and the tax lines are the taxes its own tax setup charges there. Do not use sample links, codes or amounts as live values. Sending uses the data of the event that triggered the email. GET /email-types returns sample_tax_details and sample_order_details for the types that have them.
For customer creation, send_welcome_email explicitly requests the welcome email. It defaults to false and is not a customer status, verification, marketing-consent, or webhook field. A successful customer creation confirms the profile operation, not email delivery. See Customers.
Newsletter consent#
The store newsletter double-opt-in setting applies to new opt-ins from storefront signup, Coming Soon page signup, checkout, merchant customer forms, CSV and customer API writes. With double opt-in enabled, accepts_marketing=true requests confirmation; customer responses and customer webhook payloads report false while confirmation is pending. Existing active subscriptions are preserved. accepts_marketing=false cancels active or pending consent. Omitting the field on update leaves consent unchanged.
Double opt-in sends the store's newsletter_confirmation email, which must print {{ newsletter.confirmation_url }}: turning double opt-in on, or saving that email without the link, is refused with NEWSLETTER_CONFIRMATION_TEMPLATE_INVALID. Edit it through /emails/newsletter_confirmation.
Confirmation links expire after 24 hours. Repeated signup requests within one minute do not queue another confirmation email. After that interval a new request replaces the token, invalidating the previous link. Expired, replaced, unsubscribed and already-used tokens cannot activate subscriptions. Turning double opt-in off does not activate pending subscribers by itself; a new opt-in request follows the current setting. Campaign audiences exclude pending subscribers and consent is checked again immediately before sending.
Newsletter links open the store-wide Email subscription page on the store's primary storefront domain (its mytringify.com address only when no domain is connected), in the subscriber's language. Opening a confirmation or unsubscribe link changes nothing, because mail scanners and link previews open links: the subscriber presses Confirm subscription or Unsubscribe. After unsubscribing they can subscribe again from the page, which stores a new consent proof with the subscription page as its source page. The page is noindex and never cached; merchants edit it in Store Admin under Online Store > Checkout > Email subscription. Transactional emails never carry an unsubscribe link or List-Unsubscribe headers.
The subscribers/create webhook fires when the subscriber row is created, including a pending double opt-in request. Activation (pending_confirmation to active), unsubscribe, resubscription and edits fire subscribers/update; deletion fires subscribers/delete. Each payload contains the Store API subscriber resource and requires read_customers. Customer account verification, welcome-email delivery and newsletter confirmation are separate. Confirmation email delivery still requires a ready transactional sender and available allowance. A subscription request accepted successfully is not proof of inbox delivery.
SMS and WhatsApp messages#
Message templates are separate from emails. /message-templates/types lists every message type with its name and description in the request language, its supported channels and its data_schema: the same values, paths and syntax as the email of the type (for example {{ order.number }} or {{ access.code }}), without the email root. Each type carries type_info, whose category (authentication, transactional or promotional) is fixed by the platform: only promotional types (cart recovery, checkout recovery and review requests) have the per-send message root ({{ message.opt_out_url }}, the text's opt-out link), and only their texts need the number's text marketing consent. Each message type has its own SMS and WhatsApp template: /message-templates returns one row per type and channel, and content is never shared between channels. Reads, updates and resets require channel (sms or whatsapp), so an edit meant for WhatsApp cannot overwrite SMS; a request without it is refused with MESSAGE_TEMPLATE_CHANNEL_REQUIRED. Content is checked as an email template is: it must compile and read only values in the type's data_schema (MARKETING_TEMPLATE_INVALID with the issues), and login, contact confirmation and order tracking codes must print {{ access.code }}, every promotional type {{ message.opt_out_url }} (MESSAGE_TEMPLATE_MISSING_VARIABLE). Any other type using message.opt_out_url is refused like any value its data_schema does not have (MARKETING_TEMPLATE_INVALID). A text that cannot be rendered when it is due is not sent. A reset restores only the requested channel's platform default.
Each template row has an id and its languages: default_locale and default_label name the language of content, and translations lists every other store language with its status (translated, outdated or not_translated) and updated_at. Templates translate like any other resource of the translation system (resource_type message_template, field content): read and write a language with /message-templates/{id}/translations/{locale}, or many at once with /message-templates/translations, under read_marketing plus read_translations and write_marketing plus write_translations. Store Admin, the mobile app, translation CSV, AI translation and MCP write the same translations. A translation keeps the original's values and tags exactly ({{ ... }} and {% ... %}; only the words around them change), otherwise it is refused with MARKETING_TRANSLATION_VARIABLES_MISMATCH and details.variables; it must not be blank (MESSAGE_TEMPLATE_CONTENT_REQUIRED) and holds at most max_content_length characters (MESSAGE_TEMPLATE_CONTENT_TOO_LONG). Editing or resetting the original leaves its translations in place and reports them outdated until they are updated. A message to a customer uses the translation for their language when one exists and the template's own text otherwise.
An edit or a reset of a template's text sends message_templates/update (read_marketing) with the template. A change to one of its translations sends message_templates/translations/update, or message_templates/translations/delete when a translation is cleared.
/message-channels chooses which channels carry each message type. It reports supported, selected, provider-ready and effective channels separately: a selected channel sends only once the store has an active, ready provider for it. Access-code messages use exactly one channel and cannot be disabled. The Message toggle on /customer-notifications turns an order event's message on or off; the channel settings decide whether it goes by SMS, WhatsApp or both.
Promotional campaigns and SMS and WhatsApp marketing consent are documented in Marketing Campaigns.
Endpoints#
Get email limits
Fetch the email field limits.
Returns max_subject_length and max_preview_text_length (characters) and test_email_max_length.
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
400STORE_API_QUERY_PARAMETER_UNKNOWNThe request has a query parameter; this endpoint takes none.
-
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
List emails
List the store's order and account emails.
Each email type (email-types.list) has exactly one email in the store: its subject, preview_text and code. Returns emails, one per email type in the registry's order, each with its email_type, type_info, toggleable, enabled, subject, preview_text and updated_at (read an email's code with emails.get). type_info is the notification type worded in English: name, a one-line description, sent_when (what triggers it, its delays, and when it is skipped or never sent), category (the platform's fixed category of the type: key authentication for sign-in, contact confirmation and order tracking codes, transactional for messages about something the customer did or asked for, or promotional for messages inviting the customer back, whose texts need marketing consent and print their opt-out link; with its label and one-line description), channels (email, sms, whatsapp), required (true when the merchant cannot switch it off), related_settings, the settings that control it, each a fixed key with a label, and tax_details (true for the emails that are financial documents: Order Placed, Order Updated and the four refund emails; such an email always shows the order's or the refund's tax breakdown where its code places {% render 'tax_details' %}, and at the end of the email when it doesn't; no other email shows it).
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
400STORE_API_INVALID_REQUEST_BODYRequest body is invalid, incomplete, or contains an unknown field.
-
400INVALID_INPUTAn identifier or field is invalid.
-
400EMAIL_TYPE_UNKNOWNThe type is not an email type.
-
400EMAIL_TEMPLATE_SUBJECT_REQUIREDThe email needs a subject.
-
400EMAIL_TEMPLATE_CODE_REQUIREDThe email needs its code.
-
400MARKETING_TEMPLATE_INVALIDThe code cannot be sent: it does not compile, reads a value its type does not have, or (a promotional email) does not print {{ email.unsubscribe_url }};
issuessay where. -
400NEWSLETTER_CONFIRMATION_TEMPLATE_INVALIDThe newsletter confirmation must print {{ newsletter.confirmation_url }}.
-
400EMAIL_TYPE_ALWAYS_ONThis email always sends and cannot be turned off.
-
404EMAIL_TEMPLATE_NOT_FOUNDThe store has no email of this type.
-
400STORE_API_QUERY_PARAMETER_UNKNOWNThe request has a query parameter; this endpoint takes none.
-
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
Get an email
Fetch one email with its code.
Each email type (email-types.list) has exactly one email in the store: its subject, preview_text and code. Returns email: its email_type, type_info, toggleable, enabled, subject, preview_text, code and updated_at. A tool with a change of the email waiting for the merchant's review reads its pending version, with review (as emails.update returns it).
Path parameters
| Name | Type | Description |
|---|---|---|
type
required
|
string |
Email type, from email-types.list. |
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
400STORE_API_INVALID_REQUEST_BODYRequest body is invalid, incomplete, or contains an unknown field.
-
400INVALID_INPUTAn identifier or field is invalid.
-
400EMAIL_TYPE_UNKNOWNThe type is not an email type.
-
400EMAIL_TEMPLATE_SUBJECT_REQUIREDThe email needs a subject.
-
400EMAIL_TEMPLATE_CODE_REQUIREDThe email needs its code.
-
400MARKETING_TEMPLATE_INVALIDThe code cannot be sent: it does not compile, reads a value its type does not have, or (a promotional email) does not print {{ email.unsubscribe_url }};
issuessay where. -
400NEWSLETTER_CONFIRMATION_TEMPLATE_INVALIDThe newsletter confirmation must print {{ newsletter.confirmation_url }}.
-
400EMAIL_TYPE_ALWAYS_ONThis email always sends and cannot be turned off.
-
404EMAIL_TEMPLATE_NOT_FOUNDThe store has no email of this type.
-
400STORE_API_QUERY_PARAMETER_UNKNOWNThe request has a query parameter; this endpoint takes none.
-
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
Preview an email
Render unsaved email code with sample data.
Renders the code exactly as a send would, without saving or sending, with the sample data of email_type (a campaign's document when omitted); no customer or order records are read. sample_variant picks one of the type's sample_variants (email-types.list), for example minimal (only the values every send has, to check empty fields), cod, pickup or many_items; omitted uses full. locale renders the email's translation in that language. Returns the rendered subject and html, the issues (severity error stops a save and a send; warning does not) and compat, the email-client compatibility warnings. Problems are returned as issues with whatever could be rendered, never as a failed request. Subjects and code are Vascula, the template language of themes: {{ order.number }} prints a value, {{ order.totals.total | money }} filters it, {% if order.note %}…{% endif %} decides; an email reads only the values in its type's data_schema (email-types.list) and brand, and a value that may be empty takes | default: "…". A save is checked like a send: code that does not compile or reads an unknown value is refused with MARKETING_TEMPLATE_INVALID and its issues, each with its code, line, col and message; warnings come back in the saved email's issues. Preview with emails.render before saving.
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Body parameters
| Name | Type | Description |
|---|---|---|
email_type
|
string |
Email type whose sample data the code renders with, from email-types. Omitted renders a campaign. |
code
|
string |
The email's code. |
document
|
object |
A campaign's sections and their settings. |
subject
|
string |
Subject to render. |
preview_text
|
string |
Inbox preview text. |
locale
|
string |
Render the email's translation in this language. |
sample_variant
|
string |
One of the email type's sample_variants, such as minimal, cod or pickup; full when omitted. |
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
400STORE_API_INVALID_REQUEST_BODYRequest body is invalid, incomplete, or contains an unknown field.
-
400INVALID_INPUTAn identifier or field is invalid.
-
400EMAIL_TYPE_UNKNOWNThe type is not an email type.
-
400EMAIL_TEMPLATE_SUBJECT_REQUIREDThe email needs a subject.
-
400EMAIL_TEMPLATE_CODE_REQUIREDThe email needs its code.
-
400MARKETING_TEMPLATE_INVALIDThe code cannot be sent: it does not compile, reads a value its type does not have, or (a promotional email) does not print {{ email.unsubscribe_url }};
issuessay where. -
400NEWSLETTER_CONFIRMATION_TEMPLATE_INVALIDThe newsletter confirmation must print {{ newsletter.confirmation_url }}.
-
400EMAIL_TYPE_ALWAYS_ONThis email always sends and cannot be turned off.
-
404EMAIL_TEMPLATE_NOT_FOUNDThe store has no email of this type.
-
400STORE_API_BODY_PROPERTY_UNKNOWNThe body has a property this request does not accept. The message and
error.details.propertieslist the allowed and required properties (nestedfor each object or list of objects). -
400STORE_API_BODY_PROPERTY_INVALIDA body property has the wrong type (
error.details.expected_type). The message anderror.details.propertieslist the allowed and required properties. -
400STORE_API_QUERY_PARAMETER_UNKNOWNThe request has a query parameter; this endpoint takes none.
-
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
List starter emails
List the platform's default emails and campaign starters.
Returns the platform's starter emails, each with its slug, name (in English), category, email_type (empty for campaigns), subject, preview_text, and either code with code_translations (an email type's default: its subject, preview text and each text of its code in the other library languages) or a campaign's document with translations (by field key). To put an email back to the platform's default, send its starter's subject, preview_text and code to emails.update. category narrows the list (an email type, or campaign), search matches names.
Query parameters
| Name | Type | Description |
|---|---|---|
category
|
string |
Starter category: an email type or campaign. |
search
|
string |
Search starter names. |
page
|
integer |
Page number. |
limit
|
integer |
Page size. |
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
400STORE_API_INVALID_REQUEST_BODYRequest body is invalid, incomplete, or contains an unknown field.
-
400INVALID_INPUTAn identifier or field is invalid.
-
400EMAIL_TYPE_UNKNOWNThe type is not an email type.
-
400EMAIL_TEMPLATE_SUBJECT_REQUIREDThe email needs a subject.
-
400EMAIL_TEMPLATE_CODE_REQUIREDThe email needs its code.
-
400MARKETING_TEMPLATE_INVALIDThe code cannot be sent: it does not compile, reads a value its type does not have, or (a promotional email) does not print {{ email.unsubscribe_url }};
issuessay where. -
400NEWSLETTER_CONFIRMATION_TEMPLATE_INVALIDThe newsletter confirmation must print {{ newsletter.confirmation_url }}.
-
400EMAIL_TYPE_ALWAYS_ONThis email always sends and cannot be turned off.
-
404EMAIL_TEMPLATE_NOT_FOUNDThe store has no email of this type.
-
400STORE_API_QUERY_PARAMETER_UNKNOWNThe query string has a parameter this request does not accept. The message and
error.details.allowed_parameterslist the ones it does. -
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
Update an email
Replace an email's subject, preview text and code.
Send the complete subject and code (and preview_text, empty for none). The code is Vascula HTML: a whole email document, written like a web page, with the brand values (the store's logo, accent colour and typography from email-design.get) for its styles. {% render 'header' %}, {% render 'items' %}, {% render 'order_details' %}, {% render 'tax_details' %}, {% render 'progress', stage: 'shipped' %}, {% render 'shipment' %}, {% render 'access_code' %}, {% render 'gift_card' %}, {% render 'product', item: product %}, {% render 'button', label: 'View your order', url: order.status_url %} and {% render 'footer' %} add the library's parts; email-design.get lists each snippet with its params. Nothing is added to the code for you: what it prints is what is sent. A promotional email (type_info.category promotional) must print {{ email.unsubscribe_url }} (an unsubscribe_missing issue otherwise), and the newsletter confirmation must print {{ newsletter.confirmation_url }}. A text keeps its translations while its wording is unchanged. Subjects and code are Vascula, the template language of themes: {{ order.number }} prints a value, {{ order.totals.total | money }} filters it, {% if order.note %}…{% endif %} decides; an email reads only the values in its type's data_schema (email-types.list) and brand, and a value that may be empty takes | default: "…". A save is checked like a send: code that does not compile or reads an unknown value is refused with MARKETING_TEMPLATE_INVALID and its issues, each with its code, line, col and message; warnings come back in the saved email's issues. Preview with emails.render before saving. Your save never reaches customers directly: it is your pending change of the email, returned with review (id, status awaiting_review, url and message), and customers keep receiving the live email until the merchant publishes it. review.url opens Store Admin's Canvas view of the change next to the live email, where the merchant publishes or discards it: give the merchant that link when the change is ready. Saving again replaces your pending change; another tool's change of the same email waits on its own. When the merchant publishes, your change replaces the live email as it is then, so read the email again before a new change. To return to the platform's default, send the code of the type's starter (email-starters.list).
Path parameters
| Name | Type | Description |
|---|---|---|
type
required
|
string |
Email type, from email-types.list. |
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Body parameters
| Name | Type | Description |
|---|---|---|
subject
required
|
string |
Email subject. |
preview_text
|
string |
Inbox preview text. |
code
required
|
string |
The email's code. |
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
400STORE_API_INVALID_REQUEST_BODYRequest body is invalid, incomplete, or contains an unknown field.
-
400INVALID_INPUTAn identifier or field is invalid.
-
400EMAIL_TYPE_UNKNOWNThe type is not an email type.
-
400EMAIL_TEMPLATE_SUBJECT_REQUIREDThe email needs a subject.
-
400EMAIL_TEMPLATE_CODE_REQUIREDThe email needs its code.
-
400MARKETING_TEMPLATE_INVALIDThe code cannot be sent: it does not compile, reads a value its type does not have, or (a promotional email) does not print {{ email.unsubscribe_url }};
issuessay where. -
400NEWSLETTER_CONFIRMATION_TEMPLATE_INVALIDThe newsletter confirmation must print {{ newsletter.confirmation_url }}.
-
400EMAIL_TYPE_ALWAYS_ONThis email always sends and cannot be turned off.
-
404EMAIL_TEMPLATE_NOT_FOUNDThe store has no email of this type.
-
400STORE_API_BODY_PROPERTY_UNKNOWNThe body has a property this request does not accept. The message and
error.details.propertieslist the allowed and required properties (nestedfor each object or list of objects). -
400STORE_API_BODY_PROPERTY_INVALIDA body property has the wrong type (
error.details.expected_type). The message anderror.details.propertieslist the allowed and required properties. -
400STORE_API_QUERY_PARAMETER_UNKNOWNThe request has a query parameter; this endpoint takes none.
-
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
Turn an email on or off
Turn a toggleable email on or off.
Only types with toggleable true accept it (restock_notification, gift_card_cancelled, gift_card_disabled, gift_card_enabled, store_credit_granted, store_credit_revoked and newsletter_welcome); the others always send (EMAIL_TYPE_ALWAYS_ON). Order-event emails are switched on customer-notifications. Sender verification and the store's email allowance still apply.
Path parameters
| Name | Type | Description |
|---|---|---|
type
required
|
string |
Email type, from email-types.list. |
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Body parameters
| Name | Type | Description |
|---|---|---|
enabled
required
|
boolean |
Whether the email is sent. |
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
400STORE_API_INVALID_REQUEST_BODYRequest body is invalid, incomplete, or contains an unknown field.
-
400INVALID_INPUTAn identifier or field is invalid.
-
400EMAIL_TYPE_UNKNOWNThe type is not an email type.
-
400EMAIL_TEMPLATE_SUBJECT_REQUIREDThe email needs a subject.
-
400EMAIL_TEMPLATE_CODE_REQUIREDThe email needs its code.
-
400MARKETING_TEMPLATE_INVALIDThe code cannot be sent: it does not compile, reads a value its type does not have, or (a promotional email) does not print {{ email.unsubscribe_url }};
issuessay where. -
400NEWSLETTER_CONFIRMATION_TEMPLATE_INVALIDThe newsletter confirmation must print {{ newsletter.confirmation_url }}.
-
400EMAIL_TYPE_ALWAYS_ONThis email always sends and cannot be turned off.
-
404EMAIL_TEMPLATE_NOT_FOUNDThe store has no email of this type.
-
400STORE_API_BODY_PROPERTY_UNKNOWNThe body has a property this request does not accept. The message and
error.details.propertieslist the allowed and required properties (nestedfor each object or list of objects). -
400STORE_API_BODY_PROPERTY_INVALIDA body property has the wrong type (
error.details.expected_type). The message anderror.details.propertieslist the allowed and required properties. -
400STORE_API_QUERY_PARAMETER_UNKNOWNThe request has a query parameter; this endpoint takes none.
-
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
Send a test email
Send a test of an email to yourself.
Queues a test of the saved email, rendered with sample data and marked [TEST] in the subject, to the person the request acts for: the staff member who created the admin token, or the merchant using the connected tool. It always goes to that address, so a test never reaches a customer. App tokens cannot send tests. subject, preview_text and code sent replace the saved email's for this send only, so an unsaved edit can be tried first; nothing is saved. A tool with a change of the email waiting for review tests its pending version when it sends no code. sample_variant picks one of the type's sample_variants; from_address_id one of the store's sender addresses (the default sender when omitted). A test uses the store's email allowance like any email.
Path parameters
| Name | Type | Description |
|---|---|---|
type
required
|
string |
Email type, from email-types.list. |
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Body parameters
| Name | Type | Description |
|---|---|---|
subject
|
string |
Subject for this test instead of the saved one. |
preview_text
|
string |
Preview text for this test. |
code
|
string |
Code for this test instead of the saved code. |
sample_variant
|
string |
One of the email type's sample_variants, such as minimal, cod or pickup; full when omitted. |
from_address_id
|
uuid |
Sender address id; the default sender when omitted. |
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
400STORE_API_INVALID_REQUEST_BODYRequest body is invalid, incomplete, or contains an unknown field.
-
400INVALID_INPUTAn identifier or field is invalid.
-
400EMAIL_TYPE_UNKNOWNThe type is not an email type.
-
400EMAIL_TEMPLATE_SUBJECT_REQUIREDThe email needs a subject.
-
400EMAIL_TEMPLATE_CODE_REQUIREDThe email needs its code.
-
400MARKETING_TEMPLATE_INVALIDThe code cannot be sent: it does not compile, reads a value its type does not have, or (a promotional email) does not print {{ email.unsubscribe_url }};
issuessay where. -
400NEWSLETTER_CONFIRMATION_TEMPLATE_INVALIDThe newsletter confirmation must print {{ newsletter.confirmation_url }}.
-
400EMAIL_TYPE_ALWAYS_ONThis email always sends and cannot be turned off.
-
404EMAIL_TEMPLATE_NOT_FOUNDThe store has no email of this type.
-
400STORE_API_BODY_PROPERTY_UNKNOWNThe body has a property this request does not accept. The message and
error.details.propertieslist the allowed and required properties (nestedfor each object or list of objects). -
400STORE_API_BODY_PROPERTY_INVALIDA body property has the wrong type (
error.details.expected_type). The message anderror.details.propertieslist the allowed and required properties. -
400STORE_API_QUERY_PARAMETER_UNKNOWNThe request has a query parameter; this endpoint takes none.
-
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
Get the email design
Read the sections, brand and labels emails are built from.
Returns sections: every section an email can use, the library's first and then the store's own (custom: true, type custom:<name>), each with its settings schema (id, type, default, options, editor label key), its blocks schema, defaults, requires/requires_any (the data roots it reads) and available for the email_type given; brand_schema and brand, the store's brand settings (logo, colours, fonts, button and image shapes, footer, social profiles) that every email reads; and labels, the label keys worded in English. limits holds the most sections one email and the store may have. snippets lists the parts an order or account email's code can {% render %}: each name, its params and a description of what it shows and how its params work.
Query parameters
| Name | Type | Description |
|---|---|---|
email_type
|
string |
Mark the sections this email type can use. |
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
400STORE_API_INVALID_REQUEST_BODYRequest body is invalid, incomplete, or contains an unknown field.
-
400INVALID_INPUTAn identifier or field is invalid.
-
400EMAIL_TYPE_UNKNOWNThe type is not an email type.
-
400EMAIL_TEMPLATE_SUBJECT_REQUIREDThe email needs a subject.
-
400EMAIL_TEMPLATE_CODE_REQUIREDThe email needs its code.
-
400MARKETING_TEMPLATE_INVALIDThe code cannot be sent: it does not compile, reads a value its type does not have, or (a promotional email) does not print {{ email.unsubscribe_url }};
issuessay where. -
400NEWSLETTER_CONFIRMATION_TEMPLATE_INVALIDThe newsletter confirmation must print {{ newsletter.confirmation_url }}.
-
400EMAIL_TYPE_ALWAYS_ONThis email always sends and cannot be turned off.
-
404EMAIL_TEMPLATE_NOT_FOUNDThe store has no email of this type.
-
400STORE_API_QUERY_PARAMETER_UNKNOWNThe query string has a parameter this request does not accept. The message and
error.details.allowed_parameterslist the ones it does. -
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
Update the email brand
Replace the store's email brand settings.
Replaces the brand settings with settings (values by email-design.get's brand_schema; settings left out take their defaults). Every email uses them from its next send, so preview a few emails first. logo is a file id from the store's files.
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Body parameters
| Name | Type | Description |
|---|---|---|
settings
required
|
object |
Brand values by setting id. |
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
400STORE_API_INVALID_REQUEST_BODYRequest body is invalid, incomplete, or contains an unknown field.
-
400INVALID_INPUTAn identifier or field is invalid.
-
400EMAIL_TYPE_UNKNOWNThe type is not an email type.
-
400EMAIL_TEMPLATE_SUBJECT_REQUIREDThe email needs a subject.
-
400EMAIL_TEMPLATE_CODE_REQUIREDThe email needs its code.
-
400MARKETING_TEMPLATE_INVALIDThe code cannot be sent: it does not compile, reads a value its type does not have, or (a promotional email) does not print {{ email.unsubscribe_url }};
issuessay where. -
400NEWSLETTER_CONFIRMATION_TEMPLATE_INVALIDThe newsletter confirmation must print {{ newsletter.confirmation_url }}.
-
400EMAIL_TYPE_ALWAYS_ONThis email always sends and cannot be turned off.
-
404EMAIL_TEMPLATE_NOT_FOUNDThe store has no email of this type.
-
400EMAIL_BRAND_INVALIDA brand setting is unknown or has an invalid value.
-
400STORE_API_BODY_PROPERTY_UNKNOWNThe body has a property this request does not accept. The message and
error.details.propertieslist the allowed and required properties (nestedfor each object or list of objects). -
400STORE_API_BODY_PROPERTY_INVALIDA body property has the wrong type (
error.details.expected_type). The message anderror.details.propertieslist the allowed and required properties. -
400STORE_API_QUERY_PARAMETER_UNKNOWNThe request has a query parameter; this endpoint takes none.
-
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
Get an email section's code
Read a section's Vascula source.
Returns the source of a library section (to start one of the store's own from) or of one of the store's sections (custom:<name> or <name>): Vascula markup followed by a {% schema %} block with its settings, blocks and the data roots it requires. Sections read settings, brand (the brand settings and what follows from them: font stacks, surfaces, spacing), the email's data and the filters t (library wording), money, date, rows, line_items, order_details, tax_details; they may {% render %} the library snippets button and eyebrow.
Path parameters
| Name | Type | Description |
|---|---|---|
name
required
|
string |
A library section, or custom: |
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
400STORE_API_INVALID_REQUEST_BODYRequest body is invalid, incomplete, or contains an unknown field.
-
400INVALID_INPUTAn identifier or field is invalid.
-
400EMAIL_TYPE_UNKNOWNThe type is not an email type.
-
400EMAIL_TEMPLATE_SUBJECT_REQUIREDThe email needs a subject.
-
400EMAIL_TEMPLATE_CODE_REQUIREDThe email needs its code.
-
400MARKETING_TEMPLATE_INVALIDThe code cannot be sent: it does not compile, reads a value its type does not have, or (a promotional email) does not print {{ email.unsubscribe_url }};
issuessay where. -
400NEWSLETTER_CONFIRMATION_TEMPLATE_INVALIDThe newsletter confirmation must print {{ newsletter.confirmation_url }}.
-
400EMAIL_TYPE_ALWAYS_ONThis email always sends and cannot be turned off.
-
404EMAIL_TEMPLATE_NOT_FOUNDThe store has no email of this type.
-
404EMAIL_SECTION_NOT_FOUNDNo such section.
-
400STORE_API_QUERY_PARAMETER_UNKNOWNThe request has a query parameter; this endpoint takes none.
-
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
Save an email section
Create or replace one of the store's own sections.
Saves Vascula source as one of the store's sections, used in documents as custom:<name> (names: a lowercase letter, then lowercase letters, digits and underscores, up to 48). The source must be one section: email-safe markup (each section is a table row of the 600px email) and a {% schema %} using the email setting types (text, textarea, richtext, number, checkbox, select, range, color, image, url, product, product_list, collection, collection_list). It is refused when it does not parse or compile, renders anything but the library snippets, or carries markup emails may not (scripts, forms, frames). Campaigns that use it render it from their next send; preview them first.
Path parameters
| Name | Type | Description |
|---|---|---|
name
required
|
string |
The section's name. |
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Body parameters
| Name | Type | Description |
|---|---|---|
source
required
|
string |
The section's Vascula source with its schema. |
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
400STORE_API_INVALID_REQUEST_BODYRequest body is invalid, incomplete, or contains an unknown field.
-
400INVALID_INPUTAn identifier or field is invalid.
-
400EMAIL_TYPE_UNKNOWNThe type is not an email type.
-
400EMAIL_TEMPLATE_SUBJECT_REQUIREDThe email needs a subject.
-
400EMAIL_TEMPLATE_CODE_REQUIREDThe email needs its code.
-
400MARKETING_TEMPLATE_INVALIDThe code cannot be sent: it does not compile, reads a value its type does not have, or (a promotional email) does not print {{ email.unsubscribe_url }};
issuessay where. -
400NEWSLETTER_CONFIRMATION_TEMPLATE_INVALIDThe newsletter confirmation must print {{ newsletter.confirmation_url }}.
-
400EMAIL_TYPE_ALWAYS_ONThis email always sends and cannot be turned off.
-
404EMAIL_TEMPLATE_NOT_FOUNDThe store has no email of this type.
-
400EMAIL_SECTION_INVALIDThe source cannot be used; the message says why.
-
400EMAIL_SECTION_NAME_INVALIDThe name is not valid.
-
409EMAIL_SECTION_LIMIT_REACHEDThe store has the most sections it may.
-
400STORE_API_BODY_PROPERTY_UNKNOWNThe body has a property this request does not accept. The message and
error.details.propertieslist the allowed and required properties (nestedfor each object or list of objects). -
400STORE_API_BODY_PROPERTY_INVALIDA body property has the wrong type (
error.details.expected_type). The message anderror.details.propertieslist the allowed and required properties. -
400STORE_API_QUERY_PARAMETER_UNKNOWNThe request has a query parameter; this endpoint takes none.
-
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
Delete an email section
Delete one of the store's own sections.
Refused with EMAIL_SECTION_IN_USE while an unsent campaign uses it.
Path parameters
| Name | Type | Description |
|---|---|---|
name
required
|
string |
The section's name. |
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
400STORE_API_INVALID_REQUEST_BODYRequest body is invalid, incomplete, or contains an unknown field.
-
400INVALID_INPUTAn identifier or field is invalid.
-
400EMAIL_TYPE_UNKNOWNThe type is not an email type.
-
400EMAIL_TEMPLATE_SUBJECT_REQUIREDThe email needs a subject.
-
400EMAIL_TEMPLATE_CODE_REQUIREDThe email needs its code.
-
400MARKETING_TEMPLATE_INVALIDThe code cannot be sent: it does not compile, reads a value its type does not have, or (a promotional email) does not print {{ email.unsubscribe_url }};
issuessay where. -
400NEWSLETTER_CONFIRMATION_TEMPLATE_INVALIDThe newsletter confirmation must print {{ newsletter.confirmation_url }}.
-
400EMAIL_TYPE_ALWAYS_ONThis email always sends and cannot be turned off.
-
404EMAIL_TEMPLATE_NOT_FOUNDThe store has no email of this type.
-
409EMAIL_SECTION_IN_USEAn email still uses the section.
-
404EMAIL_SECTION_NOT_FOUNDNo such section.
-
400STORE_API_QUERY_PARAMETER_UNKNOWNThe request has a query parameter; this endpoint takes none.
-
400STORE_API_BODY_PROPERTY_UNKNOWNThe request body has a property; this endpoint takes no body. Send no body or an empty object
{}. -
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
Get email translation coverage
Count translated and outdated texts per email and language.
Returns emails: for each type in email_types (comma-separated), each of the store's languages other than the default with its status and how many of the email's texts are translated, outdated (the original changed after the translation was written) and their total, plus complete_count of language_count and a worded summary.
Query parameters
| Name | Type | Description |
|---|---|---|
email_types
required
|
string |
Comma-separated email types. |
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
400STORE_API_INVALID_REQUEST_BODYRequest body is invalid, incomplete, or contains an unknown field.
-
400INVALID_INPUTAn identifier or field is invalid.
-
400EMAIL_TYPE_UNKNOWNThe type is not an email type.
-
400EMAIL_TEMPLATE_SUBJECT_REQUIREDThe email needs a subject.
-
400EMAIL_TEMPLATE_CODE_REQUIREDThe email needs its code.
-
400MARKETING_TEMPLATE_INVALIDThe code cannot be sent: it does not compile, reads a value its type does not have, or (a promotional email) does not print {{ email.unsubscribe_url }};
issuessay where. -
400NEWSLETTER_CONFIRMATION_TEMPLATE_INVALIDThe newsletter confirmation must print {{ newsletter.confirmation_url }}.
-
400EMAIL_TYPE_ALWAYS_ONThis email always sends and cannot be turned off.
-
404EMAIL_TEMPLATE_NOT_FOUNDThe store has no email of this type.
-
400STORE_API_QUERY_PARAMETER_UNKNOWNThe query string has a parameter this request does not accept. The message and
error.details.allowed_parameterslist the ones it does. -
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
Get an email translation
Read every text of an email in one language.
An email is translated text by text: its subject (subject), preview text (preview_text) and each text of its code (text.<fingerprint>: the words between two tags, or a snippet's quoted label, heading, button_label or text, keyed by a fingerprint of its wording) have a key. A customer whose language has a translation gets it; a missing text falls back to the default language's. locale is one of the store's languages other than its default. Returns fields: one per text, with its key, kind, the source text, the translated value (empty when untranslated), its status (translated, outdated or missing), the variables the translation must keep, max_length and whether it is multiline.
Path parameters
| Name | Type | Description |
|---|---|---|
type
required
|
string |
Email type, from email-types.list. |
locale
required
|
string |
One of the store's languages other than its default. |
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
400STORE_API_INVALID_REQUEST_BODYRequest body is invalid, incomplete, or contains an unknown field.
-
400INVALID_INPUTAn identifier or field is invalid.
-
400EMAIL_TYPE_UNKNOWNThe type is not an email type.
-
400EMAIL_TEMPLATE_SUBJECT_REQUIREDThe email needs a subject.
-
400EMAIL_TEMPLATE_CODE_REQUIREDThe email needs its code.
-
400MARKETING_TEMPLATE_INVALIDThe code cannot be sent: it does not compile, reads a value its type does not have, or (a promotional email) does not print {{ email.unsubscribe_url }};
issuessay where. -
400NEWSLETTER_CONFIRMATION_TEMPLATE_INVALIDThe newsletter confirmation must print {{ newsletter.confirmation_url }}.
-
400EMAIL_TYPE_ALWAYS_ONThis email always sends and cannot be turned off.
-
404EMAIL_TEMPLATE_NOT_FOUNDThe store has no email of this type.
-
400STORE_API_QUERY_PARAMETER_UNKNOWNThe request has a query parameter; this endpoint takes none.
-
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
Set an email translation
Save translated texts of an email by key.
An email is translated text by text: its subject (subject), preview text (preview_text) and each text of its code (text.<fingerprint>: the words between two tags, or a snippet's quoted label, heading, button_label or text, keyed by a fingerprint of its wording) have a key. A customer whose language has a translation gets it; a missing text falls back to the default language's. locale is one of the store's languages other than its default. Send values, an object of text key to translated text, with the keys emails.translation.get returns; texts not sent keep their current translation. A translation must keep every value in the text's variables ({{ order.number }}) and stay within max_length. A write waits at most 2 seconds for other translation writes of the same item or of a clashing name or slug (for example a translation CSV import writing the same language); writes of other items, types and languages never wait. A row or call that fails with TRANSLATION_WRITE_BUSY (HTTP 503) saved nothing: send it again after error.details.retry_after_seconds (the call's Retry-After header says the same). Every row or call either saved or reports an error; none is left in an unknown state.
Path parameters
| Name | Type | Description |
|---|---|---|
type
required
|
string |
Email type, from email-types.list. |
locale
required
|
string |
One of the store's languages other than its default. |
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Idempotency-Key
|
string |
Optional key for this translation write. Reuse it only with the same payload when repeating the request. |
Body parameters
| Name | Type | Description |
|---|---|---|
values
required
|
object |
Text key to translated text. |
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
400STORE_API_INVALID_REQUEST_BODYRequest body is invalid, incomplete, or contains an unknown field.
-
400INVALID_INPUTAn identifier or field is invalid.
-
400EMAIL_TYPE_UNKNOWNThe type is not an email type.
-
400EMAIL_TEMPLATE_SUBJECT_REQUIREDThe email needs a subject.
-
400EMAIL_TEMPLATE_CODE_REQUIREDThe email needs its code.
-
400MARKETING_TEMPLATE_INVALIDThe code cannot be sent: it does not compile, reads a value its type does not have, or (a promotional email) does not print {{ email.unsubscribe_url }};
issuessay where. -
400NEWSLETTER_CONFIRMATION_TEMPLATE_INVALIDThe newsletter confirmation must print {{ newsletter.confirmation_url }}.
-
400EMAIL_TYPE_ALWAYS_ONThis email always sends and cannot be turned off.
-
404EMAIL_TEMPLATE_NOT_FOUNDThe store has no email of this type.
-
503TRANSLATION_WRITE_BUSYOther translation writes held the item or a clashing name or slug for more than 2 seconds; nothing was saved. Send the request again after
error.details.retry_after_seconds(also theRetry-Afterheader). -
400STORE_API_BODY_PROPERTY_UNKNOWNThe body has a property this request does not accept. The message and
error.details.propertieslist the allowed and required properties (nestedfor each object or list of objects). -
400STORE_API_BODY_PROPERTY_INVALIDA body property has the wrong type (
error.details.expected_type). The message anderror.details.propertieslist the allowed and required properties. -
400STORE_API_QUERY_PARAMETER_UNKNOWNThe request has a query parameter; this endpoint takes none.
-
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
Delete an email translation
Remove an email's translation in one language.
An email is translated text by text: its subject (subject), preview text (preview_text) and each text of its code (text.<fingerprint>: the words between two tags, or a snippet's quoted label, heading, button_label or text, keyed by a fingerprint of its wording) have a key. A customer whose language has a translation gets it; a missing text falls back to the default language's. locale is one of the store's languages other than its default. Afterwards the email goes out in the store's default language to customers who use this one.
Path parameters
| Name | Type | Description |
|---|---|---|
type
required
|
string |
Email type, from email-types.list. |
locale
required
|
string |
One of the store's languages other than its default. |
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
400STORE_API_INVALID_REQUEST_BODYRequest body is invalid, incomplete, or contains an unknown field.
-
400INVALID_INPUTAn identifier or field is invalid.
-
400EMAIL_TYPE_UNKNOWNThe type is not an email type.
-
400EMAIL_TEMPLATE_SUBJECT_REQUIREDThe email needs a subject.
-
400EMAIL_TEMPLATE_CODE_REQUIREDThe email needs its code.
-
400MARKETING_TEMPLATE_INVALIDThe code cannot be sent: it does not compile, reads a value its type does not have, or (a promotional email) does not print {{ email.unsubscribe_url }};
issuessay where. -
400NEWSLETTER_CONFIRMATION_TEMPLATE_INVALIDThe newsletter confirmation must print {{ newsletter.confirmation_url }}.
-
400EMAIL_TYPE_ALWAYS_ONThis email always sends and cannot be turned off.
-
404EMAIL_TEMPLATE_NOT_FOUNDThe store has no email of this type.
-
400STORE_API_QUERY_PARAMETER_UNKNOWNThe request has a query parameter; this endpoint takes none.
-
400STORE_API_BODY_PROPERTY_UNKNOWNThe request body has a property; this endpoint takes no body. Send no body or an empty object
{}. -
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
List email types
List the transactional and promotional customer-email registry.
Returns the supported email types (without type, each type is listed briefly; read the types you need in full with type, or all of them with summary=false), whether merchants may turn it off, and its data_schema: the values its templates read, as dotted paths such as order.number (the same values as the SMS and WhatsApp templates of the type, apart from the per-channel email root and the message root that only texts of promotional types have). Each type carries type_info; classify a type by type_info.category rather than by its name. sample_variants names the sample data a preview or test send of the type can use (emails.render, emails.send-test), full first; minimal holds only the values every send has, so it shows how an email reads when optional values are empty. Write emails from the data_schema: the platform refuses any other value. Promotional campaigns use the marketing sender and consent rules. A type whose type_info.tax_details is true also returns sample_tax_details: the heading and rows (label, value) of its sample tax breakdown, as its Tax details block shows them. A type whose data has the order root also returns sample_order_details: the parts of its sample order (key is shipping_address, billing_address, delivery (the shipping method, or the pickup location of a pickup order), payment or note; heading; lines), in their default order, as its Order details block shows them; a type without it does not offer the block. The samples follow the store: amounts in its base currency, addresses and phone numbers in its home country, and one tax line per tax its own tax setup charges there, marked Included or Added as its prices include tax or not; a store with no tax there shows one line, Tax (10%). type_info is the notification type worded in English: name, a one-line description, sent_when (what triggers it, its delays, and when it is skipped or never sent), category (the platform's fixed category of the type: key authentication for sign-in, contact confirmation and order tracking codes, transactional for messages about something the customer did or asked for, or promotional for messages inviting the customer back, whose texts need marketing consent and print their opt-out link; with its label and one-line description), channels (email, sms, whatsapp), required (true when the merchant cannot switch it off), related_settings, the settings that control it, each a fixed key with a label, and tax_details (true for the emails that are financial documents: Order Placed, Order Updated and the four refund emails; such an email always shows the order's or the refund's tax breakdown where its code places {% render 'tax_details' %}, and at the end of the email when it doesn't; no other email shows it).
Query parameters
| Name | Type | Description |
|---|---|---|
type
|
string |
Return only these email types: one key or several, comma-separated, such as order_confirmation. An unknown key is refused with EMAIL_TYPE_UNKNOWN. |
summary
|
boolean |
Each type without its data_schema, condition_presets and samples (key, type_info, template_type, toggleable and sample_variants only). Defaults to true without type and false with it. |
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
400INVALID_INPUTsummary is not a boolean.
-
400EMAIL_TYPE_UNKNOWNA type in
typeis not an email type. -
400STORE_API_QUERY_PARAMETER_UNKNOWNThe query string has a parameter this request does not accept. The message and
error.details.allowed_parameterslist the ones it does. -
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
List customer notification settings
Read the order-event notification matrix.
Each row separates Email from Message. Message is one toggle for the event; its exact SMS/WhatsApp delivery comes from message-channels and the response reports effective provider-ready channels in effective_message_channels, and effective_message_channel_labels names them (value with a label worded by the API) in the same order. Every row carries type_info for the notification the event sends. Reads require both Orders and Marketing visibility. type_info is the notification type worded in English: name, a one-line description, sent_when (what triggers it, its delays, and when it is skipped or never sent), category (the platform's fixed category of the type: key authentication for sign-in, contact confirmation and order tracking codes, transactional for messages about something the customer did or asked for, or promotional for messages inviting the customer back, whose texts need marketing consent and print their opt-out link; with its label and one-line description), channels (email, sms, whatsapp), required (true when the merchant cannot switch it off), related_settings, the settings that control it, each a fixed key with a label, and tax_details (true for the emails that are financial documents: Order Placed, Order Updated and the four refund emails; such an email always shows the order's or the refund's tax breakdown where its code places {% render 'tax_details' %}, and at the end of the email when it doesn't; no other email shows it).
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
400STORE_API_QUERY_PARAMETER_UNKNOWNThe request has a query parameter; this endpoint takes none.
-
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
Update a customer notification
Set Email and Message delivery for one order event.
Send at least one of email_enabled or message_enabled. An omitted field keeps its current value, so independent channel updates do not overwrite each other. Enabling Message requires at least one selected, provider-ready channel; disabling remains allowed if a provider becomes unavailable. Writes require both Orders and Marketing authority.
Path parameters
| Name | Type | Description |
|---|---|---|
event
required
|
string |
The row's event key, as customer-notifications.list returns it (for example order_updated or fulfillment_shipped). |
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Body parameters
| Name | Type | Description |
|---|---|---|
email_enabled
|
boolean |
Whether this event sends its configured email. |
message_enabled
|
boolean |
Whether this event uses its effective selected SMS/WhatsApp channels. |
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
400STORE_API_INVALID_REQUEST_BODYThe body contains an unknown field, an invalid value, or omits both email_enabled and message_enabled.
-
400INVALID_INPUTThe event is unsupported.
-
409MESSAGE_CHANNEL_NONE_DELIVERABLEMessage cannot be enabled because no selected channel has a ready provider.
-
400STORE_API_BODY_PROPERTY_UNKNOWNThe body has a property this request does not accept. The message and
error.details.propertieslist the allowed and required properties (nestedfor each object or list of objects). -
400STORE_API_BODY_PROPERTY_INVALIDA body property has the wrong type (
error.details.expected_type). The message anderror.details.propertieslist the allowed and required properties. -
400STORE_API_QUERY_PARAMETER_UNKNOWNThe request has a query parameter; this endpoint takes none.
-
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
List message template types
List supported customer message types.
Returns every message type, its type_info, its supported template channels and its data_schema: the values its templates read, in the same shape and with the same paths as the email of the type ({{ order.number }}). Promotional types (type_info.category.key promotional) also have the per-send message root (message.opt_out_url, the text's opt-out link); no other type has it. type_info is the notification type worded in English: name, a one-line description, sent_when (what triggers it, its delays, and when it is skipped or never sent), category (the platform's fixed category of the type: key authentication for sign-in, contact confirmation and order tracking codes, transactional for messages about something the customer did or asked for, or promotional for messages inviting the customer back, whose texts need marketing consent and print their opt-out link; with its label and one-line description), channels (email, sms, whatsapp), required (true when the merchant cannot switch it off), related_settings, the settings that control it, each a fixed key with a label, and tax_details (true for the emails that are financial documents: Order Placed, Order Updated and the four refund emails; such an email always shows the order's or the refund's tax breakdown where its code places {% render 'tax_details' %}, and at the end of the email when it doesn't; no other email shows it).
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
400STORE_API_QUERY_PARAMETER_UNKNOWNThe request has a query parameter; this endpoint takes none.
-
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
List message templates
List SMS and WhatsApp templates.
Returns a separate template row for each message type and channel. SMS and WhatsApp content is never shared implicitly. Each row carries type_info for its message type. type_info is the notification type worded in English: name, a one-line description, sent_when (what triggers it, its delays, and when it is skipped or never sent), category (the platform's fixed category of the type: key authentication for sign-in, contact confirmation and order tracking codes, transactional for messages about something the customer did or asked for, or promotional for messages inviting the customer back, whose texts need marketing consent and print their opt-out link; with its label and one-line description), channels (email, sms, whatsapp), required (true when the merchant cannot switch it off), related_settings, the settings that control it, each a fixed key with a label, and tax_details (true for the emails that are financial documents: Order Placed, Order Updated and the four refund emails; such an email always shows the order's or the refund's tax breakdown where its code places {% render 'tax_details' %}, and at the end of the email when it doesn't; no other email shows it). Each row has its id (the ID its translations use), default_locale and default_label (the language of content), translations: its state in every other store language (translated, outdated or not_translated, with updated_at of the translation), and translations_updated_at. Read and write the other languages with the message template translation endpoints. A WhatsApp row of a type whose message carries buttons (Confirm Cash on Delivery Order, Delivery Attempt Failed, Shipment Returned) has buttons, in the order sends use them: each key, kind (reply: the tap answers the store; url: it opens a page) and labels, the store's wording in its default and each other language (locale, label). The wording is the store's Storefront Messages for those buttons; which buttons a send carries follows the store's order settings. A WhatsApp template made from the row (for example by a WhatsApp app) puts its buttons in the same order.
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
400STORE_API_QUERY_PARAMETER_UNKNOWNThe request has a query parameter; this endpoint takes none.
-
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
Get a message template
Fetch one channel-specific message template.
channel is required: pass channel=sms or channel=whatsapp. A request without it is refused with MESSAGE_TEMPLATE_CHANNEL_REQUIRED. Each row has its id (the ID its translations use), default_locale and default_label (the language of content), translations: its state in every other store language (translated, outdated or not_translated, with updated_at of the translation), and translations_updated_at. Read and write the other languages with the message template translation endpoints. A WhatsApp row of a type whose message carries buttons (Confirm Cash on Delivery Order, Delivery Attempt Failed, Shipment Returned) has buttons, in the order sends use them: each key, kind (reply: the tap answers the store; url: it opens a page) and labels, the store's wording in its default and each other language (locale, label). The wording is the store's Storefront Messages for those buttons; which buttons a send carries follows the store's order settings. A WhatsApp template made from the row (for example by a WhatsApp app) puts its buttons in the same order.
Path parameters
| Name | Type | Description |
|---|---|---|
type
required
|
string |
Message type from the types endpoint. |
Query parameters
| Name | Type | Description |
|---|---|---|
channel
required
|
string |
Template channel: |
locale
|
string |
A store language: |
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
400STORE_API_INVALID_REQUEST_BODYRequest body is invalid or contains an unknown field.
-
400INVALID_INPUTA field, consent evidence, campaign document, date, or identifier is invalid, or audience_subscriber_source is not
coming_soonor is combined with audience_group_id. -
400SMS_PHONE_INVALIDThe marketing contact is not a valid E.164 phone number.
-
400MESSAGE_CHANNEL_INVALIDChannel is not SMS or WhatsApp.
-
404NOT_FOUNDCampaign or consent does not exist in this store.
-
409MESSAGE_CHANNEL_NONE_DELIVERABLEA selected channel has no ready provider.
-
409MARKETING_CAMPAIGN_NOT_EDITABLECampaign state does not allow this action.
-
409MARKETING_CONTACT_CONSENT_REQUIREDThe recipient has no active consent for any requested promotional channel.
-
400MESSAGE_TEMPLATE_CHANNEL_REQUIREDchannelis missing; sendsmsorwhatsapp. -
400STORE_API_QUERY_PARAMETER_UNKNOWNThe query string has a parameter this request does not accept. The message and
error.details.allowed_parameterslist the ones it does. -
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
Update a message template
Update one channel-specific template.
channel is required so an integration cannot accidentally overwrite SMS while intending to edit WhatsApp; a request without it is refused with MESSAGE_TEMPLATE_CHANNEL_REQUIRED. Content is checked like an email template of the type: it must compile and read only values in the type's data_schema (otherwise MARKETING_TEMPLATE_INVALID with the issues), and a type that sends a code (login, contact confirmation and order tracking codes) must print {{ access.code }} and every promotional type {{ message.opt_out_url }} (otherwise MESSAGE_TEMPLATE_MISSING_VARIABLE). Only promotional types have message.opt_out_url; any other type using it is refused like any value its data_schema does not have. A changed text leaves its translations in place and reports them outdated until they are updated. A change sends message_templates/update.
Path parameters
| Name | Type | Description |
|---|---|---|
type
required
|
string |
Message type from the types endpoint. |
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Body parameters
| Name | Type | Description |
|---|---|---|
channel
required
|
string |
Template channel: |
content
required
|
string |
Message template text: plain text with values from the type's |
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
400STORE_API_INVALID_REQUEST_BODYRequest body is invalid or contains an unknown field.
-
400INVALID_INPUTA field, consent evidence, campaign document, date, or identifier is invalid, or audience_subscriber_source is not
coming_soonor is combined with audience_group_id. -
400SMS_PHONE_INVALIDThe marketing contact is not a valid E.164 phone number.
-
400MESSAGE_CHANNEL_INVALIDChannel is not SMS or WhatsApp.
-
404NOT_FOUNDCampaign or consent does not exist in this store.
-
409MESSAGE_CHANNEL_NONE_DELIVERABLEA selected channel has no ready provider.
-
409MARKETING_CAMPAIGN_NOT_EDITABLECampaign state does not allow this action.
-
409MARKETING_CONTACT_CONSENT_REQUIREDThe recipient has no active consent for any requested promotional channel.
-
400MESSAGE_TEMPLATE_CHANNEL_REQUIREDchannelis missing; sendsmsorwhatsapp. -
400MARKETING_TEMPLATE_INVALIDThe content does not compile or reads a value the type's
data_schemadoes not have;details.issueslists each problem with its line and column. -
400MESSAGE_TEMPLATE_MISSING_VARIABLEThe content does not print the value the type requires:
{{ access.code }}for a type that sends a code,{{ message.opt_out_url }}for a promotional type. -
400STORE_API_BODY_PROPERTY_UNKNOWNThe body has a property this request does not accept. The message and
error.details.propertieslist the allowed and required properties (nestedfor each object or list of objects). -
400STORE_API_BODY_PROPERTY_INVALIDA body property has the wrong type (
error.details.expected_type). The message anderror.details.propertieslist the allowed and required properties. -
400STORE_API_QUERY_PARAMETER_UNKNOWNThe request has a query parameter; this endpoint takes none.
-
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
Reset a message template
Reset one channel-specific template to its platform default.
channel is required: pass channel=sms or channel=whatsapp; a request without it is refused with MESSAGE_TEMPLATE_CHANNEL_REQUIRED. The reset affects only the requested channel. Translations stay and are reported outdated when the default text differs from the one they were written against. A reset that changes the text sends message_templates/update.
Path parameters
| Name | Type | Description |
|---|---|---|
type
required
|
string |
Message type from the types endpoint. |
Query parameters
| Name | Type | Description |
|---|---|---|
channel
required
|
string |
Template channel: |
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
400STORE_API_INVALID_REQUEST_BODYRequest body is invalid or contains an unknown field.
-
400INVALID_INPUTA field, consent evidence, campaign document, date, or identifier is invalid, or audience_subscriber_source is not
coming_soonor is combined with audience_group_id. -
400SMS_PHONE_INVALIDThe marketing contact is not a valid E.164 phone number.
-
400MESSAGE_CHANNEL_INVALIDChannel is not SMS or WhatsApp.
-
404NOT_FOUNDCampaign or consent does not exist in this store.
-
409MESSAGE_CHANNEL_NONE_DELIVERABLEA selected channel has no ready provider.
-
409MARKETING_CAMPAIGN_NOT_EDITABLECampaign state does not allow this action.
-
409MARKETING_CONTACT_CONSENT_REQUIREDThe recipient has no active consent for any requested promotional channel.
-
400MESSAGE_TEMPLATE_CHANNEL_REQUIREDchannelis missing; sendsmsorwhatsapp. -
400STORE_API_QUERY_PARAMETER_UNKNOWNThe query string has a parameter this request does not accept. The message and
error.details.allowed_parameterslist the ones it does. -
400STORE_API_BODY_PROPERTY_UNKNOWNThe request body has a property; this endpoint takes no body. Send no body or an empty object
{}. -
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
List message channel settings
Read routing and readiness for every message type.
Returns each message type's route: supported, selected, provider-ready, and effective channels separately. Selection is separate from sending. When chosen is true, selected_channels is the saved choice; it is kept when a selected channel's provider stops being ready, and that channel stops sending until its provider is ready again. When chosen is false the selection is automatic, from the store's ready providers: none ready selects no channel, exactly one ready selects that channel, and SMS and WhatsApp both ready selects SMS. A selected channel is effective (in effective_channels) only while an active provider for it is ready, and never while enabled is false. route words the result for display in English: status (sending with at least one effective channel, off while enabled is false, otherwise no_provider), status_label and a one-sentence detail that names any selected channel without a ready provider. channel_options lists the message type's supported channels in order, each value with a label worded by the API. type_info words the message type. type_info is the notification type worded in English: name, a one-line description, sent_when (what triggers it, its delays, and when it is skipped or never sent), category (the platform's fixed category of the type: key authentication for sign-in, contact confirmation and order tracking codes, transactional for messages about something the customer did or asked for, or promotional for messages inviting the customer back, whose texts need marketing consent and print their opt-out link; with its label and one-line description), channels (email, sms, whatsapp), required (true when the merchant cannot switch it off), related_settings, the settings that control it, each a fixed key with a label, and tax_details (true for the emails that are financial documents: Order Placed, Order Updated and the four refund emails; such an email always shows the order's or the refund's tax breakdown where its code places {% render 'tax_details' %}, and at the end of the email when it doesn't; no other email shows it).
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
400STORE_API_QUERY_PARAMETER_UNKNOWNThe request has a query parameter; this endpoint takes none.
-
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
Update message channels
Save a message type's channel choice, return it to automatic routing, or turn it off.
Save SMS, WhatsApp, or both for any message type, code messages included: a code sent on both channels carries the same code. The choice is saved whether or not each channel has a ready provider; a selected channel sends only while its provider is ready (see effective_channels on the list). enabled: true with an empty channels removes the saved choice and returns the type to automatic routing. enabled: false turns the type off, so it sends neither; non-disableable access-code types reject it with MESSAGE_CHANNEL_EMPTY_SELECTION.
Path parameters
| Name | Type | Description |
|---|---|---|
type
required
|
string |
Message type from the types endpoint. |
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Body parameters
| Name | Type | Description |
|---|---|---|
channels
required
|
array<string> |
Selected channels: |
enabled
required
|
boolean |
Whether message delivery is enabled for this type. |
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
400STORE_API_INVALID_REQUEST_BODYRequest body is invalid or contains an unknown field.
-
400INVALID_INPUTA field, consent evidence, campaign document, date, or identifier is invalid, or audience_subscriber_source is not
coming_soonor is combined with audience_group_id. -
400SMS_PHONE_INVALIDThe marketing contact is not a valid E.164 phone number.
-
400MESSAGE_CHANNEL_INVALIDChannel is not SMS or WhatsApp.
-
404NOT_FOUNDCampaign or consent does not exist in this store.
-
409MESSAGE_CHANNEL_NONE_DELIVERABLEA selected channel has no ready provider.
-
409MARKETING_CAMPAIGN_NOT_EDITABLECampaign state does not allow this action.
-
409MARKETING_CONTACT_CONSENT_REQUIREDThe recipient has no active consent for any requested promotional channel.
-
400STORE_API_BODY_PROPERTY_UNKNOWNThe body has a property this request does not accept. The message and
error.details.propertieslist the allowed and required properties (nestedfor each object or list of objects). -
400STORE_API_BODY_PROPERTY_INVALIDA body property has the wrong type (
error.details.expected_type). The message anderror.details.propertieslist the allowed and required properties. -
400STORE_API_QUERY_PARAMETER_UNKNOWNThe request has a query parameter; this endpoint takes none.
-
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
List message history
List the SMS and WhatsApp messages the store sent, newest first.
Every text the store sent through its messaging app in the last 90 days (retention_days): login and contact codes, order updates, back-in-stock alerts, gift cards and campaigns. Each message has message_type with message_type_display (the message's name, as in Settings › Notifications), channel (sms or whatsapp), recipient (the phone number in E.164), the app that sent it (app_id, app_name), status with status_display: queued while the app has not answered, sent once the app accepted it for delivery (not proof the phone received it), failed when the app refused it or every attempt failed (error says why). order_id, reference_type and reference_id name what it was sent for, when anything. The message text is never returned: it can hold login and gift card codes. Times are RFC 3339 in the store's timezone, with its offset. Pages are keyed: pass next_cursor as cursor with the same filters while has_more is true. Rows older than 90 days are deleted. channel_options, status_options and type_options label every filter value in the request's language.
Query parameters
| Name | Type | Description |
|---|---|---|
channel
|
string |
Only this channel.
Allowed values
smswhatsapp |
status
|
string |
Only this status.
Allowed values
queuedsentfailed |
message_type
|
string |
Only this message type, a |
from_date
|
string |
Inclusive start date, YYYY-MM-DD in the store timezone. |
to_date
|
string |
Inclusive end date, YYYY-MM-DD in the store timezone. |
cursor
|
string |
The previous page's |
limit
|
integer |
Messages per page, 1 to 100. |
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
403STORE_API_SCOPE_REQUIREDToken is valid but lacks the required scope for this call.
-
400INVALID_INPUTA filter is invalid: the error names channel, status, message_type, from_date, to_date or cursor.
-
400VALIDATION_LIST_INVALID_LIMITLimit is not between 1 and 100.
-
400STORE_API_QUERY_PARAMETER_UNKNOWNThe query string has a parameter this request does not accept. The message and
error.details.allowed_parameterslist the ones it does. -
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
Webhook events#
Message template updated
Fired once per change of an SMS or WhatsApp template's own text: edited or reset (in Store Admin, the app, the Store API or MCP). data.message_template is the template in the store's default language. Translation changes send message_templates/translations/update or /delete instead.
Payload fields
| Field | Type | Description |
|---|---|---|
message_template |
object |
Always present |
message_template.id |
string |
Always present |
message_template.template_type |
string |
Always present |
message_template.channel |
string |
Always present |
message_template.content |
string |
Selectable in the Payload builder |
message_template.char_count |
integer |
Selectable in the Payload builder |
message_template.created_at |
string |
Selectable in the Payload builder |
message_template.updated_at |
string |
Always present |