GET api/Bookings/ChargeOutstandingCosts/{BookingID}/{OutstandingAmount}
Allows an outstanding amount against a booking to be charged, if a card token is valid and stored for the booking.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| BookingID |
The ID of the booking that the charge is to be made against. |
integer |
Required |
| OutstandingAmount |
The outstanding amount of the booking, in total. |
decimal number |
Required |
Body Parameters
None.
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional 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":"CHARGE OUTSTANDING SUCCESSFUL"}
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>CHARGE OUTSTANDING SUCCESSFUL</Message> </InformationResponse>