Skip to content
Navigation

Erase a traveler

DELETE
https://api.nicer.travel/crm/travelers/{travelerId}

Erases a traveler for good: their profile, documents, dates, relationships, notes, tasks, trips and timeline. Bookings already made keep their own copy of the travelers in commerce. To keep the traveler but hide them, archive them instead (isArchived on update). Answers the traveler's id with deleted set to true. Admins only. Errors: 403 ERROR_UNAUTHORIZED, 404 ERROR_ITEM_NOT_FOUND.

Authorization

  • bearerAuth
    HTTP Bearer (JWT)
    required

    Authorization: Bearer <token>

Path parameters

  • travelerId
    string
    required

Header parameters

  • x-nicer-company
    string
    required

    Company context. Authentication and tenant membership are validated by the API.

  • X-Nicer-CRM-Contract
    resource
    required
    example: "resource"

Returns

200

OK

JSON
  • deleted
    boolean
    required

    Always true: the record no longer exists.

  • id
    string
    required

    The id of the record deleted.

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