Skip to main content

Delete trucker user

DELETE 

/api/trucker/:id

Delete a trucker user associated with your company

Request

Path Parameters

    id stringrequired

Header Parameters

    apikey stringrequired

    Apikey of a company linked to a user

Responses

Example response

Schema
    status integer
    data object
    _id string
    position object

    Array of services and their last known position

    deliveries object[]
    role string

    Account role ("driver", "dev", "manager" or "admin")

    status boolean

    Account status (Locked or active in boolean).

    reason string

    Account blocking reason.

    emailVerified boolean

    Boolean that indicates whether the email is verified.

    phone string

    Trucker's phone.

    country string

    Country of residence of the trucker.

    timezone string

    Trucker time zone.

    image string

    Trucker image.

    recovery_token string

    Password recovery token.

    i18n string

    Language of the trucker user.

    deleted boolean

    Boolean indicating whether the user has been deleted.

    name string

    Name of the trucker.

    lastname string

    Truck driver's last name.

    email string

    Trucker email (Must be unique)

    taxid string

    Truck's identity document (Must be unique).

    password string

    Hashed password of the trucker account.

Loading...