Skip to content
Navigation

Sign the advisor agreement

POST
https://api.nicer.travel/identity/agreement/sign

Signs the agency's published agreement for the calling advisor: stores their signature (their name as they typed it), their IP address and the signed PDF. An agreement is signed once. Answers the signature without the IP address or where the PDF is stored. Advisors and admins of the agency the request acts for sign for themselves. Errors: 400 ERROR_ITEM_NOT_FOUND for an agreement the agency does not have, 400 AGREEMENT_NOT_PUBLISHED for a version that is not the published one, 400 AGREEMENT_ALREADY_ACCEPTED when the caller signed it already.

Authorization

  • bearerAuth
    HTTP Bearer (JWT)
    required

    Authorization: Bearer <token>

Request body JSON required

  • agreementId
    string
    required
  • signature
    string
    required

Returns

200

OK

JSON
  • acceptedAt
    string
    required
  • companyName
    string
    required
  • signature
    string
    required
  • status
    accepted
    or
    updateRequired
    required
  • versionNumber
    number
    required
  • agreementId
    string
    required
  • userId
    string
    required
  • createdAt
    string
    required
  • type
    string
    required
  • updatedAt
    string
    required
  • metadata
    optional
    map of
    unknown

400

Request failed. errorCode is stable; errorMessage is for humans.
JSON
  • errorCode
    string
    required
  • errorMessage
    string
    required

401

Request failed. errorCode is stable; errorMessage is for humans.
JSON
  • errorCode
    string
    required
  • errorMessage
    string
    required

403

Request failed. errorCode is stable; errorMessage is for humans.
JSON
  • errorCode
    string
    required
  • errorMessage
    string
    required

Type to search…

↑↓ navigate↵ selectEsc close