Get the service confirmation in the customer portal
The customer's service confirmation, as a PDF: the same paper get-serviceorders-reports renders for INTAKE_CONFIRMATION, in exactly the form it is e-mailed to the customer. It carries the customer's own name and contact details, the unit, the intake answers the paper prints — never the values of sensitive fields — and the terms, with the drawn signature where the acceptance that stands was signed on a counter device. It never carries the blank signature line the printed copy has: where no acceptance stands, the terms print with nothing under them. It carries no written entries: it is the record of what was handed in and of the terms the customer accepted. It is rendered on request from the service order as it stands, in the customer's preferred language and in the tenant's where the customer has none, and nothing is stored. Everything get-serviceorders-reports keeps off a paper stays off this one: the values of sensitive fields, the secrets and their labels, the passcode, INTERNAL entries and the internal note, the name, initials or employee number of any person who worked on the case, the store's own cost and margin, and the customer's service portal link. The token in the path is the authorization, exactly as on the portal page, and the confirmation is available for as long as the page is: a token that opens the page opens the confirmation, the page carries no separate flag for it, and the portal links to this path with the same token. It is opened by the browser directly, as a document link is, so a link that no longer works, a token that is malformed or was never issued included, is answered with a redirect to the portal's page for a link that has stopped working rather than an error body; the answer never reveals which it was. It is served under the page's rules too: the page's limit and its own, both judged before the token; framing refused; and Cache-Control no-store on every answer. It is always a PDF, whatever the Accept header asks for, served inline with the paper's file name, so a plain link opens it in the browser. The portal links to it and never embeds it in a frame.
The unguessable per-service-order token carried by the link in the message the customer was sent. The token is the authorization: whoever holds the link is the customer, and the service portal has no other credential — there is nothing to sign in with and nothing to remember. A token belongs to exactly one service order and reaches nothing else. It can be revoked by regenerating the service order's portal link or by changing the service order's customer, which kills the old token on the spot. A request carrying a revoked, expired or unknown token is refused. The token keeps working for a while after the service order reaches a terminal state — COMPLETE or CANCELLED — for as many days as the tenant's servicePortalTokenExpiryDays setting allows, and stops working when that window is over. That is what keeps the pickup and completion messages useful: the link in them opens a live page rather than a dead one, on a case that is already finished. Set the tenant window to 0 to have tokens die at the terminal state instead. Reopening the service order clears the terminal clock: the link lives again, with no expiry hanging over it, until the case reaches its next terminal state and the window starts over from there.
PDF file
The link no longer works. The Location header is the portal's page for a link that has stopped working.
Too many requests for this link. The confirmation is held to the portal page's limit per link, and to its own tighter limit because each answer is a rendered document: ten a minute for one link. Both are per link, whatever the address the requests come from. A request over either limit is refused rather than queued, and the confirmation is not rendered. Both limits are judged before the token, so a 429 says nothing about whether the link works; a request the page's limit refuses does not count against the confirmation's ten.
GET /v2/portal/serviceorders/{portalToken}/confirmation HTTP/1.1
Host: api.flowretail.com
Accept: */*
binaryLast updated
Was this helpful?

