Send service-order message to customer
Send the customer a message about the service order now, from the template of the given type — the registration link again because the first one never arrived, the pickup message because the customer has not come, the quote because it went unanswered. It is composed exactly as the automatic messages are: the tenant's own text, in the language the customer prefers and otherwise in the tenant's own, with the service order's values filled in. The notification that was created is returned, and the notification log stays the authority on what became of it. A customer link in a notification is served masked (see NotificationResponseSchema): the registration link sent again reaches the customer whole, and the returned notification carries it masked. Sending by hand changes nothing on the service order and does not stand in for the automatic sends: a status rule that has already fired stays fired, and one that has not still fires when its status is reached. A quote message — the tenant's text for SMS_SERVICE_QUOTE_SENT or EMAIL_SERVICE_QUOTE_SENT — is refused with a conflict on a service order in a terminal state, for the reason a new quote is refused there: the portal takes no quote answer on a finished case, so sending it again would ask the customer for something they cannot give. Every other template type may be sent on a finished case, which is what a pickup message on a completed repair is. The request is refused when the customer has no contact point for the channel, when the tenant has no text for the template type, when the template type names a channel other than messageType, when the store itself cannot send on the channel — a store with no e-mail address of its own sends no e-mail — and while the tenant setting serviceMessagesPaused is on — a message asked for by hand is refused outright rather than queued for a moment that has passed. The template type EMAIL_SERVICE_DOCUMENT_SENT is refused here with a 400: its text is written to accompany a service paper, and a paper is e-mailed through the service paper e-mail endpoint, which attaches it. This is a write on the case, so it belongs to the store that owns the service order: at any other store it is refused with a 403, where the case can be read but not worked on.
Required permissions: SERVICE_ORDER
Access token recevied after user login with a deviceToken
Reference to a tenant.
^[A-Za-z0-9-_]+Reference to a Store.
^[A-Za-z0-9-_]+Reference to a service order
^[A-Za-z0-9-_]+A message to send the customer about a service order now, from the template of the given type — the registration link again because the first one was lost, the pickup message because the customer did not come, the quote because it was not answered. It is composed the same way the automatic messages are: the tenant's own text, in the language the customer prefers and otherwise in the tenant's own, with the service order's values filled in. The send is recorded in the notification log alongside the automatic ones, so the log answers everything the customer has been sent about the case. Sending by hand never changes the service order and never counts as one of the automatic sends: a status rule that has already fired stays fired, and one that has not still fires when the status is reached.
The template to send, by its type — a service template type the tenant has created itself. The request is refused when the tenant has no text for it, and a platform type is refused with a 400: the platform's own types are written around a sales order and its product lines, which a service order has none of. EMAIL_SERVICE_DOCUMENT_SENT is refused with a 400 as well: it accompanies a service paper, which is e-mailed through the service paper e-mail endpoint. So are SMS_SERVICE_ORDER_UPDATED and EMAIL_SERVICE_ORDER_UPDATED: they carry the message staff write, which is sent as a STORE_MESSAGE on the timeline.
Example response
A customer link in it is served with its token replaced by …, the address kept: the service portal link, a portal document link and a counter signing link keep the scheme, the host and the path up to the token, and any other whole run of letters, digits, hyphens and underscores, bounded by other characters or the text's edge, exactly as long as one of those tokens is replaced by … wherever it stands. The stored message is what was sent, and the response never carries the credential.
A customer link in it is served with its token replaced by …, the address kept: the service portal link, a portal document link and a counter signing link keep the scheme, the host and the path up to the token, and any other whole run of letters, digits, hyphens and underscores, bounded by other characters or the text's edge, exactly as long as one of those tokens is replaced by … wherever it stands. The stored message is what was sent, and the response never carries the credential.
^[A-Za-z0-9-_]+The customer the message is recorded against. A value here marks the row as part of the message log for that customer; an empty value says only that no customer was named on the write, and not that the message went to staff — a receipt or a payment link is addressed to whatever number or address the caller gave, which need not come from a customer record, and the notes the order- and customer-scoped searches merge in from Omnium name no customer either. Where the message was actually delivered is recipient.
^[A-Za-z0-9_-]*$^[A-Za-z0-9-_]*^[A-Za-z0-9-_]*^[A-Za-z0-9-_]*The tenant user the message is recorded against. It is never who the message was delivered to — that is recipient, which carries the address or number it was sent to, or several of them separated by commas — so a message to a colleague names its sender here rather than its reader. Who it credits is the person on our side behind the send: in the service module the caller who made the write, which on a shared screen is the person whose PIN unlocked it; elsewhere the user the record behind the message belongs to, such as the salesperson a receipt is registered to. It is empty only on the notes the order- and customer-scoped searches merge in from Omnium, which name nobody on our side.
^[A-Za-z0-9_-]*$^[A-Za-z0-9-_]*^[A-Za-z0-9-_]*^[A-Za-z0-9-_]*Source of the notification
Conflict. The service order is in a terminal state, and a quote message cannot ask for an answer the portal will not take.
POST /v2/tenants/{tenantUid}/stores/{storeUid}/serviceorders/{serviceOrderUid}/send HTTP/1.1
Host: api.flowretail.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 45
{
"messageType": "EMAIL",
"templateType": "text"
}{
"messageType": "EMAIL",
"recipient": "text",
"message": "text",
"subject": "text",
"state": "NOT_STARTED",
"errorText": "text",
"notificationUid": "text",
"customerUid": "text",
"orderUid": "text",
"serviceOrderUid": "text",
"serviceEventUid": "text",
"tenantUserUid": "text",
"supplierUid": "text",
"receivementUid": "text",
"purchaseOrderUid": "text",
"createdBy": "text",
"createdAt": "2026-01-01T00:00:00.000Z",
"lastModifiedBy": "text",
"lastModifiedAt": "2026-01-01T00:00:00.000Z",
"source": "text"
}Last updated
Was this helpful?

