Print a service order on a store printer
Print a service order on a store printer. The one thing printed here is the intake slip — the short form of the service confirmation, on the receipt roll, for the customer to take away at registration when the A4 confirmation is not printed or not wanted. Flow composes the slip and sends it to the printer named by printerUid itself, the way a sales receipt is printed, so no client ever touches a printer and there is no client-side printing path. The answer carries no body. The printer must be assigned to the store in the path, and it must list SERVICE_INTAKE_SLIP among its availablePrintActions; a printer assigned to another store, a printer that does not list that action, and a printerUid naming no printer are all refused with a 400. The printer is always judged against the store in the path, whichever store that is: the endpoint is served at any store of the tenant, and a counter prints on its own roll. There is no fallback printer — printerUid is required. The slip prints on request and never automatically: no store printer event triggers it. One slip covers one service order, so several units taken in together, registered as several service orders, print one slip each. The slip carries the store header a sales receipt carries, naming the store that owns the service order, wherever the slip is printed — the logo, the store's name, address, phone and organization number — the localized service confirmation title, the service number in large type and as a Code128 barcode, and the date and time of registration. Below that: the customer's name; the unit, its product name with the serial number and the IMEI where they were captured; the title of the issue as it was registered; the coverage, with the insurer, the claim number and the deductible for an insurance case, the claim number printed only where it is not empty and the deductible only where it is not 0; when the work is expected to be ready, as the day and the time, or as the day and "end of day"; and the estimated price and the max price, each printed only where it is not 0. Where there is a termsUrl, that line prints: the URL is the standing acceptance's own snapshot of it where one exists, and the service order's where none does. Where an acceptance stands, the fact of it prints; the terms text itself belongs to the confirmation and is never on the slip. Never on the slip: the answers captured on the intake form, a signature, any timeline entry, the values of sensitive fields, the secrets and their labels, the store's own cost and the margin that follows from it, the name of any person who worked on the case, and the customer's service portal link. The slip is wrapped to the printer's line width, and it is rendered in the customer's preferred language, and in the tenant's where the customer has none. This is read reach rather than a write on the case: it is served at any store of the tenant, because printing the slip changes nothing on the case; the service order record carries the whole reach rule.
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 print of a service order on a store printer: what to print, and the printer to print it on. Both are required — there is no fallback printer, and nothing is printed on a printer nobody named. Flow composes the print and sends it to the printer itself, so no client ever touches a printer.
What a service order print request prints on a store printer. INTAKE_SLIP: the intake slip — the short form of the service confirmation on the receipt roll, for the customer to take away at registration.
^[A-Za-z0-9-_]+No Content
No content
POST /v2/tenants/{tenantUid}/stores/{storeUid}/serviceorders/{serviceOrderUid}/print HTTP/1.1
Host: api.flowretail.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 42
{
"type": "INTAKE_SLIP",
"printerUid": "text"
}No Content
No content
Last updated
Was this helpful?

