Get service status message rule
Get a status message rule by ID — which status it fires on, which channel it sends on, which template it sends, and whether it is switched on. Reading it asks for any service permission — SERVICE_ORDER or SERVICE_STORE_CONFIG at the tenant, at an organization or at any one store, or SERVICE_CONFIG, which is held at the tenant only — because whoever configures the status message rules reads them. A tenant-wide ADMIN grant counts as every permission. A caller holding none of them, a user with no role assignments included, is refused with a 403.
Required permissions: SERVICE_ORDER, SERVICE_STORE_CONFIG, SERVICE_CONFIG
Access token recevied after user login with a deviceToken
Reference to a tenant.
^[A-Za-z0-9-_]+Reference to a service status message rule
^[A-Za-z0-9-_]+Example response
A rule that sends the customer a message when a service order arrives at a status. Telling the customer is the point of the module: they are told their service order was registered and given the link that follows it, and told again at every step the tenant chooses to speak at. One rule is one status, one channel and one template. Two rules on the same status reach the customer on both channels; a status with no rules passes silently. When a rule fires: after the status change has been committed, never inside it — a message that cannot be sent never holds up or undoes the work on the service order. One status change fires a rule at most once, enforced in the database rather than trusted to the sender, so a retried or concurrent transition cannot send the same message twice. Arriving at a status the service order has been in before sends again: it is a new arrival, and the customer is told about it. A rule never fires for status changes that happened before the rule existed. A message that has not gone out yet when the service order has already moved on to another status is not sent late: the execution is recorded as skipped instead of telling the customer about a status the case has already left. A rule on the status a service order is created in fires on creation too. That is the registration message carrying the portal link, and it is how the customer comes to have the link at all. An e-mail rule carries a service paper as a PDF attachment when attachDocumentType names one — for example the service confirmation on the registration e-mail, or the service summary on the ready-for-pickup e-mail; any EMAIL rule may carry either. The paper is rendered when the message is composed, just before it goes out, so a message held while serviceMessagesPaused was on carries the paper as the case stands when it is sent. A paper that cannot be rendered does not hold the message back: the e-mail goes out without the attachment, its text and the portal link still reach the customer, and the notification log records that the paper could not be attached. What became of the message is recorded in the notification log, which stays the authority on delivery. When the provider's answer is ambiguous — the message may or may not have gone out — the attempt is recorded and flagged for a person to look at, never blindly retried.
^[A-Za-z0-9-_]+^[A-Za-z0-9-_]+The status whose arrival fires the rule. It is set when the rule is created and never changes — a rule for another status is another rule.
^[A-Za-z0-9-_]+The template to send, by its type — a service template type the tenant has created itself, and one the tenant has text for. The platform's own types, listed on the /metadata/templates endpoint, are written around a sales order and its product lines, which a service order has none of, so naming one here is refused with a 400. The text is the tenant's own, written once per language; which wording the customer reads is resolved when the message is composed: the language they prefer, otherwise the tenant's own. A service template always carries a language, and the tenant's own version is the floor a type must have — a type without it has no text to fall back to.
Which of the three printable service papers is meant. It is never derived from the state of the case — the caller names it, or the tenant names it on a status rule. INTAKE_CONFIRMATION: the service confirmation, for the customer, handed across the counter at intake — the record of what was handed in, and the sheet the customer can sign where the terms are accepted in the store. SERVICE_SUMMARY: the service summary, for the customer, handed back with the unit when the work is done — the record of what was done. DAMAGE_REPORT: the damage report, written for a third party — an insurer, a manufacturer, or a seller in a complaint — carrying the unit, the coverage, the findings, the customer-visible photos the caller names and the price of the work, and nothing of the dialogue between the customer and the store. Any of the three can be asked for at any time and under any coverage.
An inactive rule stays configured and sends nothing. It is how a message is switched off for a while without losing the template it points at.
GET /v2/tenants/{tenantUid}/serviceorders/statusrules/{serviceStatusRuleUid} HTTP/1.1
Host: api.flowretail.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
Example response
{
"serviceStatusRuleUid": "text",
"tenantUid": "text",
"serviceStatusUid": "text",
"messageType": "EMAIL",
"templateType": "text",
"attachDocumentType": "INTAKE_CONFIRMATION",
"active": true,
"createdAt": "2026-01-01T00:00:00.000Z",
"createdBy": "text",
"lastModifiedAt": "2026-01-01T00:00:00.000Z",
"lastModifiedBy": "text"
}Last updated
Was this helpful?

