PUT api/Bookings/AddBookingCost/{ChargeToken}/{BookingID}

Allows a client to add new costs to an existing booking and charge a stored card token if one exists.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
ChargeToken

A flag to specify if a stored card token should be chared or not.

boolean

Required

BookingID

The booking ID to add the new costs to.

integer

Required

Body Parameters

The list of new costs to be added to the booking.

Collection of Object

None.

Request Formats

application/json, text/json

Sample:
[{"ProductCode":"","Description":"","Price":0.0,"Quantity":0,"Paid":"","Category":""}]

application/xml, text/xml

Sample:
<?xml version="1.0" encoding="utf-16"?>
<BookingCosts xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <APIBookingCost>
    <ProductCode />
    <Description />
    <Price>0</Price>
    <Quantity>0</Quantity>
    <Paid />
    <Category />
  </APIBookingCost>
</BookingCosts>

Response Information

Resource Description

A response to indicate if the costs were added to the booking or not and any reason why the costs may not have been added.

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:
{"Result":"Complete","Message":"ADD BOOKING COST SUCCESSFUL - 1.00 worth of products have been added to the booking."}

application/xml, text/xml

Sample:
<?xml version="1.0" encoding="utf-16"?>
<InformationResponse xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Result>Complete</Result>
  <Message>ADD BOOKING COST SUCCESSFUL - 1.00 worth of products have been added to the booking.</Message>
</InformationResponse>