Back to endpoints

Get an activity by id

GET PublicApi/{rewriteUrl}/{language}/Activities/{id}

You can get the activity id from /Events.

Request Information

URI Parameters

PARAMETERS
rewriteUrl (string)

Unique, url-friendly organization token. Part of base url

Required
language (string)

Language in which the localizable values should be returned. Part of base url. Value is either 'fr' or 'en'

Required
id (integer)

Activity id

Required

Body Parameters

None.

Response Information

Resource Description

PARAMETERS
Id (integer)

Resource id

Name (string)

Resource name

Description (string)

Description of the activity that will be visible to your customers in your store

ResponsibleName (string)
Prerequisite (string)

Specific prerequisites for an activity. This does not prevent the clients from registering, only informs them

Note (string)

Additional important information, such as what to bring

ThirdPartyUrl (string)

For registrations happening with a third party instead of Amilia

ExtraInformation (string)
Url (string)

Url of the resource

IsTeam (boolean)
IsTeamRegistration (boolean)
Fee (decimal number)
Start (date)

Inclusive start limit. Format is 9999-12-31

End (date)

Inclusive end limit. Format is 9999-12-31

LegacyLocation (string)
HashId (string)
Price (decimal number)

Price of activity

DropInPrice (decimal number)

Price of drop-in activity

Schedule ()
Age (ActivityAge)

Object containing minimum and maximum ages, and the option to specify age in months

TaxCredit (ActivityTaxCredit)
MaxAttendance (integer)

Maximum number of spots

SpotsRemaining (integer)

Number of spots still available in an activity

SpotsReserved (integer)

Number of reserved spots for an activity

RegistrationRevenue (decimal number)
SessionRevenue (decimal number)
DropinRevenue (decimal number)
MerchandiseRevenue (decimal number)
ShortScheduleString (string)
HasSessionEnabled (boolean)

True for subscriptions

HasDropInEnabled (boolean)

True for drop-ins

AgeSummary (string)

Minimum-maximum age span, in format '7-77'

OrganizationId (integer)

Id of the organization. This one cannot be substituted for rewriteUrl, contrary to the organization id in the query parameters

SubCategoryName (string)

Part of the hierarchy Program > Category > Subcategory > Activity

ProgramId (integer)

Id of the program

CategoryId (integer)

Id of the category

SubCategoryId (integer)

Id of the subcategory

SubCategoryPosition (integer)
Status (StateType)

Object containing the possible status values (case-insensitive).

For an activity, possible values are Normal, Hidden and Cancelled.

CategoryName (string)

Part of the hierarchy Program > Category > Subcategory > Activity

ProgramName (string)

Part of the hierarchy Program > Category > Subcategory > Activity

PictureUrl (string)

Url of the resource picture

TagIds ()

Response Formats

CODE SAMPLE JSON
{
  "Id": 11,
  "Name": "Crawl 2",
  "Description": "Crawl intermediaire",
  "ResponsibleName": "Julie Joncas",
  "Prerequisite": "Natation 1",
  "Note": "Vous devez apporter votre planche",
  "ThirdPartyUrl": "third/party",
  "ExtraInformation": "Sujet a contraintes meteo",
  "Url": "activity/url",
  "IsTeam": false,
  "IsTeamRegistration": false,
  "Fee": 0.0,
  "Start": "2022-09-01T00:00:00-04:00",
  "End": "2022-09-01T00:00:00-04:00",
  "LegacyLocation": "rue Decelles",
  "HashId": null,
  "Price": 0.0,
  "DropInPrice": 0.0,
  "Schedule": [
    {
      "StartTime": "00:00:00",
      "EndTime": "00:00:00",
      "StartDate": "2022-09-01T00:00:00-04:00",
      "EndDate": "2022-09-01T00:00:00-04:00",
      "RecurenceEndDate": "2022-09-01T00:00:00-04:00",
      "Occurences": 10,
      "Staff": [],
      "Facilities": [
        {
          "Id": 1,
          "Name": "Natatorium de Verdun",
          "Address": {
            "Telephone": "514 926 8888",
            "AddressLine1": "7000 boul Lasalle",
            "AddressLine2": "Building 2",
            "City": "Verdun",
            "ZipPostalCode": "H4G 1A1",
            "StateProvince": "QC",
            "Country": "Canada",
            "Latitude": 41.3176,
            "Longitude": 135.5858
          }
        }
      ],
      "ExceptOccurences": [
        {
          "StartDate": "2022-09-01T00:00:00-04:00",
          "EndDate": "2022-09-01T00:00:00-04:00"
        }
      ],
      "Days": [
        "Tuesday",
        "Friday"
      ],
      "DayMask": 0
    }
  ],
  "Age": {
    "Max": 99,
    "Min": 0,
    "Months": false
  },
  "TaxCredit": {
    "Artistic": 0.0,
    "Physical": 0.0
  },
  "MaxAttendance": 20,
  "SpotsRemaining": 12,
  "SpotsReserved": 5,
  "RegistrationRevenue": 88.0,
  "SessionRevenue": 7.9228162514264338E+28,
  "DropinRevenue": -7.9228162514264338E+28,
  "MerchandiseRevenue": 0.0,
  "ShortScheduleString": "Sundays 16h-17h",
  "HasSessionEnabled": false,
  "HasDropInEnabled": false,
  "AgeSummary": "0-99",
  "OrganizationId": 0,
  "SubCategoryName": "Intermediaire",
  "ProgramId": 0,
  "CategoryId": 0,
  "SubCategoryId": 0,
  "SubCategoryPosition": 0,
  "Status": "Normal",
  "CategoryName": "Swimming",
  "ProgramName": "Ete 2019 - adultes",
  "PictureUrl": "img/natation.jpg",
  "TagIds": []
}