v1
Network Agreements
Network Agreements

Record 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.

post/api/v1/network-agreements/{agreement_id}/sign

Request

  • Base URL
    https://api.jeevyfabrication.com (the document declares no server; this is the origin it was published from)
  • Auth
    none declared

Path parameters

agreement_id, integer required

Query parameters

kind, string

Request body

AgreementSign required

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.

agreementId, integer nullable
signerName, string required
signerTitle, string required
accepted, boolean

Response

Successful Response

object required

Changes