Skip to main content

/tickets/print

Flow

After a successful cart checkout, this API will enable the 3rd party vendor to retrieve the digital tickets

Description

The Print API can be used first time to retrieve the ticket.

Request

/tickets/print

Accepts collection of tokens (represents tickets) to be printed

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 Body Object

RCOMultitudePropertyTypeDescription
R1externalOrderIdStringExternal Order ID
R1-30tokensArrayArray of Tokens

Validations

  1. If request payload contains tokens belonging to more than 1 organization ID then we reject as BAD_REQUEST

Response

Returns ticket retrieval URL per token

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
ticketsArray of ObjectsSuccessful Tokens
→ tokenStringToken value
→ applePassUrlStringApple Pass
→ googlePassUrlStringText file containing the JWT needed to append to https://pay.google.com/gp/v/save/{JWT} to receive the pass for Google Wallet.
failureArray of ObjectsFailed Tokens
→ tokenStringToken value
→ 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
→ developerMessageStringDeveloper Message

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_TOKENToken is invalidMS-422422Unprocessable ContentNo0Caller to analyzeERROR
TOKEN_NOT_FOUNDToken does not existMS-404404Not FoundNo0Caller to analyzeERROR
TOO_MANY_TOKENSThe request payload cannot contain more than 30 allowed tokensMS-422422Unprocessable ContentNo0Caller to analyzeERROR
MULTIPLE_CLIENT_IDSThe request payload cannot contain more than 1 dataaccountIds (in tokens)MS-422422Unprocessable ContentNo0Caller to analyzeERROR

Examples

Request

curl -X POST --compressed 'https://link-sandbox.paciolan.info/v1/tickets/print' \
-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 '{
"externalOrderId": "123456",
"tokens": [
"ewr9u3095u3ru3u493sf",
"392u904hfiuhdsifhru32"
]
}'

Responses

Success Response
< HTTP/1.1 200

{
"tickets": [
{
"token": "ewr9u3095u3ru3u493sf",
"applePassUrl": "https://ticketdelivery.eveneue.net/tickets/F19/F02/3u328u39hfisudfisfhw.pkpass",
"googlePassUrl": "https://ticketdelivery.eveneue.net/tickets/F19/F02/3u328u39hfisudfisfhw.txt",
"ownerId": "135792"
},
{
"token": "392u904hfiuhdsifhru32",
"applePassUrl": "https://ticketdelivery.eveneue.net/tickets/F19/F02/3u328u39hfisudfisfhx.pkpass",
"googlePassUrl": "https://ticketdelivery.eveneue.net/tickets/F19/F02/3u328u39hfisudfisfhx.txt",
"ownerId": "135792"
}
]
}
Partial Success
< HTTP/1.1 207

{
"tickets": [
{
"token": "ewr9u3095u3ru3u493sf",
"applePassUrl": "https://ticketdelivery.eveneue.net/tickets/F19/F02/3u328u39hfisudfisfhw.pkpass",
"googlePassUrl": "https://ticketdelivery.eveneue.net/tickets/F19/F02/3u328u39hfisudfisfhw.txt",
"ownerId": "135792"
},
{
"token": "392u904hfiuhdsifhru32",
"applePassUrl": "https://ticketdelivery.eveneue.net/tickets/F19/F02/3u328u39hfisudfisfhw.pkpass",
"googlePassUrl": "https://ticketdelivery.eveneue.net/tickets/F19/F02/3u328u39hfisudfisfhx.txt",
"ownerId": "135792"
}
],
"failure": [
{
"token": "jr3rjo34r3oi4roiw38",
"type": "TOKEN_NOT_FOUND",
"appErrorCode": "MS-404",
"developerMessage": "Token not found",
"ownerId": "135792"
},
{
"token": "j435u485eihfdiuhfirow",
"type": "INVALID_TOKEN",
"appErrorCode": "MS-422",
"developerMessage": "Token is invalid",
"ownerId": "135792"
}
]
}
Full Failure
< HTTP/1.1 422

{
"error": {
"type":"UNPROCESSABLE_ENTITY",
"appErrorCode": "MS-422",
"developerMessage":"Unable to process the request."
},
"failure": [
{
"token": "jr3rjo34r3oi4roiw38",
"type": "TOKEN_NOT_FOUND",
"appErrorCode": "MS-404",
"developerMessage": "Token not found",
"ownerId": "135792"
},
{
"token": "j435u485eihfdiuhfirow",
"type": "INVALID_TOKEN",
"appErrorCode": "MS-422",
"developerMessage": "Token is invalid",
"ownerId": "135792"
}
]
}
Too Many Request for tokens
< HTTP/1.1 422

{
"error":{
"type":"TOO_MANY_TOKENS",
"appErrorCode": "MS-422",
"developerMessage":"The request payload cannot contain more than 30 allowed tokens",
}
}