POST bookings/available/days?year={year}&month={month}
Authorized only.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| year | integer |
Required |
|
| month | integer |
Required |
Body Parameters
Collection of BookingItemRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| CustomerId | integer |
None. |
|
| ServiceId | integer |
None. |
|
| ProviderId | integer |
None. |
|
| ProviderSlotId | integer |
None. |
|
| AddonIds | Collection of integer |
None. |
Request Formats
application/json, text/json
Sample:
[
{
"CustomerId": 1,
"ServiceId": 2,
"ProviderId": 3,
"ProviderSlotId": 4,
"AddonIds": [
1,
2
]
},
{
"CustomerId": 1,
"ServiceId": 2,
"ProviderId": 3,
"ProviderSlotId": 4,
"AddonIds": [
1,
2
]
}
]
application/xml, text/xml
Sample:
<ArrayOfBookingItemRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.ViewModels.Booking">
<BookingItemRequest>
<AddonEmployeeServiceIds xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:int>1</d3p1:int>
<d3p1:int>2</d3p1:int>
</AddonEmployeeServiceIds>
<AddonIds xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:int>1</d3p1:int>
<d3p1:int>2</d3p1:int>
</AddonIds>
<AvailableProviderIds xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:int>1</d3p1:int>
<d3p1:int>2</d3p1:int>
</AvailableProviderIds>
<CustomerId>1</CustomerId>
<EmployeePreference>true</EmployeePreference>
<EmployeeServiceId>5</EmployeeServiceId>
<ProviderId>3</ProviderId>
<ProviderSlotId>4</ProviderSlotId>
<ResourceId>7</ResourceId>
<ServiceId>2</ServiceId>
</BookingItemRequest>
<BookingItemRequest>
<AddonEmployeeServiceIds xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:int>1</d3p1:int>
<d3p1:int>2</d3p1:int>
</AddonEmployeeServiceIds>
<AddonIds xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:int>1</d3p1:int>
<d3p1:int>2</d3p1:int>
</AddonIds>
<AvailableProviderIds xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:int>1</d3p1:int>
<d3p1:int>2</d3p1:int>
</AvailableProviderIds>
<CustomerId>1</CustomerId>
<EmployeePreference>true</EmployeePreference>
<EmployeeServiceId>5</EmployeeServiceId>
<ProviderId>3</ProviderId>
<ProviderSlotId>4</ProviderSlotId>
<ResourceId>7</ResourceId>
<ServiceId>2</ServiceId>
</BookingItemRequest>
</ArrayOfBookingItemRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
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. |