POST Booking/AddBookingConfiguration

Creates a reciproque bound between two BookingConfigurations.

Request Information

URI Parameters

None.

Body Parameters

AddBookingConfigurationBinding
NameDescriptionTypeAdditional information
Name

For human identification purposes: e.g. delivery Booking Configuration, pickup Booking Configuration

string

None.

AdvancedTime

The number of seconds in advance of the reservation start time that the booking needs to be made

integer

None.

SlotDuration

The number of seconds of each slot. If 0, SlotDuration = whole BusinessHours TimePeriod

integer

None.

AutoSlotGeneration

Automatically generate slots when needed. If false, slot generation must be triggered by an admin

boolean

None.

Capacity

The maximum number of participants that can be accommodated during a time slot

integer

None.

ExpirationTime

The number of seconds a reservation is kept till payment confirmation. If 0, no expiration.

integer

None.

Lang

string

None.

StoreID

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Name": "sample string 1",
  "AdvancedTime": 2,
  "SlotDuration": 3,
  "AutoSlotGeneration": true,
  "Capacity": 5,
  "ExpirationTime": 6,
  "Lang": "sample string 7",
  "StoreID": 8
}

application/xml, text/xml

Sample:
<AddBookingConfigurationBinding xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ShopworldApi.Admin.Models.Binding.Booking">
  <Lang xmlns="http://schemas.datacontract.org/2004/07/ShopworldApi.Admin.Models.Common.Base">sample string 7</Lang>
  <StoreID xmlns="http://schemas.datacontract.org/2004/07/ShopworldApi.Admin.Models.Common.Base">8</StoreID>
  <AdvancedTime>2</AdvancedTime>
  <AutoSlotGeneration>true</AutoSlotGeneration>
  <Capacity>5</Capacity>
  <ExpirationTime>6</ExpirationTime>
  <Name>sample string 1</Name>
  <SlotDuration>3</SlotDuration>
</AddBookingConfigurationBinding>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.