POST api/bookings/PayBooking

Records payment for a booking and creates the invoice

Request Information

URI Parameters

None.

Body Parameters

PayBookingBindingModel
NameDescriptionTypeAdditional information
BookingId

ID of booking to pay

integer

None.

MarinaCode

Code of marina where the booking is for

string

None.

PaymentValue

Value of any payment taken for the booking

decimal number

None.

PaymentReference

Reference for the payment taken

string

None.

PaymentSuccessful

Indicates the payment was successful

boolean

None.

PaymentMessage

Payment message

string

None.

PaymentType

Payment type

string

None.

Request Formats

application/json, text/json

Sample:
{
  "bookingId": 1,
  "marinaCode": "sample string 2",
  "paymentValue": 3.0,
  "paymentReference": "sample string 4",
  "paymentSuccessful": true,
  "paymentMessage": "sample string 6",
  "paymentType": "sample string 7"
}

multipart/form-data

Sample:
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="BookingId"

1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="MarinaCode"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="PaymentValue"

3
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="PaymentReference"

sample string 4
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="PaymentSuccessful"

True
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="PaymentMessage"

sample string 6
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="PaymentType"

sample string 7
--MultipartDataMediaFormatterBoundary1q2w3e--

Response Information

Resource Description

string

Response Formats

application/json, text/json

Sample:
"sample string 1"

multipart/form-data

Sample:
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name=""

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e--