POST api/v1/banzaifieldservices/{PartnerId}/Appointment/{AppointmentId}/Rebook

Create a new appointment based on the old one (only if it was already booked and has an assigned engineer)
Return the information about the availables slots of time in which to book an appointment (Note: a new appointment identifier is returned).
Set a reference to the old appointment in the field "AppointmentIdFather"
- Rebook possible only if there are services not yet completed (status "Completed OK").
- Rebook not allowed if the rischeduling is not partial or total.
- Total rescheduling if there are no services with status other than "In Progress" and no task with status other than "Assigned"
- Partial rescheduling if both tasks are in a final status ("Completed OK" or "Completed KO") and at least a service is in status "To Rescheduling"

Request Information

URI Parameters

NameDescriptionTypeAdditional information
PartnerId

The partner identifier:
1 = 'ePRICE'

integer

Required

AppointmentId

The Appointment identifier

integer

Required

Body Parameters

Collection of SelectedSlotBL
NameDescriptionTypeAdditional information
DateStart

date

None.

DateEnd

date

None.

DateStartDescriptionDay

string

None.

DateStartDescriptionMonth

string

None.

DateEndDescriptionDay

string

None.

DateEndDescriptionMonth

string

None.

Available

boolean

None.

Price

integer

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "dateStart": "2024-12-29T16:32:38.6091596+01:00",
    "dateEnd": "2024-12-29T16:32:38.6091596+01:00",
    "dateStartDescriptionDay": "sample string 3",
    "dateStartDescriptionMonth": "sample string 4",
    "dateEndDescriptionDay": "sample string 5",
    "dateEndDescriptionMonth": "sample string 6",
    "available": true,
    "price": 8
  },
  {
    "dateStart": "2024-12-29T16:32:38.6091596+01:00",
    "dateEnd": "2024-12-29T16:32:38.6091596+01:00",
    "dateStartDescriptionDay": "sample string 3",
    "dateStartDescriptionMonth": "sample string 4",
    "dateEndDescriptionDay": "sample string 5",
    "dateEndDescriptionMonth": "sample string 6",
    "available": true,
    "price": 8
  }
]

text/plain

Sample:
[{"dateStart":"2024-12-29T16:32:38.6091596+01:00","dateEnd":"2024-12-29T16:32:38.6091596+01:00","dateStartDescriptionDay":"sample string 3","dateStartDescriptionMonth":"sample string 4","dateEndDescriptionDay":"sample string 5","dateEndDescriptionMonth":"sample string 6","available":true,"price":8},{"dateStart":"2024-12-29T16:32:38.6091596+01:00","dateEnd":"2024-12-29T16:32:38.6091596+01:00","dateStartDescriptionDay":"sample string 3","dateStartDescriptionMonth":"sample string 4","dateEndDescriptionDay":"sample string 5","dateEndDescriptionMonth":"sample string 6","available":true,"price":8}]

application/xml, text/xml

Sample:
<ArrayOfSelectedSlotBL xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ServicePlatform.BL.Models.BanzaiServicePlatform">
  <SelectedSlotBL>
    <Available>true</Available>
    <DateEnd>2024-12-29T16:32:38.6091596+01:00</DateEnd>
    <DateEndDescriptionDay>sample string 5</DateEndDescriptionDay>
    <DateEndDescriptionMonth>sample string 6</DateEndDescriptionMonth>
    <DateStart>2024-12-29T16:32:38.6091596+01:00</DateStart>
    <DateStartDescriptionDay>sample string 3</DateStartDescriptionDay>
    <DateStartDescriptionMonth>sample string 4</DateStartDescriptionMonth>
    <Price>8</Price>
  </SelectedSlotBL>
  <SelectedSlotBL>
    <Available>true</Available>
    <DateEnd>2024-12-29T16:32:38.6091596+01:00</DateEnd>
    <DateEndDescriptionDay>sample string 5</DateEndDescriptionDay>
    <DateEndDescriptionMonth>sample string 6</DateEndDescriptionMonth>
    <DateStart>2024-12-29T16:32:38.6091596+01:00</DateStart>
    <DateStartDescriptionDay>sample string 3</DateStartDescriptionDay>
    <DateStartDescriptionMonth>sample string 4</DateStartDescriptionMonth>
    <Price>8</Price>
  </SelectedSlotBL>
</ArrayOfSelectedSlotBL>

application/x-www-form-urlencoded

Sample:

Sample not available.

application/octet-stream

Sample:
[{"DateStart":"2024-12-29T16:32:38.6091596+01:00","DateEnd":"2024-12-29T16:32:38.6091596+01:00","DateStartDescriptionDay":"sample string 3","DateStartDescriptionMonth":"sample string 4","DateEndDescriptionDay":"sample string 5","DateEndDescriptionMonth":"sample string 6","Available":true,"Price":8},{"DateStart":"2024-12-29T16:32:38.6091596+01:00","DateEnd":"2024-12-29T16:32:38.6091596+01:00","DateStartDescriptionDay":"sample string 3","DateStartDescriptionMonth":"sample string 4","DateEndDescriptionDay":"sample string 5","DateEndDescriptionMonth":"sample string 6","Available":true,"Price":8}]

Response Information

Resource Description

RebookResponse
NameDescriptionTypeAdditional information
IdAppointment

integer

None.

PartnerName

string

None.

requestId

string

None.

TotalRebook

boolean

None.

SlotDate

Collection of SelectedSlotBL

None.

Response Formats

application/json, text/json

