Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

List events

Retrieves a list of all events.

Request

HTTP GET to /events

...

Tag

Format

Exempel

Förklaring

events

 

<events>

Events-tag

event

 

<event>

Represents an event

id

ID

<id>12</id>

Event ID

name

String

<name>Swimming for toddlers</name>

Event name

codeString

<code>2015STOD</code>

Event code
productidID

<productid>575</productid>

ID of event product

description

String

<description>This swimming course is for children 2-4 years of age with some water experience.</description>

Description of event

lastupdate

Time

<lastupdate>2015-01-01 23:00</lastupdate>

When the event was last modified

productdescription

String

<productdescription>Swimming</productdescription>

Description of the event product

numberofoccasions

Integer

<numberofoccasions>12</numberofoccasions>

Number of classes

time

Time

<time>13:45</time>

When the event starts, empty if no time is set

startdate

Date

<startdate>2015-02-01</startdate>

Start date

enddate

Date

<enddate>2015-04-30</enddate>

End date

publishstartTime<publishstart>2015-01-01 23:00</publishstart>Start date for when the event is published (The event will still be accessible from the API)
publishendTime<publishend>2015-02-01 23:10</publishend>End date for when the event is no longer published

bookableslots

Integer

<bookableslots>12</bookableslots>

Bookable spots

filledslots

Integer

<filledslots>12</filledslots>

Booked spots

registered

Boolean

<registered>false</registered>

If the logged on user is already booked on this event

bookableearliest

Time

<bookableearliest><timepoint>timestamp>1337335200</timestamp><datetime>2015-01-18 12:00</datetime><date>2015-01-18</date><time>12:00</time></timepoint></bookableearliest>

When a booking first can be made in accordance witht he booking terms & conditions. See Terms & conditions for bookings and cancellations

bookablelatest

Time

<bookablelatest><timepoint><timestamp>1337680800</timestamp><datetime>2015-03-01 12:00</datetime><date>2015-03-01</date><time>12:00</time></timepoint></bookablelatest>

The latest a booking can be made in accordance with any booking terms or conditions.

businessunit

 

<businessunit><id>11</id><name>Main Street Gym</name></businessunit>

The event's business unit.

orderidID<orderid>105</orderid>The event's order ID
participants <participants><participant><personid>123</personid><firstname>Homer</firstname><lastname>Simpson</lastname><eventbookingid>333</eventbookingid></participant></participants>The participants
Code Block
<events>
  <event>
    <id>12</id>
    <name>Swimming for toddlers</name>
    <code>2015STOD</code>
    <productid>575</productid>
    <description>This swimming course is for children 2-4 years of age with some water experience.</description>
    <lastupdate>2015-01-01 23:00</lastupdate>
    <productdescription>Swimming</productdescription>  /
    <numberofoccasions>60</numberofoccasions>
    <time>13:45</time>
    <startdate>2015-09-01</startdate>
    <enddate>2015-12-31</enddate>
 	<publishstart>2015-01-01 23:00</publishstart>
 	<publishend>2015-01-01 23:10</publishend>
    <bookableslots>12</bookableslots>
    <filledslots>12</filledslots>
    <registered>false</registered>
    <bookableearliest>
      <timepoint>
        <timestamp>1337335200</timestamp>
        <datetime>2015-05-18 12:00</datetime>
        <date>2015-05-18</date>
        <time>12:00</time>
      </timepoint>
    </bookableearliest>
    <bookablelatest>
      <timepoint>
        <timestamp>1337680800</timestamp>
        <datetime>2015-05-22 12:00</datetime>
        <date>2015-05-22</date>
        <time>12:00</time>
      </timepoint>
    </bookablelatest>
    <businessunit>
      <id>11</id>
      <name>Main Street Gym</name>
    </businessunit>
	<orderid>105</orderid>
  </event>
 ...
</events>