Skip to main content

/catalog/events

Description

The events endpoint returns a list of items available for secondary.

Supported Methods

  • GET

Supported Media Types

Request

  • N/A

Response

  • application/json

Request

/catalog/events

HEADERS

RCOMultitudeKeyTypeDescription
R1User-AgentStringAn identifying string in Product/Version format, where Version is a SemVer-compliant string, that uniquely identifies your application.
R1AuthorizationStringIt's required to use the "Bearer" authentication scheme to transmit the access token.
R1AcceptStringThe only supported response type for this endpoint is application/json.
O0-1Accept-EncodingStringgzip compression is supported.
R1Content-TypeStringThe only supported request type for this endpoint is application/json.
R1PAC-Application-IDStringThe application identifier for which API access has been authorized; this value is typically expressed in reverse domain notation and is bound to an API key provided by Paciolan during provisioning.
R1PAC-API-KeyStringThe API key provided by Paciolan for this application.
R1PAC-Channel-CodeStringThe channel partner identifier issued to your organization by the Paciolan Partner Services team partner on-boarding.
R1Request-IDStringThe integrator's external request ID for support traceablility and issue debugging. This string should be a UUID V4 value.
R1PAC-Organization-IDStringThe client's data account ID to pull events from.

Query Parameters

RCOMKeyTypeDescription
OstartDateDateDate in the format of YYYY-MM-DD. Applicable to events only. When specified, only those event items with a start date on or after this date will be returned.
OseasonCodeStringA (single) season code may be specified to filter output.
OfacilityCodeStringA (single) facility code may be specified to filter output.

Response

HEADERS

PropertyTypeDescription
Request-IDStringThe same ID provided in the header of the request call returned back.
Content-TypeStringSupported type is application/json.

Response Object

PropertyTypeDescription
seasonCodeStringSeason code
itemCodeStringItem code
itemBasisEnum (JSON String)Item basis
itemNameStringItem name; Precedence: 1. Internet Name 2. Item Name 3. Event name
startDateDateDate part (before "T" delimiter) of ISO 8601 compliant date.
startTimeTime / Enum ["TBD"]Time part (after "T" delimiter) of ISO 8601 compliant time. Can also return TBD if no start time is set.
endDateDateDate part (before "T" delimiter) of ISO 8601 compliant date.
endTimeTime / Enum ["TBD"]Time part (after "T" delimiter) of ISO 8601 compliant time. Can also return TBD if no end time is set.
facilityCodeStringFacility code
facilityNameStringFacility Name
associationObject (nullable)Association Object
-> typeStringAssociation type
-> associatedToStringAssociated to accessId
accessIdStringMain event accessId
distributorCodeString (nullable)Event distributor code

Error Response Object

PropertyTypeDescription
errorObjectError details
typeStringError type that has occurred
appErrorCodeStringInternal error code used for support. Depending on type returned, this code may be needed to handle error response differently
developerMessageStringGeneric description of error that occured

Error Types

Error TypeError DescApp Error CodeHTTP Status CodeHTTP Status DescRetry PossibleRetry CountUltimate actionMS Error Level
AUTHORIZATION_FAILUREMissing required headers (PAC-Channel-Code, PAC-Application-ID, or PAC-Organization-ID)MS-401401UnauthorizedNo0Caller to analyzeERROR
INVALID_API_KEYMissing or invalid PAC-API-Key key providedMS-401401UnauthorizedNo0Caller to analyzeERROR
INVALID_REQUEST_IDMissing Request-IDMS-400400Bad RequestNo0Caller to analyzeERROR
BAD_REQUESTA seasonCode, facilityCode, or startDate query that is undefined (e.g. seasonCode=)MS-400400Bad RequestNo0Caller to analyzeERROR
UNAUTHORIZED_REQUESTA valid PAC-Organization-ID or seasonCode provided does not have the correct access controls set up.MS-403403ForbiddenNo0Caller to analyzeERROR
UNHANDLED_EXCEPTIONInternal server error occurred due to backend errorMS-500500Internal Server ErrorYes3Caller to inform ProviderFATAL
NOT_FOUNDAn otherwise valid but undefined seasonCode or facilityCodeMS-404404Not FoundNo0Caller to analyzeERROR
INVALID_INPUTA request made with a startDate in the pastMS-422422Unprocessable ContentNo0Caller to analyzeERROR

Response Notes

  • Items for which startDate and/or endDate are not applicable shall return null.
  • Items for which facilityCode & facilityName are not applicable shall return null.

Examples

Request

curl 'https://link-sandbox.paciolan.info/v1/catalog/events' \
-H 'User-Agent: MyApplication/1.0' \
-H 'Authorization: Bearer <BearerToken>'
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-H 'PAC-Application-ID: com.mycompany.myapp' \
-H 'PAC-API-Key: <ApiKey>' \
-H 'PAC-Channel-Code: my-application' \
-H 'Request-ID: <RequestID>' \
-H 'PAC-Organization-ID: 999'

Responses

Success Response
[
{
"seasonCode": "F23",
"itemCode": "F01",
"itemBasis": "SINGLE",
"itemName": "Football Game 1",
"startDate": "2023-05-20",
"startTime": "20:30:00Z",
"endDate": null,
"endTime": null,
"facilityCode": "ABC",
"configurationCode": "DC",
"facilityName": "Pavilion",
"association": null,
"accessId": "999:F23:F01",
"distributorCode": "LFTX"
},
{
"seasonCode": "F23",
"itemCode": "P01",
"itemBasis": "SINGLE",
"itemName": "Parking for Football Game 1",
"startDate": "2023-05-20",
"startTime": "20:30:00Z",
"endDate": null,
"endTime": null,
"facilityCode": "ABC",
"configurationCode": "DC",
"facilityName": "Pavilion",
"association": {
"type": "PARKING",
"associatedTo": ["999:F23:F01"]
},
"accessId": "999:F23:P01",
"distributorCode": "LFTX"
},
{
"seasonCode": "F23",
"itemCode": "F02",
"itemBasis": "SINGLE",
"itemName": "Football Game 2",
"startDate": "2023-08-22",
"startTime": "19:00:00Z",
"endDate": null,
"endTime": null,
"facilityCode": "ABC",
"configurationCode": "DC",
"facilityName": "Pavilion",
"association": null,
"accessId": "999:F23:F02",
"distributorCode": "LFTX"
},
{
"seasonCode": "F23",
"itemCode": "F03",
"itemBasis": "SINGLE",
"itemName": "Football Game 3",
"startDate": "2023-09-22",
"startTime": "19:00:00Z",
"endDate": null,
"endTime": null,
"facilityCode": "ABC",
"configurationCode": "DC",
"facilityName": "Pavilion",
"association": null,
"accessId": "999:F23:F03",
"distributorCode": "LFTX"
},
{
"seasonCode": "F23",
"itemCode": "P03",
"itemBasis": "SINGLE",
"itemName": "Parking for Football Game 3",
"startDate": "2023-05-20",
"startTime": "20:30:00Z",
"endDate": null,
"endTime": null,
"facilityCode": "ABC",
"configurationCode": "DC",
"facilityName": "Pavilion",
"association": {
"type": "PARKING",
"associatedTo": ["999:F23:F03"]
},
"accessId": "999:F23:P03",
"distributorCode": "LFTX"
}
]
Invalid startDate
< HTTP/1.1 422

{
"error":{
"type": "INVALID_INPUT",
"appErrorCode": "MS-422",
"developerMessage": "The startDate provided is in the past"
}
}