Sign Agreement
Changed onRecord this shop's acceptance. Owner or manager only.
The affirmation is refused here rather than trusted to the modal: a request with accepted: false has a name and a title in it and no agreement, and recording it would be recording a form submission as a signature.
IDEMPOTENT by way of the service: a double-submitted modal gets the existing signature back, not a 409.
request.client.host is the established IP source in this codebase (it is what feeds shops.signup_ip). There is no X-Forwarded-For handling anywhere in the backend, so none is invented here: behind a proxy this records the proxy, which is a known and consistent limitation rather than a header a caller can set for itself.
Request
- Base URLhttps://api.jeevyfabrication.com (the document declares no server; this is the origin it was published from)
- Authnone declared
Path parameters
Query parameters
Request body
Click-to-accept: the typed legal name, the job title, the affirmation.
accepted is validated SERVER-SIDE and not merely rendered as a checkbox. A POST carrying accepted: false must be refused rather than recorded: a form that accepts two text fields and ignores the tick box has recorded a name, not an agreement.
agreement_id is on the body rather than inferred so the service can check what the client was LOOKING AT against the live version. A shop that had the card open while Jeevy published v2 would otherwise sign v1 and still be refused by the gate, with nothing on screen to explain why.
Response
Successful Response
Changes
- info
endpoint added
- info