Skip to main content

/tickets/verify

Description

This call will return ticket details for a group of barcode/tokens that were successfully verified as valid.

Flow

  1. The tokens and/or barcodes are submitted, the request will reach to API.
  2. The API will validate each token and barcode by calling the DB or miscroservices.
  3. Once all the tickets are validated, the API will return the tickets' info + validate code.

Assumptions

  • For each and every token integrator will make a call to API to fetch the ticket validity.

Request

/tickets/verify

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-TypeStringPThe 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.

Request Object

RCOPropertyTypeDescription
RticketsobjectObject which holds Tokens, Barcodes & AccessId
CtokensarrayArray of Tokens (must not be present if barcodes are present)
CbarcodesarrayArray of Barcodes (must not be present if tokens are present)
CaccessIdStringThe event Id (representing the access dataaccount) for the corresponding token

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

RCOPropertyTypeDescription
RtokensArray of Objects
R accessIdStringThe accessId for the event, will always be the main/home event.
C successArray of ObjectsAt least one successful verification is needed for this array to return.
R seatsArray of Objects
R tokenStringtoken
C barcodeStringbarcode
R seasonStringseason Code
R eventStringevent code
R sectionStringSection code. (LEVEL:SECTION)
R rowStringRow Code
R seatStringSeat Code
R seatingTypeStringSeating type. One of RESERVED, GENERAL_ADMISSION, or SECTION_GENERAL_ADMISSION.
R associationTypeStringAssociation type. Incomplete list: PARKING, VIP, etc.
R seatAttributesArray of StringsSeating attributes. Currently only ADA and LIMITED_VIEWavailable.
C failureArray of ObjectsAt least one failed verification is needed for this array to return.
R seatsArray of Objects
C tokenStringtoken
C barcodeStringbarcode
C codeStringerror code
C developerMessageStringerror message
C typeStringError Enumerations

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
INVALID_BARCODEBarcode is invalidMS-422422Unprocessable ContentNo0Caller to analyzeERROR
INVALID_TOKENtoken is invalidMS-422422Unprocessable ContentNo0Caller to analyzeERROR
BARCODE_NOT_FOUNDBarcode doesnt existMS-404404Not FoundNo0Caller to analyzeERROR
TOKEN_NOT_FOUNDtoken doesnt existMS-404404Not FoundNo0Caller to analyzeERROR
UNPROCESSABLE_ENTITYThe request payload cannot contain more than 100 tokens/barcodesMS-422422Unprocessable ContentNo0Caller to analyzeERROR

Examples

Request

Token Example
curl -X POST --compressed 'https://link-sandbox.paciolan.info/v1/tickets/verify' \
-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>' \
-d '{
"tickets":[
{
"accessId": "123:BB19:BB01",
"tokens": [
"98973476444",
"54457347644"
]
},
{
"accessId": "456:P19:P01",
"tokens": [
"88973476445",
"55457347694"
]
}
]
}'
Barcode Example
curl -X POST --compressed 'https://link-sandbox.paciolan.info/v1/tickets/verify' \
-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>' \
-d '{
"tickets":[
{
"accessId": "123:BB19:BB01",
"barcodes": [
"2132893238972932893",
"2132893238972932893"
]
},
{
"accessId": "456:P19:P01",
"barcodes": [
"2132893238972932893",
"2132893238972932893"
]
}
]
}'

Responses

Success Response
< HTTP/1.1 200

{
"tokens":[
{
"accessId":"129:FB23:FB01",
"success": {
"seats": [
{
"token":"1234567890123456",
"season":"BB19",
"event":"BB01",
"section":"U:100",
"row":"AA",
"seat":"14",
"seatingType": "RESERVED",
"associationType": null,
"seatAttributes": null,
"ownerId": "135792"
},
{
"token":"1234567890123456",
"season":"BB19",
"event":"BB01",
"section":"U:100",
"row":"AA",
"seat":"14",
"seatingType": "RESERVED",
"associationType": null,
"seatAttributes": null,
"ownerId": "135792"
}
]
}
},
{
"accessId": "129:FB23:FB02",
"success": {
"seats": [
{
"token":"1234567890123456",
"season":"BB19",
"event":"BB01",
"section":"U:100",
"row":"AA",
"seat":"14",
"seatingType": "RESERVED",
"associationType": null,
"seatAttributes": null,
"ownerId": "135792"
}
]
}
}
]
}
< HTTP/1.1 200

