Charter

Charter transport

post

Shortcut API to create a chartered transport. Current transport, called "parent transport" will be chartered to a "child transport".

Child transport is created as follow:

  • Shipper is the actual carrier of the parent transport

  • Carrier is the chartered carrier given in the carrier parameter

  • Trucker and plates are not set, but information about it can be given in the instructions parameters

  • Other transport data (deliveries, segments, etc.) are duplicated

  • Child transport starts at the first segment's origin and ends at the last segment's destination

Authorizations
Body
instructionsstring Β· max: 1000Optional

Operating instructions. The carrier, the shipper and the creator of the transport have access to those instructions. However, the creator is the only who has the right to edit.

pricenumber Β· float | nullableOptionalDeprecated

Full price for the transport

Example: 250
Responses
201
Transport chartered successfully
application/json
post
POST /api/v4/transports/{uid}/charter/ HTTP/1.1
Host: api.dashdoc.eu
Authentication: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 125

{
  "carrier": {
    "pk": 23498,
    "remote_id": "text",
    "carrier_contacts": "['abce-df123-acd4', 'dcbe-df153-dcd7']"
  },
  "instructions": "text"
}
201

Transport chartered successfully

{
  "child_transport": "3545c058-392d-11eb-90c5-0242ac140006"
}

Last updated

Was this helpful?