POST bookings/available/times?year={year}&month={month}&day={day}
Authorized only.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
year | integer |
Required |
|
month | integer |
Required |
|
day | integer |
Required |
Body Parameters
Collection of BookingItemRequestName | Description | Type | Additional information |
---|---|---|---|
CustomerId | integer |
None. |
|
ServiceId | integer |
None. |
|
ProviderId | integer |
None. |
|
AddonIds | Collection of integer |
None. |
Request Formats
application/json, text/json
Sample:
[ { "CustomerId": 1, "ServiceId": 2, "ProviderId": 3, "AddonIds": [ 1, 2 ] }, { "CustomerId": 1, "ServiceId": 2, "ProviderId": 3, "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> <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>4</EmployeeServiceId> <ProviderId>3</ProviderId> <ServiceId>2</ServiceId> </BookingItemRequest> <BookingItemRequest> <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>4</EmployeeServiceId> <ProviderId>3</ProviderId> <ServiceId>2</ServiceId> </BookingItemRequest> </ArrayOfBookingItemRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessageName | 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. |