POST api/booking
Request Information
URI Parameters
None.
Body Parameters
BookingRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| FacilityRef | integer |
None. |
|
| BookingDate | date |
None. |
|
| UserRef | integer |
None. |
|
| AccountRef | integer |
None. |
|
| AdminFee | decimal number |
None. |
|
| PaymentType | integer |
None. |
|
| Sessions | Collection of BookingSessionRequest |
None. |
Request Formats
application/json, text/json
Sample:
{
"FacilityRef": 1,
"BookingDate": "2026-10-27T23:31:06.2537429+07:00",
"UserRef": 2,
"AccountRef": 3,
"AdminFee": 4.0,
"PaymentType": 5,
"Sessions": [
{
"FacilityScheduleRef": 1
},
{
"FacilityScheduleRef": 1
}
]
}
application/xml, text/xml
Sample:
<BookingRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ERP360_BF_BACKEND.Models">
<AccountRef>3</AccountRef>
<AdminFee>4</AdminFee>
<BookingDate>2026-10-27T23:31:06.2537429+07:00</BookingDate>
<FacilityRef>1</FacilityRef>
<PaymentType>5</PaymentType>
<Sessions>
<BookingSessionRequest>
<FacilityScheduleRef>1</FacilityScheduleRef>
</BookingSessionRequest>
<BookingSessionRequest>
<FacilityScheduleRef>1</FacilityScheduleRef>
</BookingSessionRequest>
</Sessions>
<UserRef>2</UserRef>
</BookingRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.