For the complete documentation index, see llms.txt. This page is also available as Markdown.

Accept the terms at the counter

The customer signs the terms of the service order, on the device at the counter. The drawn signature is kept on the acceptance, whose method is COUNTER_DEVICE, together with the terms exactly as the customer was shown them — so what was agreed to can always be established, however the terms are changed afterwards. A TERMS_ACCEPTED event is written on the timeline. It is refused with a 404 while a standing acceptance already exists on the service order — accepted in the portal or recorded by staff after this session was opened — because there is nothing left to sign. The acceptance record — when, how, the wording, and the signature image — is kept whole. The session stops working the moment the terms are accepted: the token is spent, and a second attempt with it is answered as an unknown token like any other. The signing page is returned with termsAccepted true, so the device shows the customer that their signature landed. A signature that is missing, empty, longer than 500000 characters or not a valid base64 encoding is refused with a 400. It is judged only once the token has been found good, so a request with an unknown, expired or used token is answered with the 404 whatever its body holds, and a refused signature writes nothing and leaves the session open for another try. A request that declares a body over one megabyte is refused with a 413 before the token is looked at.

post
/portal/signing/{signingToken}/accept
Path parameters
signingTokenstringRequired

The single-use token of an in-store signing session, carried by the URL the counter device was given. It is the whole credential: whoever holds the link is the person the device was handed to, and there is nothing to sign in with. It reaches the terms of one service order and nothing else — not the customer's service portal, not the timeline, not the case itself. Handing a device across the counter on this page therefore exposes the terms text and the signature pad, and nothing more. A token stops working the moment the terms are accepted, when the session expires, and when a new session is created for the same service order — creating one is what invalidates the last. A request carrying a used, expired or unknown token is refused, and the refusal never says whether a service order exists behind it.

Body

The customer's signature, drawn on the counter device. Sending it records the acceptance of the service order's terms and closes the signing session.

signaturestring · min: 1 · max: 500000Required

The signature as it was drawn, a PNG image encoded in base64 — never empty, a signing without a drawing is refused. It is kept on the acceptance itself, whose method is COUNTER_DEVICE, together with the terms exactly as the customer was shown them, so what was signed can always be established.

Responses
200

Example response

application/json

The counter signing page, as the customer sees it on the device that has been handed to them. It is a representation of its own and holds only what signing needs: which case is being signed for, where, the terms to read, whether they have been accepted yet, the language to show the page in, and the tenant's accent color to draw it in. Nothing else about the service order is here — no timeline, no quote, no prices, no messages. A device left on this page shows the terms and nothing more.

serviceNumberstringRequired

The running service number of the case the terms are being signed for — enough for the customer to see they are signing for their own device.

storeNamestringRequired

The store the service order belongs to.

termsTextstringRequired

The terms the customer is signing, exactly as the service order carries them — the same wording the acceptance records, in the terms format that termsText in the service settings describes, markers included. The page renders that format.

termsUrlstringRequired

Where the tenant publishes their terms, shown as a link beside the text. An empty string when there is none.

termsAcceptedbooleanRequired

Whether the terms have been accepted on the service order. It is false on the page the customer is handed, and true in the answer to the acceptance — which is also the moment the session stops working.

preferredLanguagestringRequired

Lowercase two-letter ISO 639-1 language code, like nb, en or sv.

accentColorstringRequired

The tenant's accent color, the serviceAccentColor of the service settings: a # followed by six lowercase hex digits, such as #f97316, that the signing page draws its buttons, links and highlights in. An empty string when the tenant has not chosen one, and the page then uses its default accent color.

Example: #f97316
post/portal/signing/{signingToken}/accept
POST /v2/portal/signing/{signingToken}/accept HTTP/1.1
Host: api.flowretail.com
Content-Type: application/json
Accept: */*
Content-Length: 20

{
  "signature": "text"
}
{
  "serviceNumber": "text",
  "storeName": "text",
  "termsText": "text",
  "termsUrl": "text",
  "termsAccepted": true,
  "preferredLanguage": "text",
  "accentColor": "#f97316"
}

Last updated

Was this helpful?