Delete Onboarded Carrier | Genlogs API Docs

Authentication

Permissions

The external-api-delete-onboarded-carrier-contact permission is required to access this endpoint.

Endpoint

Headers

Path Params

Request Example:

curl --location --request DELETE 'https://api.genlogs.io/onboarded-carrier/contacts/<contact_id>' \
--header 'access-token: <your-api-access-token>' \
--header 'x-api-key: <your-x-api-key>' \
--header 'Content-Type: application/json' \

Response:

Response Body:

200 OK – Contact Deleted Successfully

{
    "contact": {
        "contact_name": "some_name",
        "phone_number": "1-222-333-444",
        "email_address": "some_user@testemail.com",
        "usdot_number": "1324354657",
        "contact_id": <contact_id>,
        "customer_id": <customer_id>
    },
    "deleted": true
}

400 Bad Request

Returned when:

{
    "detail": "Error deleting onboarded carrier contact: {message}"
}

401 Unauthorized

{
    "detail": "Token is missing!"
}
{
    "detail": "Token is expired!"
}

403 Forbidden

{
    "detail": "User not allowed to access this endpoint"
}

404 Not Found

{
    "detail": "Preferred carrier contact not found."
}

Delete an onboarded carrier contact

Endpoint: DELETE https://api.genlogs.io/onboarded-carrier/contacts/{contact_id}

Deletes an existing onboarded carrier contact for the authenticated customer. Requires a valid JWT token and the appropriate permission. The contact must belong to the authenticated customer.

Authorizations: AccessTokenAuth & ApiKeyAuth

Path parameters

Responses

{
    "contact": {
        "id": "bd849e72-09f0-4d19-8b20-e227cd4ef455",
        "deleted": true
    }
}