{
"barcodes": [
{
"accessId": "129:FB23:FB01",
"success": {
"seats": [
{
"token": "1234567890123456",
"season": "BB19",
"event": "BB01",
"barcode": "75813167566966",
"section": "U:100",
"row": "AA",
"seat": "14",
"seatingType": "RESERVED",
"associationType": null,
"seatAttributes": null,
"ownerId": "135792"
},
{
"token": "1234567890123456",
"season": "BB19",
"event": "BB01",
"barcode": "75813167566968",
"section": "U:100",
"row": "AA",
"seat": "14",
"seatingType": "RESERVED",
"associationType": null,
"seatAttributes": null,
"ownerId": "135792"
}
]
}
},
{
"accessId": "129:FB23:FB02",
"success": {
"seats": [
{
"token": "1234567890123456",
"season": "BB19",
"event": "BB01",
"barcode": "75813167566966",
"section": "U:100",
"row": "AA",
"seat": "14",
"seatingType": "RESERVED",
"associationType": null,
"seatAttributes": null,
"ownerId": "135792"
}
]
}
}
]
}
Partial Success
< HTTP/1.1 207

{
"tokens": [
{
"accessId":"129:FB23:FB01",
"success": {
"seats": [
{
"token":"1234567890123456",
"season":"BB19",
"event":"BB01",
"section":"U:100",
"row":"AA",
"seat":"14",
"seatingType": "RESERVED",
"associationType": null,
"seatAttributes": null,
"ownerId": "135792"
},
{
"token":"1234567890123456",
"season":"BB19",
"event":"BB01",
"section":"U:100",
"row":"AA",
"seat":"14",
"seatingType": "RESERVED",
"associationType": null,
"seatAttributes": null,
"ownerId": "135792"
}
]
},
"failure": {
"seats": [
{
"token":"1234567890123456",
"appErrorCode": "MS-422",
"developerMessage":"token is invalid.",
"type":"INVALID_TOKEN",
"ownerId": "135792"
},
{
"token":"1234567890123456",
"appErrorCode": "MS-404",
"developerMessage":"This token is not found.",
"type":"TOKEN_NOT_FOUND",
"ownerId": "135792"
}
]
}
}
]
}
< HTTP/1.1 207

{
"barcodes": [
{
"accessId": "129:FB23:FB01",
"success": {
"seats": [
{
"token":"1234567890123456",
"season":"BB19",
"event":"BB01",
"barcode":"75813167566966",
"section":"U:100",
"row":"AA",
"seat":"14",
"seatingType": "RESERVED",
"associationType": null,
"seatAttributes": null,
"ownerId": "135792"
},
{
"token":"1234567890123456",
"season":"BB19",
"event":"BB01",
"barcode":"75813167566968",
"section":"U:100",
"row":"AA",
"seat":"14",
"seatingType": "RESERVED",
"associationType": null,
"seatAttributes": null,
"ownerId": "135792"
}
]
},
"failure": {
"seats": [
{
"barcode":"75813167566966",
"appErrorCode": "MS-422",
"developerMessage":"Barcode is invalid. ",
"type":"INVALID_BARCODE",
"ownerId": "135792"
},
{
"barcode":"75813167566966",
"appErrorCode": "MS-404",
"developerMessage":"This barcode is not found. ",
"type":"BARCODE_NOT_FOUND",
"ownerId": "135792"
}
]
}
}
]
}
Full Failure Response
< HTTP/1.1 422

{
"error": {
"type": "UNPROCESSABLE_ENTITY",
"appErrorCode": "MS-422",
"developerMessage": "Unable to process the request."
},
"failure": {
"seats": [
{
"barcode":"75813167566966",
"appErrorCode": "MS-422",
"developerMessage":"Barcode is invalid. ",
"type":"INVALID_BARCODE",
"ownerId": "135792"
},
{
"barcode":"75813167566966",
"appErrorCode": "MS-404",
"developerMessage":"This barcode is not found. ",
"type":"BARCODE_NOT_FOUND",
"ownerId": "135792"
}
]
}
}
Too Many Request Response for tokens
< HTTP/1.1 422

{
"error": {
"type": "UNPROCESSABLE_ENTITY",
"appErrorCode": "MS-422",
"developerMessage": "The request payload cannot contain more than 100 tokens",
}
}
Too Many Request Response for barcodes
< HTTP/1.1 422
{
"error": {
"type": "UNPROCESSABLE_ENTITY",
"appErrorCode": "MS-422",
"developerMessage": "The request payload cannot contain more than 100 barcodes",
}
}
Request contains both barcodes and tokens
< HTTP/1.1 422

{
"error":{
"type": "UNPROCESSABLE_ENTITY",
"appErrorCode": "MS-422",
"developerMessage": "The request payload cannot contain both barcodes and tokens"
}
}