PUT api/Bookings/AmendBooking/{LinkBookings}/{PaymentOption}/{PaymentMethod}/{IsDeposit}

Allows a list of booking amendments to be passed and the API will attempt to make the amendments to the booking

Request Information

URI Parameters

NameDescriptionTypeAdditional information
LinkBookings

A flag to mark if the bookings should be linked as a single package or if they should be set as seperate bookings

boolean

Required

PaymentOption

Marks when the booking will be paid. (PAY IN ADVANCE, INVOICE, PAY ON ARRIVAL)

string

Required

PaymentMethod

Marks the payment method for the booking. (Cash, Visa, Mastercard, Cheque, etc...)

string

Required

IsDeposit

A flag to mark if this list should be treated as deposits for booking or as full bookings.

boolean

Required

Body Parameters

The list of booking amendments to be made.

Collection of Object

None.

Request Formats

application/json, text/json

Sample:
[{"BookingID":0,"NewVisitDate":"0001-01-01T00:00:00","NewResourceID":0,"NewLeaderName":"","NewLeaderTelephoneNo":"","NewBookingStatus":"","NewBookingSource":"","NewBookingCategory":"","NewNotes":"","GiftAid":false,"NewPaidProducts":[{"PLU":"","ProductDescription":"","TicketDescription":"","GiftAidProduct":false,"GiftAidPortion":0.0,"Adults":0,"Children":0,"CategoryCode":0,"CategoryName":"","SubCategory":"","Department":"","PriceDescription":"","Price":0.0,"OnHand":0.0,"ProductImage":"","Notes":"","IsKit":false,"LowestKitItemPLU":"","Quantity":0,"SeatReservationID":0,"GiftVoucherReference":"","Donation":false,"ProductUDFs":null}],"NewUnpaidProducts":[{"PLU":"","ProductDescription":"","TicketDescription":"","GiftAidProduct":false,"GiftAidPortion":0.0,"Adults":0,"Children":0,"CategoryCode":0,"CategoryName":"","SubCategory":"","Department":"","PriceDescription":"","Price":0.0,"OnHand":0.0,"ProductImage":"","Notes":"","IsKit":false,"LowestKitItemPLU":"","Quantity":0,"SeatReservationID":0,"GiftVoucherReference":"","Donation":false,"ProductUDFs":null}]}]

application/xml, text/xml

Sample:
<?xml version="1.0" encoding="utf-16"?>
<BookingAmendments xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <APIBookingAmendment>
    <BookingID>0</BookingID>
    <NewVisitDate>0001-01-01T00:00:00</NewVisitDate>
    <NewResourceID>0</NewResourceID>
    <NewLeaderName />
    <NewLeaderTelephoneNo />
    <NewBookingStatus />
    <NewBookingSource />
    <NewBookingCategory />
    <NewNotes />
    <GiftAid>false</GiftAid>
    <NewPaidProducts>
      <APIProduct>
        <PLU />
        <ProductDescription />
        <TicketDescription />
        <GiftAidProduct>false</GiftAidProduct>
        <GiftAidPortion>0</GiftAidPortion>
        <Adults>0</Adults>
        <Children>0</Children>
        <CategoryCode>0</CategoryCode>
        <CategoryName />
        <SubCategory />
        <Department />
        <PriceDescription />
        <Price>0</Price>
        <OnHand>0</OnHand>
        <ProductImage />
        <Notes />
        <IsKit>false</IsKit>
        <LowestKitItemPLU />
        <Quantity>0</Quantity>
        <SeatReservationID>0</SeatReservationID>
        <GiftVoucherReference />
        <Donation>false</Donation>
      </APIProduct>
    </NewPaidProducts>
    <NewUnpaidProducts>
      <APIProduct>
        <PLU />
        <ProductDescription />
        <TicketDescription />
        <GiftAidProduct>false</GiftAidProduct>
        <GiftAidPortion>0</GiftAidPortion>
        <Adults>0</Adults>
        <Children>0</Children>
        <CategoryCode>0</CategoryCode>
        <CategoryName />
        <SubCategory />
        <Department />
        <PriceDescription />
        <Price>0</Price>
        <OnHand>0</OnHand>
        <ProductImage />
        <Notes />
        <IsKit>false</IsKit>
        <LowestKitItemPLU />
        <Quantity>0</Quantity>
        <SeatReservationID>0</SeatReservationID>
        <GiftVoucherReference />
        <Donation>false</Donation>
      </APIProduct>
    </NewUnpaidProducts>
  </APIBookingAmendment>
</BookingAmendments>

Response Information

Resource Description

Returns a list of booking responses for each amendment passed, with details of the status of the amendment.

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.

Response Formats

application/json, text/json

Sample:
[{"SaveStatus":"","BookingID":0,"BookingLeader":"","ResourceName":"","BookingVisitDate":"0001-01-01T00:00:00","GiftCards":null,"ETickets":null,"GiftVouchers":null}]

application/xml, text/xml

Sample:
<?xml version="1.0" encoding="utf-16"?>
<BookingResponses xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <APIBookingResponse>
    <SaveStatus />
    <BookingID>0</BookingID>
    <BookingLeader />
    <ResourceName />
    <BookingVisitDate>0001-01-01T00:00:00</BookingVisitDate>
  </APIBookingResponse>
</BookingResponses>