AddBookings

Container: CCPService
Namespace: System.Data.Objects

Summary

No summary yet

Method

The HTTP method for this function import is POST

Parameters

Name Type Summary
toBooking BookingSequenceModel
returnBooking BookingSequenceModel
Parameters marked with a * are required

Return

Type: void
Is collection: false

Example

Request URL: https://www.cabmanonline.nl/CCPService/DataServiceCCP.svc/AddBookings
Example body (sent with POST-request):
{
  "toBooking" : {
    "TripDate" : "2026-05-29T11:09:15",
    "TravelerName" : "Name",
    "EmailAddress" : "emailaddress",
    "PhoneNumber" : "phonenumber",
    "UsesCallBackService" : 1,
    "Remark" : "remark",
    "InternalRemark" : "internalremark",
    "BookingDateTimeTypeName" : "Name",
    "Recurrence" : {
      "ValidFrom" : "2026-05-29T11:09:15",
      "ValidUntil" : "2026-05-29T12:09:15",
      "RecurrenceTypeName" : "Name",
      "DayOfWeekPattern" : 1,
      "RecurrenceWeekName" : "Name",
      "RecurrenceDay" : 1,
      "RecurrenceMonth" : 1,
      "Interval" : 1
    },
    "VehicleKindName" : "Name",
    "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,
    "PickUpDescription" : "pickupdescription",
    "DropOffDescription" : "dropoffdescription",
    "ScopeTypeName" : "Name",
    "PaymentTypeName" : "Name",
    "CommaSepSystemIndicationIds" : "commasepsystemindicationids",
    "CommaSepIndicationQuantities" : "commasepindicationquantities",
    "TravelAdviceId" : 1,
    "SetId" : 1
  },
  "returnBooking" : {
    "TripDate" : "2026-05-29T11:09:15",
    "TravelerName" : "Name",
    "EmailAddress" : "emailaddress",
    "PhoneNumber" : "phonenumber",
    "UsesCallBackService" : 1,
    "Remark" : "remark",
    "InternalRemark" : "internalremark",
    "BookingDateTimeTypeName" : "Name",
    "Recurrence" : {
      "ValidFrom" : "2026-05-29T11:09:15",
      "ValidUntil" : "2026-05-29T12:09:15",
      "RecurrenceTypeName" : "Name",
      "DayOfWeekPattern" : 1,
      "RecurrenceWeekName" : "Name",
      "RecurrenceDay" : 1,
      "RecurrenceMonth" : 1,
      "Interval" : 1
    },
    "VehicleKindName" : "Name",
    "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,
    "PickUpDescription" : "pickupdescription",
    "DropOffDescription" : "dropoffdescription",
    "ScopeTypeName" : "Name",
    "PaymentTypeName" : "Name",
    "CommaSepSystemIndicationIds" : "commasepsystemindicationids",
    "CommaSepIndicationQuantities" : "commasepindicationquantities",
    "TravelAdviceId" : 1,
    "SetId" : 1
  }
}