CreateTrip

Container: CCPService
Namespace: System.Data.Objects

Summary

No summary yet

Method

The HTTP method for this function import is POST

Parameters

Name Type Summary
date* Edm.DateTime
pickUpAddress AddressFragment
dropOffAddress AddressFragment
pickUpLocationId Edm.Int32
dropOffLocationId Edm.Int32
driverId Edm.Int32
vehicleTypeId Edm.Int32
remark Edm.String
amount Edm.Double
commissionPercentage Edm.Double
commissionAmount Edm.Double
Parameters marked with a * are required

Return

Type: Entity type - TripSummary
Is collection: false

Example

Request URL: https://ccp.dispatchconnect.nl/CCPService/DataServiceCCP.svc/CreateTrip
Example body (sent with POST-request):
{
  "date" : "2026-04-06T05:40:23",
  "pickUpAddress" : {
    "Street" : "street",
    "Number" : 1,
    "Addition" : "addition",
    "PostalCode" : "postalcode",
    "State" : "state",
    "Town" : "town",
    "CountryId" : 1,
    "Coordinates" : {
      "Latitude" : 51.55404,
      "Longitude" : 5.079524,
      "FormatName" : "Pixel"
    }
  },
  "dropOffAddress" : {
    "Street" : "street",
    "Number" : 1,
    "Addition" : "addition",
    "PostalCode" : "postalcode",
    "State" : "state",
    "Town" : "town",
    "CountryId" : 1,
    "Coordinates" : {
      "Latitude" : 51.55404,
      "Longitude" : 5.079524,
      "FormatName" : "Pixel"
    }
  },
  "pickUpLocationId" : 1,
  "dropOffLocationId" : 1,
  "driverId" : 1,
  "vehicleTypeId" : 1,
  "remark" : "remark",
  "amount" : 0.0,
  "commissionPercentage" : 0.0,
  "commissionAmount" : 0.0
}