Sample:
{
  "idAppointment": 1,
  "partnerName": "sample string 2",
  "requestId": "sample string 3",
  "totalRebook": true,
  "slotDate": [
    {
      "dateStart": "2024-12-29T16:32:38.6091596+01:00",
      "dateEnd": "2024-12-29T16:32:38.6091596+01:00",
      "dateStartDescriptionDay": "sample string 3",
      "dateStartDescriptionMonth": "sample string 4",
      "dateEndDescriptionDay": "sample string 5",
      "dateEndDescriptionMonth": "sample string 6",
      "available": true,
      "price": 8
    },
    {
      "dateStart": "2024-12-29T16:32:38.6091596+01:00",
      "dateEnd": "2024-12-29T16:32:38.6091596+01:00",
      "dateStartDescriptionDay": "sample string 3",
      "dateStartDescriptionMonth": "sample string 4",
      "dateEndDescriptionDay": "sample string 5",
      "dateEndDescriptionMonth": "sample string 6",
      "available": true,
      "price": 8
    }
  ]
}

text/plain

Sample:
{"idAppointment":1,"partnerName":"sample string 2","requestId":"sample string 3","totalRebook":true,"slotDate":[{"dateStart":"2024-12-29T16:32:38.6091596+01:00","dateEnd":"2024-12-29T16:32:38.6091596+01:00","dateStartDescriptionDay":"sample string 3","dateStartDescriptionMonth":"sample string 4","dateEndDescriptionDay":"sample string 5","dateEndDescriptionMonth":"sample string 6","available":true,"price":8},{"dateStart":"2024-12-29T16:32:38.6091596+01:00","dateEnd":"2024-12-29T16:32:38.6091596+01:00","dateStartDescriptionDay":"sample string 3","dateStartDescriptionMonth":"sample string 4","dateEndDescriptionDay":"sample string 5","dateEndDescriptionMonth":"sample string 6","available":true,"price":8}]}

application/xml, text/xml

Sample:
<RebookResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ServicePlatform.BL.Models.BanzaiServicePlatform.Dto">
  <IdAppointment>1</IdAppointment>
  <PartnerName>sample string 2</PartnerName>
  <SlotDate xmlns:d2p1="http://schemas.datacontract.org/2004/07/ServicePlatform.BL.Models.BanzaiServicePlatform">
    <d2p1:SelectedSlotBL>
      <d2p1:Available>true</d2p1:Available>
      <d2p1:DateEnd>2024-12-29T16:32:38.6091596+01:00</d2p1:DateEnd>
      <d2p1:DateEndDescriptionDay>sample string 5</d2p1:DateEndDescriptionDay>
      <d2p1:DateEndDescriptionMonth>sample string 6</d2p1:DateEndDescriptionMonth>
      <d2p1:DateStart>2024-12-29T16:32:38.6091596+01:00</d2p1:DateStart>
      <d2p1:DateStartDescriptionDay>sample string 3</d2p1:DateStartDescriptionDay>
      <d2p1:DateStartDescriptionMonth>sample string 4</d2p1:DateStartDescriptionMonth>
      <d2p1:Price>8</d2p1:Price>
    </d2p1:SelectedSlotBL>
    <d2p1:SelectedSlotBL>
      <d2p1:Available>true</d2p1:Available>
      <d2p1:DateEnd>2024-12-29T16:32:38.6091596+01:00</d2p1:DateEnd>
      <d2p1:DateEndDescriptionDay>sample string 5</d2p1:DateEndDescriptionDay>
      <d2p1:DateEndDescriptionMonth>sample string 6</d2p1:DateEndDescriptionMonth>
      <d2p1:DateStart>2024-12-29T16:32:38.6091596+01:00</d2p1:DateStart>
      <d2p1:DateStartDescriptionDay>sample string 3</d2p1:DateStartDescriptionDay>
      <d2p1:DateStartDescriptionMonth>sample string 4</d2p1:DateStartDescriptionMonth>
      <d2p1:Price>8</d2p1:Price>
    </d2p1:SelectedSlotBL>
  </SlotDate>
  <TotalRebook>true</TotalRebook>
  <requestId>sample string 3</requestId>
</RebookResponse>

application/octet-stream

Sample:
{"IdAppointment":1,"PartnerName":"sample string 2","requestId":"sample string 3","TotalRebook":true,"SlotDate":[{"DateStart":"2024-12-29T16:32:38.6091596+01:00","DateEnd":"2024-12-29T16:32:38.6091596+01:00","DateStartDescriptionDay":"sample string 3","DateStartDescriptionMonth":"sample string 4","DateEndDescriptionDay":"sample string 5","DateEndDescriptionMonth":"sample string 6","Available":true,"Price":8},{"DateStart":"2024-12-29T16:32:38.6091596+01:00","DateEnd":"2024-12-29T16:32:38.6091596+01:00","DateStartDescriptionDay":"sample string 3","DateStartDescriptionMonth":"sample string 4","DateEndDescriptionDay":"sample string 5","DateEndDescriptionMonth":"sample string 6","Available":true,"Price":8}]}

text/javascript, application/javascript, application/json-p

Sample:
({"idAppointment":1,"partnerName":"sample string 2","requestId":"sample string 3","totalRebook":true,"slotDate":[{"dateStart":"2024-12-29T16:32:38.6091596+01:00","dateEnd":"2024-12-29T16:32:38.6091596+01:00","dateStartDescriptionDay":"sample string 3","dateStartDescriptionMonth":"sample string 4","dateEndDescriptionDay":"sample string 5","dateEndDescriptionMonth":"sample string 6","available":true,"price":8},{"dateStart":"2024-12-29T16:32:38.6091596+01:00","dateEnd":"2024-12-29T16:32:38.6091596+01:00","dateStartDescriptionDay":"sample string 3","dateStartDescriptionMonth":"sample string 4","dateEndDescriptionDay":"sample string 5","dateEndDescriptionMonth":"sample string 6","available":true,"price":8}]});