Preview basket

Gets a preview of the final amount to pay for a basket.

Example request

{
   "proposalId":null,
   "addNewContracts":false,
   "basket":[
      {
         "Type":"booking",
         "CustomFields": {
           "Data": [
             {
               "Name": "MyField",
               "Value": "12345679",
               "Type": "string"
             }
           ]
         },
         "Booking":{
            "FromTime":"2021-10-21T20:00:00.000Z",
            "ToTime":"2021-10-21T21:00:00.000Z",
            "ResourceId":1004584587,
            "BookingVisitors":[
               
            ],
            "BookingProducts":[
               {
                  "ProductId":1006721716,
                  "Quantity":1
               }
            ]
         }
      },
      {
         "type":"product",
         "CustomFields": {
           "Data": [
             {
               "Name": "MyField2",
               "Value": "12345679",
               "Type": "string"
             }
           ]
         },
         "CoworkerProduct":{
            "ProductId":1004438439,
            "Quantity":"2",
            "RegularCharge":false
         }
      }
   ],
   "discountCode":null
}

Remarks

Available basket items are:

Courses (course)

{
   "basket":[
      {
         "type":"course",
         "Course":{
            "Id": 123456 // the course is to subscribe to
         }
      }
   ],
   "discountCode":null
}

Events (event)

{
   "basket":[
      {
         "type":"event",
         "EventAttendee":{
           "FullName": "John Doe",
           "Email": "[email protected]",
           "CalendarEventId": 123465, // the Id of the CalendarEvent
           "EventProductId": 123456 // the Id of the EventProduct
         }
      }
   ],
   "discountCode":null
}

Contract (contract)

{
   "basket":[
      {
         "type":"contract",
         "CoworkerContract":{
           "StartDate": "2020-01-01T00:00", //The public API uses local times,
           "TariffId": 123456 // the Id of the Tariff (Plan)
         }
      }
   ],
   "discountCode":null
}

Product (product)

{
   "basket":[
      {
         "type":"product",
         "CoworkerProduct":{
           "Quantity": 1,
           "RegularCharge": false, // if true, the product is invoiced everytime the contract is invoiced.
           "ProductId": 123456 // the Id of the Product
         }
      }
   ],
   "discountCode":null
}

Booking (booking)

{
   "basket":[
      {
         "type":"booking",
         "Booking":{
           "FromTime": "2020-01-01T10:00", //The public API uses local times
           "ToTime": "2020-01-01T12:00", //The public API uses local times
           "ResourceId": 123456, //The Id of the resource.
           "FloorPlanDeskId": 123456, //The Id of the floorPlanDesk (optional)
           "DiscountCode": 123456, //The Id of the discountCode (optional)
           "Notes": "Customer notes",
           "BookingVisitors": [
            ],
           "IncludeZoomInvite": false,
           "Tentative": false,
           "BookingProducts": [
             {
               "ProductId":1006721716,
               "Quantity":1
             }]
         }
      }
   ],
   "discountCode":null
}
Language
Credentials
OAuth2
Authenticate
URL
Click Try It! to start a request and see the response here!