Skip to main content

Create Hauler

POST /haulers

Create a new hauler profile.

Roles

Users with the following roles may access this endoint:

Admin
ClientCustomer
CrmUser
Dispatcher
Driver
Public
ThirdPartyDispatcher
ThirdPartyDriver

Breaking Changes

No breaking changes.

Request

POST /haulers/
Content-Type: application/json
{
"company_name": "A Test Company, Inc.",
"password": "This1s@Test!",
"recaptcha": "DummyCaptcha",
"username": "test_new_user@crosoftware.net"
}

Path Parameters

note

No path parameters.

Query Parameters

note

No query parameters.

Request Headers

Refer to StandardPublicRequestHeadersModel for more details.

Content-Type String, Optional

Default Value: application/json

One of the following MIME types:


x-api-version String, Optional

Request identifier.

  • At least 1 and no more than 64 characters.
  • Must be a valid API version string (2019/02/08, 2021/04/07, 2021/05/07, 2021/08/02, 2021/11/04, 2023/04/19).

Request Body

Refer to CreateHaulerRequestModel for more details.

company_name String, Required

Company name (free text).

  • At least 1 and no more than 64 characters.

password String, Required

New password.

  • Passwords must be at least 6 chars long, contain at least 1 capital letters, and at least 1 numbers.

recaptcha String, Required

Recaptcha answer.

  • At least 8 and no more than 512 characters.

username String, Required

New password.

  • Must be a valid email address.

Response

Response Headers

Refer to StandardResponseHeadersModel for more details.

Content-Type String, Optional

Default Value: application/json

One of the following MIME types:


x-api-version String

Request identifier.

  • At least 1 and no more than 64 characters.
  • Must be a valid API version string (2019/02/08, 2021/04/07, 2021/05/07, 2021/08/02, 2021/11/04, 2023/04/19).

x-request-id String

Request identifier.

  • Valid UUID.

Response Body

Refer to ThirdPartyHaulerModel for more details.

id String

Third party hauler identifier.

  • Valid UUID.

name String

Name (free text).

  • At least 1 and no more than 64 characters.

Code Samples

curl --request POST --include \
--header "Content-Type: application/json" \
--data '{"company_name": "A Test Company, Inc.", "password": "This1s@Test!", "recaptcha": "DummyCaptcha", "username": "test_new_user@crosoftware.net"}' \
127.0.0.1:8003/haulers