Templates
Templates
List metadata transaction templates
RFC 7231 language tags format (e.g., en-US, nl-NL) to use for returning localized names
List templates response
GET /v2/metadata/templates HTTP/1.1
Host: api.flowretail.com
Accept: */*
List templates response
{
"items": [
{
"type": "SMS_PICKUP_NOTE",
"name": "SMS pickup note",
"template": "Your order {.orderNumber} is ready to be picked up in {.storeName}",
"mimeType": "HTML",
"fields": [
{
"name": ".orderNumber",
"description": "The ordernumber on the order"
}
]
}
]
}List transaction templates
Token received from the auth service
Reference to a tenant.
^[A-Za-z0-9-_]+Reference to a specific page in a result set.
The number of items per page in a result set.
| ENUM | Description |
|---|---|
| ASC | Sort in ascending order |
| DESC | Sort in descending order |
Defines which field the resource list is sorted by.
Filter on Template Type
TransactionTemplatesResponse
GET /v2/tenants/{tenantUid}/templates HTTP/1.1
Host: api.flowretail.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
TransactionTemplatesResponse
{
"items": [
{
"type": "SMS_PICKUP_NOTE",
"name": "SMS pickup note",
"template": "Your order {.orderNumber} is ready to be picked up in {.storeName}",
"subject": "text",
"mimeType": "HTML",
"templateUid": "text",
"createdAt": "2026-01-01T00:00:00.000Z",
"createdBy": "text",
"lastModifiedAt": "2026-01-01T00:00:00.000Z",
"lastModifiedBy": "text"
}
],
"paging": {
"pageNumber": 1,
"pageSize": 1,
"totalCount": 1
}
}Create transaction template
Required permissions: TEMPLATE
Token received from the auth service
Reference to a tenant.
^[A-Za-z0-9-_]+TransactionTemplateRequestSchema
This must be a valid type from /metadata/templates
SMS_PICKUP_NOTEYour order {.orderNumber} is ready to be picked up in {.storeName}^[A-Za-z0-9-_]+TransactionTemplateResponse
SMS_PICKUP_NOTESMS pickup noteThe template body.
Your order {.orderNumber} is ready to be picked up in {.storeName}The template subject, used for emails
^[A-Za-z0-9-_]*POST /v2/tenants/{tenantUid}/templates HTTP/1.1
Host: api.flowretail.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 144
{
"type": "SMS_PICKUP_NOTE",
"template": "Your order {.orderNumber} is ready to be picked up in {.storeName}",
"subject": "text",
"templateUid": "text"
}TransactionTemplateResponse
{
"type": "SMS_PICKUP_NOTE",
"name": "SMS pickup note",
"template": "Your order {.orderNumber} is ready to be picked up in {.storeName}",
"subject": "text",
"mimeType": "HTML",
"templateUid": "text",
"createdAt": "2026-01-01T00:00:00.000Z",
"createdBy": "text",
"lastModifiedAt": "2026-01-01T00:00:00.000Z",
"lastModifiedBy": "text"
}Get transaction template by templateUid
Token received from the auth service
Reference to a tenant.
^[A-Za-z0-9-_]+Reference to a template.
^[A-Za-z0-9-_]+TransactionTemplateResponse
SMS_PICKUP_NOTESMS pickup noteThe template body.
Your order {.orderNumber} is ready to be picked up in {.storeName}The template subject, used for emails
^[A-Za-z0-9-_]*GET /v2/tenants/{tenantUid}/templates/{templateUid} HTTP/1.1
Host: api.flowretail.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
TransactionTemplateResponse
{
"type": "SMS_PICKUP_NOTE",
"name": "SMS pickup note",
"template": "Your order {.orderNumber} is ready to be picked up in {.storeName}",
"subject": "text",
"mimeType": "HTML",
"templateUid": "text",
"createdAt": "2026-01-01T00:00:00.000Z",
"createdBy": "text",
"lastModifiedAt": "2026-01-01T00:00:00.000Z",
"lastModifiedBy": "text"
}Update transaction template by templateUid
Required permissions: TEMPLATE
Token received from the auth service
Reference to a tenant.
^[A-Za-z0-9-_]+Reference to a template.
^[A-Za-z0-9-_]+Your order {.orderNumber} is ready to be picked up in {.storeName}TransactionTemplateResponse
SMS_PICKUP_NOTESMS pickup noteThe template body.
Your order {.orderNumber} is ready to be picked up in {.storeName}The template subject, used for emails
^[A-Za-z0-9-_]*PUT /v2/tenants/{tenantUid}/templates/{templateUid} HTTP/1.1
Host: api.flowretail.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 98
{
"template": "Your order {.orderNumber} is ready to be picked up in {.storeName}",
"subject": "text"
}TransactionTemplateResponse
{
"type": "SMS_PICKUP_NOTE",
"name": "SMS pickup note",
"template": "Your order {.orderNumber} is ready to be picked up in {.storeName}",
"subject": "text",
"mimeType": "HTML",
"templateUid": "text",
"createdAt": "2026-01-01T00:00:00.000Z",
"createdBy": "text",
"lastModifiedAt": "2026-01-01T00:00:00.000Z",
"lastModifiedBy": "text"
}Delete transaction template by templateUId
Required permissions: TEMPLATE
Token received from the auth service
Reference to a tenant.
^[A-Za-z0-9-_]+Reference to a template.
^[A-Za-z0-9-_]+OK
No content
Not Found
DELETE /v2/tenants/{tenantUid}/templates/{templateUid} HTTP/1.1
Host: api.flowretail.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
Render transaction template preview
Render transaction template preview
Required permissions: TEMPLATE
Token received from the auth service
Reference to a tenant.
^[A-Za-z0-9-_]+Reference to a template.
^[A-Za-z0-9-_]+OK
Bad Request
POST /v2/tenants/{tenantUid}/templates/{templateUid}/notifications-preview HTTP/1.1
Host: api.flowretail.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{}Last updated